interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / seed / node / schedrcpt-cases / cases-398n.json

2193 lines · 66889 bytes Raw Blame History
1{
2 "issue": "DRA-398",
3 "statuses": {
4 "DRA-397": "IMPLEMENTED, EXERCISED on native host; not QUALIFIED; not MERGED; not DEPLOYED",
5 "expected_exits": "derived from the check site each mutant targets (field why), before the run; DRA-287/288 mutants carry their original derivations. Exception: mut396-jn-no-room-check-c17 was re-derived (175 -> 174) after receipt ac506fe8 observed 174; its why gives the trace from code (since ab093915 sched_slot refuses a full table before journaling, so the mutant now shows only the missing ticket). The property that no ADMIT is journaled without the room check is covered at DRA-398 by mut396-jn-no-room-check (case 16, admission-limit path, 173), not by the c17 variant.",
6 "gpu": "NOT_RUN (not involved)"
7 },
8 "cases": [
9 {
10 "case": "schedpol-gate",
11 "issue": "DRA-395",
12 "gate": "seed/node/schedpol-gate.om",
13 "compose": [
14 "seed/node/transport.om",
15 "seed/node/pool.om",
16 "seed/node/super.om",
17 "seed/node/sched.om",
18 "seed/node/schedpol-test.om"
19 ],
20 "expect": 0,
21 "timeout": 120,
22 "repeat": 10,
23 "stdout_has": [
24 "PASS node schedpol"
25 ]
26 },
27 {
28 "case": "schedpol-gate-fifo",
29 "issue": "DRA-396",
30 "gate": "seed/node/schedpol-gate.om",
31 "compose": [
32 "seed/node/transport.om",
33 "seed/node/pool.om",
34 "seed/node/super.om",
35 "seed/node/sched.om",
36 "seed/node/schedpol-test.om"
37 ],
38 "expect": 11,
39 "timeout": 120,
40 "stdout_has": [
41 "schedpol hol witness head=20050 fits_behind=30050 free_cpu=1 idle_worker=1",
42 "schedpol hol witness head=20050 fits_behind=50050 free_cpu=1 idle_worker=1"
43 ],
44 "repeat": 5,
45 "args": [
46 "fifo"
47 ]
48 },
49 {
50 "case": "schedpol-gate-noreserve",
51 "issue": "DRA-396",
52 "gate": "seed/node/schedpol-gate.om",
53 "compose": [
54 "seed/node/transport.om",
55 "seed/node/pool.om",
56 "seed/node/super.om",
57 "seed/node/sched.om",
58 "seed/node/schedpol-test.om"
59 ],
60 "expect": 61,
61 "timeout": 120,
62 "repeat": 5,
63 "args": [
64 "noreserve"
65 ]
66 },
67 {
68 "case": "sched-gate",
69 "issue": "DRA-287",
70 "gate": "seed/node/sched-gate.om",
71 "compose": [
72 "seed/node/transport.om",
73 "seed/node/pool.om",
74 "seed/node/super.om",
75 "seed/node/sched.om",
76 "seed/node/sched-test.om"
77 ],
78 "expect": 0
79 },
80 {
81 "case": "auth-gate",
82 "issue": "DRA-288",
83 "gate": "seed/node/auth-gate.om",
84 "compose": [
85 "seed/node/transport.om",
86 "seed/node/pool.om",
87 "seed/node/super.om",
88 "seed/node/sched.om",
89 "seed/authority/action.om",
90 "seed/node/journal.om",
91 "seed/node/auth.om",
92 "seed/node/auth-test.om"
93 ],
94 "expect": 0
95 },
96 {
97 "case": "journal-gate",
98 "issue": "DRA-289",
99 "gate": "seed/node/journal-gate.om",
100 "compose": [
101 "seed/node/transport.om",
102 "seed/node/pool.om",
103 "seed/node/super.om",
104 "seed/node/sched.om",
105 "seed/authority/action.om",
106 "seed/node/journal.om",
107 "seed/node/auth.om",
108 "seed/node/journal-test.om"
109 ],
110 "expect": 0,
111 "clean": [
112 "build/node/jt"
113 ]
114 },
115 {
116 "case": "code-test-unit",
117 "issue": "DRA-290",
118 "om2": true,
119 "fragments": [
120 "seed/net/http.om",
121 "seed/net/notls.om",
122 "seed/node/transport.om",
123 "seed/node/pool.om",
124 "seed/node/super.om",
125 "seed/node/sched.om",
126 "seed/authority/action.om",
127 "seed/node/journal.om",
128 "seed/node/auth.om",
129 "seed/node/view.om",
130 "seed/node/gram.om",
131 "seed/node/code.om",
132 "seed/node/code-test.om"
133 ],
134 "args": [
135 "unit",
136 "build/node/cu"
137 ],
138 "expect": 0,
139 "clean": [
140 "build/node/cu"
141 ]
142 },
143 {
144 "case": "mut-impossible-admitted",
145 "issue": "DRA-395",
146 "fragments": [
147 "seed/node/transport.om",
148 "seed/node/pool.om",
149 "seed/node/super.om",
150 "seed/node/sched.om",
151 "seed/node/schedpol-test.om"
152 ],
153 "mutate": [
154 "seed/node/sched.om",
155 "if not sp_feas req\n",
156 "if false\n"
157 ],
158 "expect": 31,
159 "why": "C: impossible request admitted; check sched_admitr == -8 code 31"
160 },
161 {
162 "case": "mut-collect-no-release",
163 "issue": "DRA-395",
164 "fragments": [
165 "seed/node/transport.om",
166 "seed/node/pool.om",
167 "seed/node/super.om",
168 "seed/node/sched.om",
169 "seed/node/schedpol-test.om"
170 ],
171 "mutate": [
172 "seed/node/sched.om",
173 "j = sub b 1\nsp_give j\n",
174 "j = sub b 1\n"
175 ],
176 "expect": 133,
177 "why": "C: jobs reviewed still hold; pt_inv in pt_drain code 133"
178 },
179 {
180 "case": "mut-capacity-ignored",
181 "issue": "DRA-395",
182 "fragments": [
183 "seed/node/transport.om",
184 "seed/node/pool.om",
185 "seed/node/super.om",
186 "seed/node/sched.om",
187 "seed/node/schedpol-test.om"
188 ],
189 "mutate": [
190 "seed/node/sched.om",
191 "if gt sp_need req k a\n",
192 "if false\n"
193 ],
194 "expect": 44,
195 "why": "D: use exceeds capacity; pt_inv in pt_drain code 44"
196 },
197 {
198 "case": "mut-ready-unstamped",
199 "issue": "DRA-395",
200 "fragments": [
201 "seed/node/transport.om",
202 "seed/node/pool.om",
203 "seed/node/super.om",
204 "seed/node/sched.om",
205 "seed/node/schedpol-test.om"
206 ],
207 "mutate": [
208 "seed/node/sched.om",
209 "if ne and get sjdep j topics 0\nsp_ready j\n",
210 "if ne and get sjdep j topics 0\nput sjst j 2\n"
211 ],
212 "expect": 54,
213 "args": [
214 "fifo"
215 ],
216 "why": "F under fifo: ready order wrong, y not first; code 54"
217 },
218 {
219 "case": "mut-give-after-review",
220 "issue": "DRA-395",
221 "fragments": [
222 "seed/node/transport.om",
223 "seed/node/pool.om",
224 "seed/node/super.om",
225 "seed/node/sched.om",
226 "seed/node/schedpol-test.om"
227 ],
228 "mutate": [
229 "seed/node/sched.om",
230 "j = sub b 1\nsp_give j\nif ge sched_count 4 4 get sclim 1\ncontinue\nend\n",
231 "j = sub b 1\nif ge sched_count 4 4 get sclim 1\ncontinue\nend\nsp_give j\n"
232 ],
233 "expect": 122,
234 "why": "V: second CPU not released while review full; suse==0 code 122"
235 },
236 {
237 "case": "mut-no-take",
238 "issue": "DRA-395",
239 "fragments": [
240 "seed/node/transport.om",
241 "seed/node/pool.om",
242 "seed/node/super.om",
243 "seed/node/sched.om",
244 "seed/node/schedpol-test.om"
245 ],
246 "mutate": [
247 "seed/node/sched.om",
248 "end\nsp_take j\nif eq get scpol 5 add j 1\n",
249 "end\nif eq get scpol 5 add j 1\n"
250 ],
251 "expect": 130,
252 "why": "C: running unfinished job holds nothing; pt_inv in pt_until code 130"
253 },
254 {
255 "case": "mut-cap-below-use",
256 "issue": "DRA-395",
257 "fragments": [
258 "seed/node/transport.om",
259 "seed/node/pool.om",
260 "seed/node/super.om",
261 "seed/node/sched.om",
262 "seed/node/schedpol-test.om"
263 ],
264 "mutate": [
265 "seed/node/sched.om",
266 "if lt sp_need caps k get suse k\n",
267 "if false\n"
268 ],
269 "expect": 131,
270 "why": "C: sched_cap below use accepted; == -8 code 131"
271 },
272 {
273 "case": "mut287-wake-all",
274 "issue": "DRA-287",
275 "fragments": [
276 "seed/node/transport.om",
277 "seed/node/pool.om",
278 "seed/node/super.om",
279 "seed/node/sched.om",
280 "seed/node/sched-test.om"
281 ],
282 "mutate": [
283 "seed/node/sched.om",
284 "if ne and sc_cell w 32 topics 0\n",
285 "if true\n"
286 ],
287 "expect": 16
288 },
289 {
290 "case": "mut287-no-wake",
291 "issue": "DRA-287",
292 "fragments": [
293 "seed/node/transport.om",
294 "seed/node/pool.om",
295 "seed/node/super.om",
296 "seed/node/sched.om",
297 "seed/node/sched-test.om"
298 ],
299 "mutate": [
300 "seed/node/sched.om",
301 "sc_set w 0 q\nsc_wake w\n",
302 "sc_set w 0 q\n"
303 ],
304 "expect": 34
305 },
306 {
307 "case": "mut287-review-unbounded",
308 "issue": "DRA-287",
309 "fragments": [
310 "seed/node/transport.om",
311 "seed/node/pool.om",
312 "seed/node/super.om",
313 "seed/node/sched.om",
314 "seed/node/sched-test.om"
315 ],
316 "mutate": [
317 "seed/node/sched.om",
318 "if ge sched_count 4 4 get sclim 1\n",
319 "if false\n"
320 ],
321 "expect": 50
322 },
323 {
324 "case": "mut287-admit-unbounded",
325 "issue": "DRA-287",
326 "fragments": [
327 "seed/node/transport.om",
328 "seed/node/pool.om",
329 "seed/node/super.om",
330 "seed/node/sched.om",
331 "seed/node/sched-test.om"
332 ],
333 "mutate": [
334 "seed/node/sched.om",
335 "room = ulong 0\nif lt a get sclim 0\nroom = sub get sclim 0 a\nend\n",
336 "room = ulong 64\n"
337 ],
338 "expect": 48,
339 "why": "DRA-287 sched-gate admission-limit check: headroom ignored, admissions beyond the limit; 48 (pattern moved with the DRA-396 room rewrite)"
340 },
341 {
342 "case": "mut287-unknown-rerun",
343 "issue": "DRA-287",
344 "fragments": [
345 "seed/node/transport.om",
346 "seed/node/pool.om",
347 "seed/node/super.om",
348 "seed/node/sched.om",
349 "seed/node/sched-test.om"
350 ],
351 "mutate": [
352 "seed/node/sched.om",
353 "put sjst j 6\n",
354 "put sjst j 2\n"
355 ],
356 "expect": 83
357 },
358 {
359 "case": "mut287-lost-no-ack",
360 "issue": "DRA-287",
361 "fragments": [
362 "seed/node/transport.om",
363 "seed/node/pool.om",
364 "seed/node/super.om",
365 "seed/node/sched.om",
366 "seed/node/sched-test.om"
367 ],
368 "mutate": [
369 "seed/node/sched.om",
370 "sc_set w 64 get scseq w\n",
371 ""
372 ],
373 "expect": 92
374 },
375 {
376 "case": "mut287-deps-ignored",
377 "issue": "DRA-287",
378 "fragments": [
379 "seed/node/transport.om",
380 "seed/node/pool.om",
381 "seed/node/super.om",
382 "seed/node/sched.om",
383 "seed/node/sched-test.om"
384 ],
385 "mutate": [
386 "seed/node/sched.om",
387 "put sjst j 1\n",
388 "put sjst j 2\n"
389 ],
390 "expect": 68
391 },
392 {
393 "case": "mut287-super-spin",
394 "issue": "DRA-287",
395 "fragments": [
396 "seed/node/transport.om",
397 "seed/node/pool.om",
398 "seed/node/super.om",
399 "seed/node/sched.om",
400 "seed/node/sched-test.om"
401 ],
402 "mutate": [
403 "seed/node/super.om",
404 "iv = interval\n",
405 "iv = long 0\n"
406 ],
407 "expect": 138,
408 "args": [
409 "idle"
410 ]
411 },
412 {
413 "case": "mut288-pause-ignored",
414 "issue": "DRA-288",
415 "fragments": [
416 "seed/node/transport.om",
417 "seed/node/pool.om",
418 "seed/node/super.om",
419 "seed/node/sched.om",
420 "seed/authority/action.om",
421 "seed/node/journal.om",
422 "seed/node/auth.om",
423 "seed/node/auth-test.om"
424 ],
425 "mutate": [
426 "seed/node/sched.om",
427 "if ne get scpause 0 0\n",
428 "if false\n"
429 ],
430 "expect": 121
431 },
432 {
433 "case": "mut396-cursor-stuck",
434 "issue": "DRA-396",
435 "fragments": [
436 "seed/node/transport.om",
437 "seed/node/pool.om",
438 "seed/node/super.om",
439 "seed/node/sched.om",
440 "seed/node/schedpol-test.om"
441 ],
442 "mutate": [
443 "seed/node/sched.om",
444 "put scpol 4 rem add cur win 64\n",
445 ""
446 ],
447 "expect": 15,
448 "why": "pt_cursor (exit 15) checks after every step that the cursor moved by win per window scan mod 64; with win 64 that is no move, so phases before W pass; the first scan in W (win 4) leaves the cursor in place where 4 slots were expected: 15"
449 },
450 {
451 "case": "mut396-tickets-ignored",
452 "issue": "DRA-396",
453 "fragments": [
454 "seed/node/transport.om",
455 "seed/node/pool.om",
456 "seed/node/super.om",
457 "seed/node/sched.om",
458 "seed/node/schedpol-test.om"
459 ],
460 "mutate": [
461 "seed/node/sched.om",
462 "if eq get scpol 6 0\nret true\n",
463 "if true\nret true\n"
464 ],
465 "expect": 75,
466 "why": "Q: with room, Y asking before ticket holder X is admitted; code 75"
467 },
468 {
469 "case": "mut396-no-holdback",
470 "issue": "DRA-396",
471 "fragments": [
472 "seed/node/transport.om",
473 "seed/node/pool.om",
474 "seed/node/super.om",
475 "seed/node/sched.om",
476 "seed/node/schedpol-test.om"
477 ],
478 "mutate": [
479 "seed/node/sched.om",
480 "rq = get sjneed rj\n",
481 "rq = ulong 0\n"
482 ],
483 "expect": 61,
484 "why": "S: smalls refill freed CPU, big never runs; first check code 61"
485 },
486 {
487 "case": "mut396-never-reserve",
488 "issue": "DRA-396",
489 "fragments": [
490 "seed/node/transport.om",
491 "seed/node/pool.om",
492 "seed/node/super.om",
493 "seed/node/sched.om",
494 "seed/node/schedpol-test.om"
495 ],
496 "mutate": [
497 "seed/node/sched.om",
498 "put scpol 5 add o 1\n",
499 ""
500 ],
501 "expect": 61,
502 "why": "S: no reservation, big never runs; first check code 61"
503 },
504 {
505 "case": "mut396-lease-never",
506 "issue": "DRA-396",
507 "fragments": [
508 "seed/node/transport.om",
509 "seed/node/pool.om",
510 "seed/node/super.om",
511 "seed/node/sched.om",
512 "seed/node/schedpol-test.om"
513 ],
514 "mutate": [
515 "seed/node/sched.om",
516 "if ge now d\n",
517 "if false\n"
518 ],
519 "expect": 82,
520 "why": "L: sched_overdue never reports; eq o h code 82"
521 },
522 {
523 "case": "mut396-cancel-keeps-reserve",
524 "issue": "DRA-396",
525 "fragments": [
526 "seed/node/transport.om",
527 "seed/node/pool.om",
528 "seed/node/super.om",
529 "seed/node/sched.om",
530 "seed/node/schedpol-test.om"
531 ],
532 "mutate": [
533 "seed/node/sched.om",
534 "put sjst j 0\nsp_bump\nif eq get scpol 5 add j 1\nput scpol 5 0\nend\n",
535 "put sjst j 0\nsp_bump\n"
536 ],
537 "expect": 94,
538 "why": "R: reservation survives cancel; sched_stat 29 == 0 code 94"
539 },
540 {
541 "case": "mut396-window-ignored",
542 "issue": "DRA-396",
543 "fragments": [
544 "seed/node/transport.om",
545 "seed/node/pool.om",
546 "seed/node/super.om",
547 "seed/node/sched.om",
548 "seed/node/schedpol-test.om"
549 ],
550 "mutate": [
551 "seed/node/sched.om",
552 "for i ulong win bound 64\n",
553 "for i ulong 64 bound 64\n"
554 ],
555 "expect": 9,
556 "why": "A fair pick reads its whole window (sp_fair) plus the reserved probe. With the window ignored every pick reads 64 slots; pt_step allows (assigned + events) x (win + 1) candidate reads per step, and a step with p >= 1 picks has assigned + events <= p + 1 (an unsuccessful pick ends the event). Phases before W keep the default window of 64, so nothing changes there; in W (win 4) 64p > 5(p + 1) at the first step that picks: 9."
557 },
558 {
559 "case": "mut396-tickets-never-lapse",
560 "issue": "DRA-396",
561 "fragments": [
562 "seed/node/transport.om",
563 "seed/node/pool.om",
564 "seed/node/super.om",
565 "seed/node/sched.om",
566 "seed/node/schedpol-test.om"
567 ],
568 "mutate": [
569 "seed/node/sched.om",
570 "if lt add get stts t get scpol 7 get scst 2\n",
571 "if false\n"
572 ],
573 "expect": 80,
574 "why": "Q: stale ticket of 150050 blocks new caller 160050; ge 0 code 80"
575 },
576 {
577 "case": "mut396-cursor-by-one",
578 "issue": "DRA-396",
579 "fragments": [
580 "seed/node/transport.om",
581 "seed/node/pool.om",
582 "seed/node/super.om",
583 "seed/node/sched.om",
584 "seed/node/schedpol-test.om"
585 ],
586 "mutate": [
587 "seed/node/sched.om",
588 "put scpol 4 rem add cur win 64\n",
589 "put scpol 4 rem add cur 1 64\n"
590 ],
591 "expect": 15,
592 "why": "pt_cursor (exit 15): in W (win 4) a scan moves the cursor by 1 instead of 4, so cursor != u0 + 4 x scans mod 64 at the first step that scans: 15 (with win 64, 1 vs 0 mod 64 also differs, so it may trip in phase A already; same exit)"
593 },
594 {
595 "case": "mut396-holders-by-room",
596 "issue": "DRA-396",
597 "fragments": [
598 "seed/node/transport.om",
599 "seed/node/pool.om",
600 "seed/node/super.om",
601 "seed/node/sched.om",
602 "seed/node/schedpol-test.om"
603 ],
604 "mutate": [
605 "seed/node/sched.om",
606 "if eq t 0\nput stts 0 get scst 2\nret true",
607 "if lt t room\nput stts 0 get scst 2\nret true"
608 ],
609 "expect": 105,
610 "why": "T: holders below the room may enter (re-anchored after the desk fix added the head holder's renewal to the same branch; the mutation and its effect are unchanged): with two openings the second holder Y enters instead of being refused: 105"
611 },
612 {
613 "case": "mut396-room-ignores-slots",
614 "issue": "DRA-396",
615 "fragments": [
616 "seed/node/transport.om",
617 "seed/node/pool.om",
618 "seed/node/super.om",
619 "seed/node/sched.om",
620 "seed/node/schedpol-test.om"
621 ],
622 "mutate": [
623 "seed/node/sched.om",
624 "if lt fs room\nroom = fs\n",
625 "if false\nroom = fs\n"
626 ],
627 "expect": 191,
628 "why": "X: table full of review results, sched_room true; 191"
629 },
630 {
631 "case": "mut396-lease-early",
632 "issue": "DRA-396",
633 "fragments": [
634 "seed/node/transport.om",
635 "seed/node/pool.om",
636 "seed/node/super.om",
637 "seed/node/sched.om",
638 "seed/node/schedpol-test.om"
639 ],
640 "mutate": [
641 "seed/node/sched.om",
642 "if ge now d\n",
643 "if ge add now 100000000 d\n"
644 ],
645 "expect": 83,
646 "why": "L: overdue reported before the stored deadline; 83"
647 },
648 {
649 "case": "mut396-jn-room-before-dup",
650 "issue": "DRA-396",
651 "fragments": [
652 "seed/node/transport.om",
653 "seed/node/pool.om",
654 "seed/node/super.om",
655 "seed/node/sched.om",
656 "seed/authority/action.om",
657 "seed/node/journal.om",
658 "seed/node/auth.om",
659 "seed/node/journal-test.om"
660 ],
661 "mutate": [
662 "seed/node/journal.om",
663 "if ge jn_jfind id 0\nret neg long 4\nend\nif not sched_feas req\nret neg long 8\nend\nif not sched_room id\nret neg long 2\nend\n",
664 "if not sched_room id\nret neg long 2\nend\nif ge jn_jfind id 0\nret neg long 4\nend\nif not sched_feas req\nret neg long 8\nend\n"
665 ],
666 "expect": 185,
667 "why": "journal case 17 (case 16 before the move onto omega-node dd4a4240, where DRA-292's RESULT case took number 16 and checks 170-184; this case's checks moved 170-177 -> 185-192 unchanged otherwise): duplicate at the limit gets -2 and a ticket, not -4; 185",
668 "clean": [
669 "build/node/jt"
670 ]
671 },
672 {
673 "case": "mut396-jn-no-room-check",
674 "issue": "DRA-396",
675 "fragments": [
676 "seed/node/transport.om",
677 "seed/node/pool.om",
678 "seed/node/super.om",
679 "seed/node/sched.om",
680 "seed/authority/action.om",
681 "seed/node/journal.om",
682 "seed/node/auth.om",
683 "seed/node/journal-test.om"
684 ],
685 "mutate": [
686 "seed/node/journal.om",
687 "if not sched_room id\nret neg long 2\nend\ns = sched_slot\n",
688 "s = sched_slot\n"
689 ],
690 "expect": 188,
691 "why": "journal-gate case 17 runs before 18 (numbers moved by +15 with the cases on omega-node dd4a4240, where DRA-292's RESULT case took number 16 and checks 170-184); DRA-292's case 16 admits nothing: jn_admit 7003 at the limit now journals ADMIT and sched_admit refuses (-2, 187 holds, ticket count 1 holds); after the cancel, jn_admit 7003 finds 7003 in the journal and returns -4, so jt_ok ge ... 188 fails: 188",
692 "clean": [
693 "build/node/jt"
694 ]
695 },
696 {
697 "case": "mut396-jn-no-room-check-c17",
698 "issue": "DRA-396",
699 "fragments": [
700 "seed/node/transport.om",
701 "seed/node/pool.om",
702 "seed/node/super.om",
703 "seed/node/sched.om",
704 "seed/authority/action.om",
705 "seed/node/journal.om",
706 "seed/node/auth.om",
707 "seed/node/journal-test.om"
708 ],
709 "mutate": [
710 [
711 "seed/node/journal.om",
712 "if not sched_room id\nret neg long 2\nend\ns = sched_slot\n",
713 "s = sched_slot\n"
714 ],
715 [
716 "seed/node/journal-test.om",
717 "jt_c17\njt_c18\n",
718 "jt_c18\n"
719 ]
720 ],
721 "expect": 189,
722 "why": "case 17 (admission at the limit) is not run (removed from main), so case 18 is the first to meet the missing room check (numbers moved by +15 with the cases on omega-node dd4a4240, where DRA-292's RESULT case took number 16 and checks 170-184); DRA-292's case 16 still runs first and admits nothing. Since DRA-398 (ab093915) jn_admitr also takes a recorded slot: sched_slot finds none of the 64 held slots free (state 6), so jn_admitr returns -2 before journaling (that check holds), but sched_room, the only place an admission ticket is issued, was skipped: sched_stat 30 is 0, not 1, and check 189 fails (174 before the renumbering; re-derived from the code after receipt ac506fe8 showed 174).",
723 "clean": [
724 "build/node/jt"
725 ]
726 },
727 {
728 "case": "mut396-fifo-overcount",
729 "issue": "DRA-396",
730 "expect": 9,
731 "timeout": 120,
732 "args": [
733 "fifo"
734 ],
735 "mutate": [
736 "seed/node/sched.om",
737 "for j ulong 64\nput scst 3 add get scst 3 1\n",
738 "for j ulong 64\nput scst 3 add get scst 3 3\n"
739 ],
740 "why": "run with fifo: every pick under policy 0 now counts 192 reads; the pt_step bound (exit 9) allows (assigned + events) x 64 per step, and a step with p >= 1 picks has assigned + events <= p + 1 (unsuccessful picks end the event), so 192p > 64(p+1): 9 at the first step that picks, which is phase C (pt_impossible runs first in main), before phase A head-of-line exit 11",
741 "fragments": [
742 "seed/node/transport.om",
743 "seed/node/pool.om",
744 "seed/node/super.om",
745 "seed/node/sched.om",
746 "seed/node/schedpol-test.om"
747 ]
748 },
749 {
750 "case": "schedpol-gate-goal",
751 "issue": "DRA-397",
752 "gate": "seed/node/schedpol-gate.om",
753 "compose": [
754 "seed/node/transport.om",
755 "seed/node/pool.om",
756 "seed/node/super.om",
757 "seed/node/sched.om",
758 "seed/node/schedpol-test.om"
759 ],
760 "expect": 0,
761 "timeout": 120,
762 "stdout_has": [
763 "PASS node schedpol"
764 ],
765 "repeat": 10,
766 "args": [
767 "goal"
768 ]
769 },
770 {
771 "case": "mut397-goal-off",
772 "issue": "DRA-397",
773 "fragments": [
774 "seed/node/transport.om",
775 "seed/node/pool.om",
776 "seed/node/super.om",
777 "seed/node/sched.om",
778 "seed/node/schedpol-test.om"
779 ],
780 "mutate": [
781 "seed/node/sched.om",
782 "fn sp_better goal bool a ulong b ulong to bool\nif goal\n",
783 "fn sp_better goal bool a ulong b ulong to bool\nif false\n"
784 ],
785 "expect": 151,
786 "why": "G first run: policy-1 order, x runs first, trace mismatch: 151"
787 },
788 {
789 "case": "mut397-depth2-removed",
790 "issue": "DRA-397",
791 "fragments": [
792 "seed/node/transport.om",
793 "seed/node/pool.om",
794 "seed/node/super.om",
795 "seed/node/sched.om",
796 "seed/node/schedpol-test.om"
797 ],
798 "mutate": [
799 "seed/node/sched.om",
800 "if ne and get sjdep k p2 0\nn = add n 1",
801 "if false\nn = add n 1"
802 ],
803 "expect": 151,
804 "why": "G first run: a and z both value 1, equal estimates, z older runs second: 151"
805 },
806 {
807 "case": "mut397-always-rescore",
808 "issue": "DRA-397",
809 "fragments": [
810 "seed/node/transport.om",
811 "seed/node/pool.om",
812 "seed/node/super.om",
813 "seed/node/sched.om",
814 "seed/node/schedpol-test.om"
815 ],
816 "mutate": [
817 "seed/node/sched.om",
818 "if and eq get scgv 1 v ne get scgv 4 2\nret\nend\n",
819 ""
820 ],
821 "expect": 162,
822 "why": "H: completion with nothing published rescores at the next pick; stat 32 == 1 fails: 162"
823 },
824 {
825 "case": "mut397-ready-no-bump",
826 "issue": "DRA-397",
827 "fragments": [
828 "seed/node/transport.om",
829 "seed/node/pool.om",
830 "seed/node/super.om",
831 "seed/node/sched.om",
832 "seed/node/schedpol-test.om"
833 ],
834 "mutate": [
835 "seed/node/sched.om",
836 "put scst 1 add get scst 1 1\nsp_bump\n",
837 "put scst 1 add get scst 1 1\n"
838 ],
839 "expect": 151,
840 "why": "G first run: b readied by publication keeps value 0, x older runs fourth: 151"
841 },
842 {
843 "case": "mut397-waiting-no-bump",
844 "issue": "DRA-397",
845 "fragments": [
846 "seed/node/transport.om",
847 "seed/node/pool.om",
848 "seed/node/super.om",
849 "seed/node/sched.om",
850 "seed/node/schedpol-test.om"
851 ],
852 "mutate": [
853 "seed/node/sched.om",
854 "put sjst j 1\nsp_bump\n",
855 "put sjst j 1\n"
856 ],
857 "expect": 160,
858 "why": "H: only 2 bumps (r ready, sched_goal) before unpause; stat 34 == 4 fails: 160"
859 },
860 {
861 "case": "mut397-cancel-no-bump",
862 "issue": "DRA-397",
863 "fragments": [
864 "seed/node/transport.om",
865 "seed/node/pool.om",
866 "seed/node/super.om",
867 "seed/node/sched.om",
868 "seed/node/schedpol-test.om"
869 ],
870 "mutate": [
871 "seed/node/sched.om",
872 "put sjst j 0\nsp_bump\nif eq get scpol 5 add j 1",
873 "put sjst j 0\nif eq get scpol 5 add j 1"
874 ],
875 "expect": 165,
876 "why": "H: cancelling waiting w3 does not move stat 34: 165"
877 },
878 {
879 "case": "mut397-propose-unchecked",
880 "issue": "DRA-397",
881 "fragments": [
882 "seed/node/transport.om",
883 "seed/node/pool.om",
884 "seed/node/super.om",
885 "seed/node/sched.om",
886 "seed/node/schedpol-test.om"
887 ],
888 "mutate": [
889 "seed/node/sched.om",
890 "if ne v get scgv 0\nput scgst 4",
891 "if false\nput scgst 4"
892 ],
893 "expect": 170,
894 "why": "P: stale proposal accepted, returns 0 not -9: 170"
895 },
896 {
897 "case": "mut397-use-unchecked",
898 "issue": "DRA-397",
899 "fragments": [
900 "seed/node/transport.om",
901 "seed/node/pool.om",
902 "seed/node/super.om",
903 "seed/node/sched.om",
904 "seed/node/schedpol-test.om"
905 ],
906 "mutate": [
907 "seed/node/sched.om",
908 "if and eq get scgv 3 get scgv 0 eq get scgv 4 1\n",
909 "if true\n"
910 ],
911 "expect": 176,
912 "why": "P: p3 proposal made stale is used, p3 runs before p2; sjst p3 == 2 fails: 176"
913 },
914 {
915 "case": "mut397-est-ignored",
916 "issue": "DRA-397",
917 "fragments": [
918 "seed/node/transport.om",
919 "seed/node/pool.om",
920 "seed/node/super.om",
921 "seed/node/sched.om",
922 "seed/node/schedpol-test.om"
923 ],
924 "mutate": [
925 "seed/node/sched.om",
926 "if ne ea eb\nret lt ea eb",
927 "if false\nret lt ea eb"
928 ],
929 "expect": 181,
930 "why": "K: equal values, estimate 10 vs 90 not used, older b wins: 181"
931 },
932 {
933 "case": "mut397-incarnation-ignored",
934 "issue": "DRA-397",
935 "fragments": [
936 "seed/node/transport.om",
937 "seed/node/pool.om",
938 "seed/node/super.om",
939 "seed/node/sched.om",
940 "seed/node/schedpol-test.om"
941 ],
942 "mutate": [
943 "seed/node/sched.om",
944 "put scgv 0 shl n 40\n",
945 "put scgv 0 0\n"
946 ],
947 "expect": 184,
948 "why": "I: both schedulers start at version 0 and reach 1 after one admission, so scheduler 1's version is current in scheduler 2 and sched_propose returns -3 instead of -9: 184"
949 },
950 {
951 "case": "mut397-proposal-fit-unchecked-at-use",
952 "issue": "DRA-397",
953 "fragments": [
954 "seed/node/transport.om",
955 "seed/node/pool.om",
956 "seed/node/super.om",
957 "seed/node/sched.om",
958 "seed/node/schedpol-test.om"
959 ],
960 "mutate": [
961 "seed/node/sched.om",
962 "if eq get sjst j 2\nif sp_fits get sjneed j rq\nput scgst 7",
963 "if eq get sjst j 2\nif true\nput scgst 7"
964 ],
965 "expect": 189,
966 "why": "R2: x (2 CPU) is used beside the B2 reservation (4 of 3 free CPU) instead of dropped, so the stale count does not rise: 189"
967 },
968 {
969 "case": "mut397-propose-without-incarnation",
970 "issue": "DRA-397",
971 "fragments": [
972 "seed/node/transport.om",
973 "seed/node/pool.om",
974 "seed/node/super.om",
975 "seed/node/sched.om",
976 "seed/node/schedpol-test.om"
977 ],
978 "mutate": [
979 "seed/node/sched.om",
980 "if ne get scgv 4 1\nput scgst 5 add get scgst 5 1\nret neg long 6",
981 "if false\nput scgst 5 add get scgst 5 1\nret neg long 6"
982 ],
983 "expect": 120,
984 "why": "Phase X proposes before any sched_incarnate: with the state check gone the version (admission bumps only) is current and the id is ready, so 0 is returned instead of -6 at the first check (120)."
985 },
986 {
987 "case": "mut397-incarnate-twice",
988 "issue": "DRA-397",
989 "fragments": [
990 "seed/node/transport.om",
991 "seed/node/pool.om",
992 "seed/node/super.om",
993 "seed/node/sched.om",
994 "seed/node/schedpol-test.om"
995 ],
996 "mutate": [
997 "seed/node/sched.om",
998 "if ne get scgv 4 0\nret neg long 7",
999 "if false\nret neg long 7"
1000 ],
1001 "expect": 121,
1002 "why": "Phase X calls sched_incarnate 6 after 5: with the once check gone it returns 0 instead of -7 (121)."
1003 },
1004 {
1005 "case": "mut397-version-carries",
1006 "issue": "DRA-397",
1007 "fragments": [
1008 "seed/node/transport.om",
1009 "seed/node/pool.om",
1010 "seed/node/super.om",
1011 "seed/node/sched.om",
1012 "seed/node/schedpol-test.om"
1013 ],
1014 "mutate": [
1015 "seed/node/sched.om",
1016 "if eq and get scgv 0 1099511627775 1099511627775\nput scgv 4 2",
1017 "if false\nput scgv 4 2"
1018 ],
1019 "expect": 123,
1020 "why": "Phase X sets the version to 5*2^40 + 2^40-1 and bumps once: without saturation it becomes 6*2^40, so sched_version differs from v (123)."
1021 },
1022 {
1023 "case": "mut397-exhausted-used",
1024 "issue": "DRA-397",
1025 "fragments": [
1026 "seed/node/transport.om",
1027 "seed/node/pool.om",
1028 "seed/node/super.om",
1029 "seed/node/sched.om",
1030 "seed/node/schedpol-test.om"
1031 ],
1032 "mutate": [
1033 "seed/node/sched.om",
1034 "if and eq get scgv 3 get scgv 0 eq get scgv 4 1",
1035 "if eq get scgv 3 get scgv 0"
1036 ],
1037 "expect": 125,
1038 "why": "Phase X: the proposal made at the last revision still names the stuck version after exhaustion; without the state check sp_proposal returns its slot instead of 64 (125). 124 passes: sched_propose itself still refuses with -6."
1039 },
1040 {
1041 "case": "mut397-exhausted-no-rescore",
1042 "issue": "DRA-397",
1043 "fragments": [
1044 "seed/node/transport.om",
1045 "seed/node/pool.om",
1046 "seed/node/super.om",
1047 "seed/node/sched.om",
1048 "seed/node/schedpol-test.om"
1049 ],
1050 "mutate": [
1051 "seed/node/sched.om",
1052 "if and eq get scgv 1 v ne get scgv 4 2",
1053 "if eq get scgv 1 v"
1054 ],
1055 "expect": 126,
1056 "why": "Phase X calls sp_rescore twice on the exhausted version: the first rescores (scgv 1 was set at incarnation), the second sees scgv 1 = v and returns, so rescorings grow by 1, not 2 (126)."
1057 },
1058 {
1059 "case": "mut397-ambiguous-id",
1060 "issue": "DRA-397",
1061 "fragments": [
1062 "seed/node/transport.om",
1063 "seed/node/pool.om",
1064 "seed/node/super.om",
1065 "seed/node/sched.om",
1066 "seed/node/schedpol-test.om"
1067 ],
1068 "mutate": [
1069 "seed/node/sched.om",
1070 "if ne n 1\nput scgst 5 add get scgst 5 1\nret neg long 3",
1071 "if eq n 0\nput scgst 5 add get scgst 5 1\nret neg long 3"
1072 ],
1073 "expect": 127,
1074 "why": "Phase X admits two ready jobs with id 720050: with only the no-match refusal, the last match fits and 0 is returned instead of -3 (127)."
1075 },
1076 {
1077 "case": "mut397-incarnate-marks-scored",
1078 "issue": "DRA-397",
1079 "fragments": [
1080 "seed/node/transport.om",
1081 "seed/node/pool.om",
1082 "seed/node/super.om",
1083 "seed/node/sched.om",
1084 "seed/node/schedpol-test.om"
1085 ],
1086 "mutate": [
1087 "seed/node/sched.om",
1088 "put scgv 0 shl n 40\nput scgv 2 0\n",
1089 "put scgv 0 shl n 40\nput scgv 1 get scgv 0\nput scgv 2 0\n"
1090 ],
1091 "expect": 128,
1092 "why": "Review r3: sched_incarnate marks the values scored at the new version. Phase L admits u (older, no goal), p (younger, declares topic 64, est 300) and d (waits on 64) while paused, then incarnates; at resume the one worker's pick finds the version equal to the last scoring, skips rescoring, all values read 0, the key falls to estimate (u 0 < p 300) and u is assigned, so `pt_ok eq get sjst p 3 128` fails: exit 128. Earlier phases are unaffected: they incarnate before admitting, when no values exist yet."
1093 },
1094 {
1095 "case": "replay-gate",
1096 "issue": "DRA-398",
1097 "gate": "seed/node/replay-gate.om",
1098 "compose": [
1099 "seed/node/transport.om",
1100 "seed/node/pool.om",
1101 "seed/node/super.om",
1102 "seed/node/sched.om",
1103 "seed/authority/action.om",
1104 "seed/node/journal.om",
1105 "seed/node/auth.om",
1106 "seed/node/replay-test.om"
1107 ],
1108 "expect": 0,
1109 "timeout": 180,
1110 "repeat": 5,
1111 "stdout_has": [
1112 "PASS node replay"
1113 ],
1114 "clean": [
1115 "build/node/rpa",
1116 "build/node/rpb"
1117 ]
1118 },
1119 {
1120 "case": "mut398-req-not-journaled",
1121 "issue": "DRA-398",
1122 "fragments": [
1123 "seed/node/transport.om",
1124 "seed/node/pool.om",
1125 "seed/node/super.om",
1126 "seed/node/sched.om",
1127 "seed/authority/action.om",
1128 "seed/node/journal.om",
1129 "seed/node/auth.om",
1130 "seed/node/replay-test.om"
1131 ],
1132 "mutate": [
1133 "seed/node/journal.om",
1134 "put r 6 req\nput r 7 s",
1135 "put r 6 0\nput r 7 s"
1136 ],
1137 "expect": 53,
1138 "why": "ADMIT carries request 0, so C2 readmits every job needing nothing: the boundary fold of needs (word 6) differs from R's after event 3 in case (1,3): 53.",
1139 "clean": [
1140 "build/node/rpa",
1141 "build/node/rpb"
1142 ]
1143 },
1144 {
1145 "case": "mut398-policy-not-restored",
1146 "issue": "DRA-398",
1147 "fragments": [
1148 "seed/node/transport.om",
1149 "seed/node/pool.om",
1150 "seed/node/super.om",
1151 "seed/node/sched.om",
1152 "seed/authority/action.om",
1153 "seed/node/journal.om",
1154 "seed/node/auth.om",
1155 "seed/node/replay-test.om"
1156 ],
1157 "mutate": [
1158 "seed/node/journal.om",
1159 "ret eq sched_policy p w d y get jpol 5 0",
1160 "ret true"
1161 ],
1162 "expect": 53,
1163 "why": "C2 keeps sched_new's policy words (window 64, budgets 64) instead of 4/2/2: boundary word 5 differs in case (1,3): 53.",
1164 "clean": [
1165 "build/node/rpa",
1166 "build/node/rpb"
1167 ]
1168 },
1169 {
1170 "case": "mut398-caps-not-restored",
1171 "issue": "DRA-398",
1172 "fragments": [
1173 "seed/node/transport.om",
1174 "seed/node/pool.om",
1175 "seed/node/super.om",
1176 "seed/node/sched.om",
1177 "seed/authority/action.om",
1178 "seed/node/journal.om",
1179 "seed/node/auth.om",
1180 "seed/node/replay-test.om"
1181 ],
1182 "mutate": [
1183 "seed/node/journal.om",
1184 "if ne sched_cap get jpol 6 0\nret false",
1185 "if false\nret false"
1186 ],
1187 "expect": 53,
1188 "why": "C2 keeps sched_new's capacities (65535 per kind), so readmission still succeeds; boundary word 7 (sched_caps) differs from 4 CPU in case (1,3): 53.",
1189 "clean": [
1190 "build/node/rpa",
1191 "build/node/rpb"
1192 ]
1193 },
1194 {
1195 "case": "mut398-readmit-any-slot",
1196 "issue": "DRA-398",
1197 "fragments": [
1198 "seed/node/transport.om",
1199 "seed/node/pool.om",
1200 "seed/node/super.om",
1201 "seed/node/sched.om",
1202 "seed/authority/action.om",
1203 "seed/node/journal.om",
1204 "seed/node/auth.om",
1205 "seed/node/replay-test.om"
1206 ],
1207 "mutate": [
1208 "seed/node/journal.om",
1209 "x = sched_admits get jjob add b 1 get jjob add b 2 get jjob add b 3 get jreq k get jslot k\n",
1210 "x = sched_admitr get jjob add b 1 get jjob add b 2 get jjob add b 3 get jreq k\n"
1211 ],
1212 "expect": 20,
1213 "why": "review r2 trace (derivation corrected from 53): readmission moves the reserved job from recorded slot 2 to scheduler slot 0, while the journal's jsl keeps the recorded slots. C2's first dispatch assigns slot 0, free in jsl, so jn_drain's FAIR is refused (25); the PAUSE after it returns -5 and rp_dispatch exits 20 before rp_cmp reaches the boundary comparison: 20",
1214 "clean": [
1215 "build/node/rpa",
1216 "build/node/rpb"
1217 ]
1218 },
1219 {
1220 "case": "mut398-bypass-not-replayed",
1221 "issue": "DRA-398",
1222 "fragments": [
1223 "seed/node/transport.om",
1224 "seed/node/pool.om",
1225 "seed/node/super.om",
1226 "seed/node/sched.om",
1227 "seed/authority/action.om",
1228 "seed/node/journal.om",
1229 "seed/node/auth.om",
1230 "seed/node/replay-test.om"
1231 ],
1232 "mutate": [
1233 "seed/node/journal.om",
1234 "k = sub get jsl s 1\nput jbyp k add get jbyp k 1",
1235 "k = sub get jsl s 1\nput jbyp k get jbyp k"
1236 ],
1237 "expect": 53,
1238 "why": "Recovered bypass counts stay 0; the case's own b+5 check requires R's bypass sum after event 3 to be above 0, so word 8 differs in case (1,3): 53.",
1239 "clean": [
1240 "build/node/rpa",
1241 "build/node/rpb"
1242 ]
1243 },
1244 {
1245 "case": "mut398-cursor-not-restored",
1246 "issue": "DRA-398",
1247 "fragments": [
1248 "seed/node/transport.om",
1249 "seed/node/pool.om",
1250 "seed/node/super.om",
1251 "seed/node/sched.om",
1252 "seed/authority/action.om",
1253 "seed/node/journal.om",
1254 "seed/node/auth.om",
1255 "seed/node/replay-test.om"
1256 ],
1257 "mutate": [
1258 "seed/node/sched.om",
1259 "put scpol 4 cur\nput scst 2 ev",
1260 "put scpol 4 0\nput scst 2 ev"
1261 ],
1262 "expect": 53,
1263 "why": "C2's cursor is 0; the b+5 check requires R's cursor after event 3 to be nonzero, so word 2 differs in case (1,3): 53.",
1264 "clean": [
1265 "build/node/rpa",
1266 "build/node/rpb"
1267 ]
1268 },
1269 {
1270 "case": "mut398-goal-not-restored",
1271 "issue": "DRA-398",
1272 "fragments": [
1273 "seed/node/transport.om",
1274 "seed/node/pool.om",
1275 "seed/node/super.om",
1276 "seed/node/sched.om",
1277 "seed/authority/action.om",
1278 "seed/node/journal.om",
1279 "seed/node/auth.om",
1280 "seed/node/replay-test.om"
1281 ],
1282 "mutate": [
1283 "seed/node/journal.om",
1284 "if lt sched_goal j get jgoal add g 1 get jgoal add g 2 get jgoal add g 3 0\n",
1285 "if lt sched_goal j 0 0 0 0\n"
1286 ],
1287 "expect": 73,
1288 "why": "Recovered declarations are zero. Policy-1 cases declare no goals and pass; in case 3 (policy 2, crash after 3) waiting job 6000 (estimate 30, uncertainty 9) never runs, so the needs/goal fold differs at the boundary: 70+3.",
1289 "clean": [
1290 "build/node/rpa",
1291 "build/node/rpb"
1292 ]
1293 },
1294 {
1295 "case": "mut398-append-no-drain",
1296 "issue": "DRA-398",
1297 "fragments": [
1298 "seed/node/transport.om",
1299 "seed/node/pool.om",
1300 "seed/node/super.om",
1301 "seed/node/sched.om",
1302 "seed/authority/action.om",
1303 "seed/node/journal.om",
1304 "seed/node/auth.om",
1305 "seed/node/replay-test.om"
1306 ],
1307 "mutate": [
1308 "seed/node/journal.om",
1309 "fn jn_append r edit ulong 16 to ulong\ne = jn_drain\n",
1310 "fn jn_append r edit ulong 16 to ulong\ne = ulong 0\n"
1311 ],
1312 "expect": 93,
1313 "why": "Quiescent cases still drain in auth_step before any RELEASE and pass. In the mid-event case the dispatch's FAIR is still in the ring when the PAUSE record is appended and C' dies, so C2' restores the previous cursor/reservation; the gate requires that event to move one of them, so 93.",
1314 "clean": [
1315 "build/node/rpa",
1316 "build/node/rpb"
1317 ]
1318 },
1319 {
1320 "case": "mut398-recover-no-attach",
1321 "issue": "DRA-398",
1322 "fragments": [
1323 "seed/node/transport.om",
1324 "seed/node/pool.om",
1325 "seed/node/super.om",
1326 "seed/node/sched.om",
1327 "seed/authority/action.om",
1328 "seed/node/journal.om",
1329 "seed/node/auth.om",
1330 "seed/node/replay-test.om"
1331 ],
1332 "mutate": [
1333 "seed/node/journal.om",
1334 "sched_jattach true\nret 0",
1335 "ret 0"
1336 ],
1337 "expect": 53,
1338 "why": "jn_recover never attaches the ring, in every creator: R and C journal no FAIR and no readiness record. C2 recovers journal b with cursor 0, no bypass counts and job 7001 waiting, while R at the boundary has a nonzero cursor (the case requires it): the boundary comparison fails first, 50+3. (Derived 56 in r0; review r1 showed the mutation also affects R and C.)",
1339 "clean": [
1340 "build/node/rpa",
1341 "build/node/rpb"
1342 ]
1343 },
1344 {
1345 "case": "mut398-fair-repeat-accepted",
1346 "issue": "DRA-398",
1347 "fragments": [
1348 "seed/node/transport.om",
1349 "seed/node/pool.om",
1350 "seed/node/super.om",
1351 "seed/node/sched.om",
1352 "seed/authority/action.om",
1353 "seed/node/journal.om",
1354 "seed/node/auth.om",
1355 "seed/node/replay-test.om"
1356 ],
1357 "mutate": [
1358 "seed/node/journal.om",
1359 "ret gt ev get jfair 0\n",
1360 "ret true\n"
1361 ],
1362 "expect": 96,
1363 "why": "A decision FAIR at or before the last event is accepted. Normal runs never repeat an event, so every case passes; the refusal check of a FAIR repeating the last event then sees 0 instead of 25: 96.",
1364 "clean": [
1365 "build/node/rpa",
1366 "build/node/rpb"
1367 ]
1368 },
1369 {
1370 "case": "mut398-fair-free-slot",
1371 "issue": "DRA-398",
1372 "fragments": [
1373 "seed/node/transport.om",
1374 "seed/node/pool.om",
1375 "seed/node/super.om",
1376 "seed/node/sched.om",
1377 "seed/authority/action.om",
1378 "seed/node/journal.om",
1379 "seed/node/auth.om",
1380 "seed/node/replay-test.om"
1381 ],
1382 "mutate": [
1383 "seed/node/journal.om",
1384 "if eq x 0\nret false\nend\nk = sub x 1\n",
1385 "if false\nret false\nend\nk = sub x 1\n"
1386 ],
1387 "expect": 96,
1388 "why": "jn_fok no longer refuses a free slot: the entry index becomes 0 - 1 and the job-table read is out of bounds, so the replay of the FAIR naming a free slot traps (exit 103) inside the record-refusal child, which the parent reports as 96. Normal runs never name a free slot.",
1389 "clean": [
1390 "build/node/rpa",
1391 "build/node/rpb"
1392 ]
1393 },
1394 {
1395 "case": "mut398-spver-unchecked",
1396 "issue": "DRA-398",
1397 "fragments": [
1398 "seed/node/transport.om",
1399 "seed/node/pool.om",
1400 "seed/node/super.om",
1401 "seed/node/sched.om",
1402 "seed/authority/action.om",
1403 "seed/node/journal.om",
1404 "seed/node/auth.om",
1405 "seed/node/replay-test.om"
1406 ],
1407 "mutate": [
1408 "seed/node/journal.om",
1409 "if eq get r 5 SPVER\nif eq get jfmt 1 0",
1410 "if ne get r 5 0\nif eq get jfmt 1 0"
1411 ],
1412 "expect": 98,
1413 "why": "rp_dup's OPEN with SPVER + 1 is accepted instead of refused with 33 (98). Re-anchored on the move onto DRA-292: the SPVER test is now in jn_aopen, where word 5 is SPVER for a format-2 OPEN and 0 only for a format-1 one; the mutant takes any nonzero word 5 as a format-2 OPEN (the earlier replacement, 'if ne get r 5 SPVER' made 'if false', no longer occurs). The OPEN is in a version-2 file, so the 0 branch is not reached; expectation unchanged.",
1414 "clean": [
1415 "build/node/rpa",
1416 "build/node/rpb"
1417 ]
1418 },
1419 {
1420 "case": "mut398-revoke-ignores-journal",
1421 "issue": "DRA-398",
1422 "fragments": [
1423 "seed/node/transport.om",
1424 "seed/node/pool.om",
1425 "seed/node/super.om",
1426 "seed/node/sched.om",
1427 "seed/authority/action.om",
1428 "seed/node/journal.om",
1429 "seed/node/auth.om",
1430 "seed/node/replay-test.om"
1431 ],
1432 "mutate": [
1433 "seed/node/auth.om",
1434 "if ne jn_rec 6 g 0 0 0\nret 0",
1435 "if eq jn_rec 6 g 0 0 256\nret 0"
1436 ],
1437 "expect": 40,
1438 "why": "With the journal failed, REVOKE is refused but auth_revoke goes on and returns the new generation instead of 0 (40). Replacement corrected after receipt ac506fe8: jn_rec takes four arguments, and the earlier text gave it a fifth (omc error 5). jn_rec's result is 0 or an error code of at most 33, never 256, so the mutated test never returns early: a refused record is ignored and a recorded one behaves as before.",
1439 "clean": [
1440 "build/node/rpa",
1441 "build/node/rpb"
1442 ]
1443 },
1444 {
1445 "case": "mut398-pause-ignores-journal",
1446 "issue": "DRA-398",
1447 "fragments": [
1448 "seed/node/transport.om",
1449 "seed/node/pool.om",
1450 "seed/node/super.om",
1451 "seed/node/sched.om",
1452 "seed/authority/action.om",
1453 "seed/node/journal.om",
1454 "seed/node/auth.om",
1455 "seed/node/replay-test.om"
1456 ],
1457 "mutate": [
1458 "seed/node/auth.om",
1459 "if ne jn_rec 7 v 0 0 0\nret neg long 5",
1460 "if eq jn_rec 7 v 0 0 256\nret neg long 5"
1461 ],
1462 "expect": 41,
1463 "why": "With the journal failed, PAUSE 0 is refused but auth_pause resumes the scheduler and returns its count instead of -5 (41). Replacement corrected after receipt ac506fe8: jn_rec takes four arguments, and the earlier text gave it a fifth (omc error 5). jn_rec's result is 0 or an error code of at most 33, never 256, so the mutated test never returns early: a refused record is ignored and a recorded one behaves as before.",
1464 "clean": [
1465 "build/node/rpa",
1466 "build/node/rpb"
1467 ]
1468 },
1469 {
1470 "case": "mut398-cancel-ignores-journal",
1471 "issue": "DRA-398",
1472 "fragments": [
1473 "seed/node/transport.om",
1474 "seed/node/pool.om",
1475 "seed/node/super.om",
1476 "seed/node/sched.om",
1477 "seed/authority/action.om",
1478 "seed/node/journal.om",
1479 "seed/node/auth.om",
1480 "seed/node/replay-test.om"
1481 ],
1482 "mutate": [
1483 "seed/node/auth.om",
1484 "if ne jn_rec 8 id 0 0 0\nret neg long 5",
1485 "if eq jn_rec 8 id 0 0 256\nret neg long 5"
1486 ],
1487 "expect": 42,
1488 "why": "With the journal failed, CANCEL is refused but sched_cancel frees the ready job; its RELEASE is refused so -5 still comes back, and the job's state is no longer ready (42). Replacement corrected after receipt ac506fe8: jn_rec takes four arguments, and the earlier text gave it a fifth (omc error 5). jn_rec's result is 0 or an error code of at most 33, never 256, so the mutated test never returns early: a refused record is ignored and a recorded one behaves as before.",
1489 "clean": [
1490 "build/node/rpa",
1491 "build/node/rpb"
1492 ]
1493 },
1494 {
1495 "case": "mut398-ring-full-ignored",
1496 "issue": "DRA-398",
1497 "fragments": [
1498 "seed/node/transport.om",
1499 "seed/node/pool.om",
1500 "seed/node/super.om",
1501 "seed/node/sched.om",
1502 "seed/authority/action.om",
1503 "seed/node/journal.om",
1504 "seed/node/auth.om",
1505 "seed/node/replay-test.om"
1506 ],
1507 "mutate": [
1508 "seed/node/sched.om",
1509 "if and ne get sfj 0 0 ge get sfj 1 64\nput scst 15 add get scst 15 1\nret 0\n",
1510 "if false\nput scst 15 add get scst 15 1\nret 0\n"
1511 ],
1512 "expect": 44,
1513 "why": "Dispatch ignores a full replay ring: with 64 records waiting the ring check assigns a job (and writes record 64 past the ring, a trap), so the ring child fails and the parent reports 44.",
1514 "clean": [
1515 "build/node/rpa",
1516 "build/node/rpb"
1517 ]
1518 },
1519 {
1520 "issue": "DRA-398",
1521 "fragments": [
1522 "seed/node/transport.om",
1523 "seed/node/pool.om",
1524 "seed/node/super.om",
1525 "seed/node/sched.om",
1526 "seed/authority/action.om",
1527 "seed/node/journal.om",
1528 "seed/node/auth.om",
1529 "seed/node/replay-test.om"
1530 ],
1531 "case": "mut398-admit-held-slot",
1532 "expect": 23,
1533 "why": "ADMIT no longer refuses a slot another unreleased job holds. Normal admissions always name a free slot, so all cases pass; the refusal check of an ADMIT of a new id into a held slot sees 0 instead of 25: 23.",
1534 "mutate": [
1535 "seed/node/journal.om",
1536 "if ne get jsl s 0\nret 25\nend\nj = jn_jnew get r 3\n",
1537 "j = jn_jnew get r 3\n"
1538 ],
1539 "clean": [
1540 "build/node/rpa",
1541 "build/node/rpb"
1542 ]
1543 },
1544 {
1545 "issue": "DRA-398",
1546 "fragments": [
1547 "seed/node/transport.om",
1548 "seed/node/pool.om",
1549 "seed/node/super.om",
1550 "seed/node/sched.om",
1551 "seed/authority/action.om",
1552 "seed/node/journal.om",
1553 "seed/node/auth.om",
1554 "seed/node/replay-test.om"
1555 ],
1556 "case": "mut398-fair-overlap",
1557 "expect": 24,
1558 "why": "A FAIR naming one slot as both assigned and bypassed is accepted. The scheduler never records that (an assigned job is not bypassed in the same event), so all cases pass; the check of such a FAIR on a live ready job sees 0: 24.",
1559 "mutate": [
1560 "seed/node/journal.om",
1561 "if or ge get r 6 64 ne and am bm 0\n",
1562 "if ge get r 6 64\n"
1563 ],
1564 "clean": [
1565 "build/node/rpa",
1566 "build/node/rpb"
1567 ]
1568 },
1569 {
1570 "issue": "DRA-398",
1571 "fragments": [
1572 "seed/node/transport.om",
1573 "seed/node/pool.om",
1574 "seed/node/super.om",
1575 "seed/node/sched.om",
1576 "seed/authority/action.om",
1577 "seed/node/journal.om",
1578 "seed/node/auth.om",
1579 "seed/node/replay-test.om"
1580 ],
1581 "case": "mut398-fair-assigns-waiting",
1582 "expect": 26,
1583 "why": "Assigned, bypassed and reserved slots may hold waiting jobs. Normal FAIRs only name ready jobs, so all cases pass; the valid ADMIT of waiting job 9101 succeeds and the FAIR assigning it is accepted: 26.",
1584 "mutate": [
1585 "seed/node/journal.om",
1586 "if and w eq kind 1\nret false\nend\n",
1587 "if false\nret false\nend\n"
1588 ],
1589 "clean": [
1590 "build/node/rpa",
1591 "build/node/rpb"
1592 ]
1593 },
1594 {
1595 "issue": "DRA-398",
1596 "fragments": [
1597 "seed/node/transport.om",
1598 "seed/node/pool.om",
1599 "seed/node/super.om",
1600 "seed/node/sched.om",
1601 "seed/authority/action.om",
1602 "seed/node/journal.om",
1603 "seed/node/auth.om",
1604 "seed/node/replay-test.om"
1605 ],
1606 "case": "mut398-ready-record-on-ready",
1607 "expect": 27,
1608 "why": "A readiness record may name a job that is already ready. Normal readiness records only name waiting jobs, so all cases pass; the readiness record naming a ready job with no deps is accepted: 27.",
1609 "mutate": [
1610 "seed/node/journal.om",
1611 "if and not w eq kind 2\nret false\nend\n",
1612 "if false\nret false\nend\n"
1613 ],
1614 "clean": [
1615 "build/node/rpa",
1616 "build/node/rpb"
1617 ]
1618 },
1619 {
1620 "issue": "DRA-398",
1621 "fragments": [
1622 "seed/node/transport.om",
1623 "seed/node/pool.om",
1624 "seed/node/super.om",
1625 "seed/node/sched.om",
1626 "seed/authority/action.om",
1627 "seed/node/journal.om",
1628 "seed/node/auth.om",
1629 "seed/node/replay-test.om"
1630 ],
1631 "case": "mut398-fair-reserves-cancelled",
1632 "expect": 25,
1633 "why": "jn_fok no longer refuses a cancelled job. Normal FAIRs never name a cancelled job (a cancel clears the reservation and removes the job from the ready set), so all cases and checks 23, 24, 26, 27 pass; after a valid CANCEL, the FAIR reserving the cancelled job is accepted: 25.",
1634 "mutate": [
1635 "seed/node/journal.om",
1636 "if or ne get jjob add b 4 0 ne get jjob add b 6 0\nret false\n",
1637 "if ne get jjob add b 4 0\nret false\n"
1638 ],
1639 "clean": [
1640 "build/node/rpa",
1641 "build/node/rpb"
1642 ]
1643 },
1644 {
1645 "issue": "DRA-398",
1646 "fragments": [
1647 "seed/node/transport.om",
1648 "seed/node/pool.om",
1649 "seed/node/super.om",
1650 "seed/node/sched.om",
1651 "seed/authority/action.om",
1652 "seed/node/journal.om",
1653 "seed/node/auth.om",
1654 "seed/node/replay-test.om"
1655 ],
1656 "case": "mut398-uncertainty-not-restored",
1657 "expect": 73,
1658 "why": "Recovered declarations lose their uncertainty. Policy-1 cases declare none and pass; in case 3 (policy 2, crash after 3) waiting job 6000 (uncertainty 9) never runs, so the fold of (id, need, estimate, uncertainty, topics) differs at the boundary: 70+3.",
1659 "mutate": [
1660 "seed/node/journal.om",
1661 "if lt sched_goal j get jgoal add g 1 get jgoal add g 2 get jgoal add g 3 0\n",
1662 "if lt sched_goal j get jgoal add g 1 get jgoal add g 2 0 0\n"
1663 ],
1664 "clean": [
1665 "build/node/rpa",
1666 "build/node/rpb"
1667 ]
1668 },
1669 {
1670 "issue": "DRA-398",
1671 "fragments": [
1672 "seed/node/transport.om",
1673 "seed/node/pool.om",
1674 "seed/node/super.om",
1675 "seed/node/sched.om",
1676 "seed/authority/action.om",
1677 "seed/node/journal.om",
1678 "seed/node/auth.om",
1679 "seed/node/replay-test.om"
1680 ],
1681 "case": "mut398-ttl-not-restored",
1682 "expect": 53,
1683 "why": "Recovery restores the policy with ticket lifetime 1000 instead of the journaled 777. The policy word (with the lifetime in bits 32..) differs at the boundary of case 1: 50+3.",
1684 "mutate": [
1685 "seed/node/journal.om",
1686 "ret eq sched_policy p w d y get jpol 5 0\n",
1687 "ret eq sched_policy p w d y 1000 0\n"
1688 ],
1689 "clean": [
1690 "build/node/rpa",
1691 "build/node/rpb"
1692 ]
1693 },
1694 {
1695 "issue": "DRA-398",
1696 "fragments": [
1697 "seed/node/transport.om",
1698 "seed/node/pool.om",
1699 "seed/node/super.om",
1700 "seed/node/sched.om",
1701 "seed/authority/action.om",
1702 "seed/node/journal.om",
1703 "seed/node/auth.om",
1704 "seed/node/replay-test.om"
1705 ],
1706 "case": "mut398-event-not-restored",
1707 "expect": 20,
1708 "why": "C2 keeps sched_new's event count 0. Its first resume finds cursor and reservation equal to the last FAIR and writes no drift record; its first dispatch event then pushes a FAIR stamped 1, at or before the last journaled event, which jn_put refuses (25) at the next append, the PAUSE: auth_pause returns -5 and C2 exits 20 (case 1), passed through by the parent: 20.",
1709 "mutate": [
1710 "seed/node/sched.om",
1711 "put scpol 4 cur\nput scst 2 ev\n",
1712 "put scpol 4 cur\n"
1713 ],
1714 "clean": [
1715 "build/node/rpa",
1716 "build/node/rpb"
1717 ]
1718 },
1719 {
1720 "issue": "DRA-398",
1721 "fragments": [
1722 "seed/node/transport.om",
1723 "seed/node/pool.om",
1724 "seed/node/super.om",
1725 "seed/node/sched.om",
1726 "seed/authority/action.om",
1727 "seed/node/journal.om",
1728 "seed/node/auth.om",
1729 "seed/node/replay-test.om"
1730 ],
1731 "case": "mut398-attach-fresh-only",
1732 "expect": 56,
1733 "why": "Only a creator whose journal holds no FAIR attaches the ring: R and C (fresh journals) journal their decisions, C2 does not. C2 still makes R's decisions (b+3, b+4 pass) and the boundary checks hold; C3 recovers C's last cursor while R's final cursor differs from its boundary cursor (required): 50+6.",
1734 "mutate": [
1735 "seed/node/journal.om",
1736 "sched_jattach true\nret 0",
1737 "sched_jattach eq get jfair 3 0\nret 0"
1738 ],
1739 "clean": [
1740 "build/node/rpa",
1741 "build/node/rpb"
1742 ]
1743 },
1744 {
1745 "issue": "DRA-398",
1746 "fragments": [
1747 "seed/node/transport.om",
1748 "seed/node/pool.om",
1749 "seed/node/super.om",
1750 "seed/node/sched.om",
1751 "seed/authority/action.om",
1752 "seed/node/journal.om",
1753 "seed/node/auth.om",
1754 "seed/node/replay-test.om"
1755 ],
1756 "case": "mut398-publish-ring-unchecked",
1757 "expect": 44,
1758 "why": "Publication ignores a full ring. The cases never fill the ring and pass; in the ring child, with 64 records waiting, publishing topic 8 makes job 7001 ready and writes the readiness record at word 384 of the 384-word ring: the put traps (exit 103), which the parent reports as 44.",
1759 "mutate": [
1760 "seed/node/sched.om",
1761 "if and ne get sfj 0 0 ge get sfj 1 64\nput scst 15 add get scst 15 1\nret neg long 105\n",
1762 "if false\nput scst 15 add get scst 15 1\nret neg long 105\n"
1763 ],
1764 "clean": [
1765 "build/node/rpa",
1766 "build/node/rpb"
1767 ]
1768 },
1769 {
1770 "issue": "DRA-398",
1771 "fragments": [
1772 "seed/node/transport.om",
1773 "seed/node/pool.om",
1774 "seed/node/super.om",
1775 "seed/node/sched.om",
1776 "seed/authority/action.om",
1777 "seed/node/journal.om",
1778 "seed/node/auth.om",
1779 "seed/node/replay-test.om"
1780 ],
1781 "case": "mut398-publish-ready-unjournaled",
1782 "expect": 53,
1783 "why": "Publication readies jobs but journals no readiness record. R keeps 7001 ready in memory; in case 1 (policy 1, crash after k = 3) 7001 is published before event 1 and stays ready, unassigned and unbypassed through the boundary (the case requires it ready there; its bypass count at k = 3 is 0, probe), so no FAIR in journal b names it. C2 replays b, finds no readiness record and readmits 7001 waiting: word 9 differs from R's at the boundary, 50 + 3 = 53. The later check 27 (readiness records) is never reached.",
1784 "mutate": [
1785 "seed/node/sched.om",
1786 "sp_frpush 0 0 rd\n",
1787 "rd = rd\n"
1788 ],
1789 "clean": [
1790 "build/node/rpa",
1791 "build/node/rpb"
1792 ]
1793 },
1794 {
1795 "issue": "DRA-398",
1796 "fragments": [
1797 "seed/node/transport.om",
1798 "seed/node/pool.om",
1799 "seed/node/super.om",
1800 "seed/node/sched.om",
1801 "seed/authority/action.om",
1802 "seed/node/journal.om",
1803 "seed/node/auth.om",
1804 "seed/node/replay-test.om"
1805 ],
1806 "case": "mut398-ready-not-restored",
1807 "expect": 53,
1808 "why": "Recovery replays the readiness record (jrdy set) but never makes the readmitted job ready. Case 1: 7001 is readmitted waiting; its bypass count at the boundary is 0, so the bypass restore does not refuse first; C2's word 9 (state 1, not 2) differs from R's after event 3: 50 + 3 = 53.",
1809 "mutate": [
1810 "seed/node/journal.om",
1811 "if ne get jrdy k 0\nif lt sched_setready j 0\nret neg long 3\nend\nend\n",
1812 ""
1813 ],
1814 "clean": [
1815 "build/node/rpa",
1816 "build/node/rpb"
1817 ]
1818 },
1819 {
1820 "issue": "DRA-396",
1821 "fragments": [
1822 "seed/node/transport.om",
1823 "seed/node/pool.om",
1824 "seed/node/super.om",
1825 "seed/node/sched.om",
1826 "seed/node/schedpol-test.om"
1827 ],
1828 "case": "mut396-lease-unbounded",
1829 "mutate": [
1830 "seed/node/sched.om",
1831 "if gt ns 1125899906842624\nret neg long 7\nend\n",
1832 ""
1833 ],
1834 "expect": 200,
1835 "why": "sched_lease accepts any duration. Phases before M never pass more than 2^50 and are unchanged; in M the waiting job w is asked 2^50 + 1 and returns 0 instead of -7: 200."
1836 },
1837 {
1838 "issue": "DRA-396",
1839 "fragments": [
1840 "seed/node/transport.om",
1841 "seed/node/pool.om",
1842 "seed/node/super.om",
1843 "seed/node/sched.om",
1844 "seed/node/schedpol-test.om"
1845 ],
1846 "case": "mut396-lease-store-first",
1847 "mutate": [
1848 "seed/node/sched.om",
1849 "if gt ns 1125899906842624\nret neg long 7\nend\nput sjlse j ns\n",
1850 "put sjlse j ns\nif gt ns 1125899906842624\nret neg long 7\nend\n"
1851 ],
1852 "expect": 200,
1853 "why": "The duration is stored before the bound is checked: 2^50 + 1 on waiting job w still returns -7, but its lease is now 2^50 + 1, not 0, so the unchanged-state check fails: 200."
1854 },
1855 {
1856 "issue": "DRA-396",
1857 "fragments": [
1858 "seed/node/transport.om",
1859 "seed/node/pool.om",
1860 "seed/node/super.om",
1861 "seed/node/sched.om",
1862 "seed/node/schedpol-test.om"
1863 ],
1864 "case": "mut396-room-no-renew",
1865 "mutate": [
1866 "seed/node/sched.om",
1867 "if eq t 0\nput stts 0 get scst 2\nret true\nend\n",
1868 "if eq t 0\nret true\nend\n"
1869 ],
1870 "expect": 211,
1871 "why": "A successful ask does not renew the head holder's ticket (the defect of desk review 1064). Phases Q and T only admit a told-yes holder at once, so they pass; in N, X's ticket keeps event e, so at e + 3 (e + 2 < e + 3) it has lapsed and newcomer Y is admitted instead of refused: 211."
1872 },
1873 {
1874 "issue": "DRA-396",
1875 "fragments": [
1876 "seed/node/transport.om",
1877 "seed/node/pool.om",
1878 "seed/node/super.om",
1879 "seed/node/sched.om",
1880 "seed/node/schedpol-test.om"
1881 ],
1882 "case": "mut396-budget-ignored",
1883 "mutate": [
1884 "seed/node/sched.om",
1885 "for i ulong get scpol 2 bound 64\nw = sp_idle n\n",
1886 "for i ulong 64 bound 64\nw = sp_idle n\n"
1887 ],
1888 "expect": 220,
1889 "why": "Dispatch ignores the dispatch budget. Earlier phases have budget 64 (default), or W with two workers and budget 2, where idle workers bind first, so they pass; in U one dispatch with four idle workers, six ready 1-CPU jobs and 4 CPU assigns 4 instead of 2: 220."
1890 },
1891 {
1892 "issue": "DRA-396",
1893 "fragments": [
1894 "seed/node/transport.om",
1895 "seed/node/pool.om",
1896 "seed/node/super.om",
1897 "seed/node/sched.om",
1898 "seed/node/schedpol-test.om"
1899 ],
1900 "case": "mut396-lease-renew-noop",
1901 "mutate": [
1902 "seed/node/sched.om",
1903 "put sjlse j ns\nif eq s 3\nput sjdue j 0\nif gt ns 0\nput sjdue j add ulong monons ns\nend\nend\n",
1904 "put sjlse j ns\n"
1905 ],
1906 "expect": 206,
1907 "why": "A lease change on a running job stores the duration but leaves its deadline (the reviewer's no-op renewal). Phases before M never renew a running job; in M, r's deadline stays at assignment + 2^50, which is above t2 + 2^49 read right after the renewal to 2^49, so the bracket check fails: 206 (204 and 205 pass: refusals leave the deadline either way)."
1908 },
1909 {
1910 "issue": "DRA-398",
1911 "fragments": [
1912 "seed/node/transport.om",
1913 "seed/node/pool.om",
1914 "seed/node/super.om",
1915 "seed/node/sched.om",
1916 "seed/authority/action.om",
1917 "seed/node/journal.om",
1918 "seed/node/auth.om",
1919 "seed/node/replay-test.om"
1920 ],
1921 "case": "mut398-first-fair-mixed",
1922 "expect": 28,
1923 "why": "review r2: the shape check moved back below the first-record exception (the r1 code). rp_dupv clears jfair 3 and puts a FAIR assigning ready slot s and readying waiting slot f; jn_fevt returns true, jn_fok accepts both bitmaps, the record applies (0, not 25): 28",
1924 "mutate": [
1925 "seed/node/journal.om",
1926 "if and ne rd 0 ne ab 0\nret false\nend\nif eq get jfair 3 0\nret true\nend\n",
1927 "if eq get jfair 3 0\nret true\nend\nif and ne rd 0 ne ab 0\nret false\nend\n"
1928 ],
1929 "clean": [
1930 "build/node/rpa",
1931 "build/node/rpb"
1932 ]
1933 },
1934 {
1935 "issue": "DRA-398",
1936 "fragments": [
1937 "seed/node/transport.om",
1938 "seed/node/pool.om",
1939 "seed/node/super.om",
1940 "seed/node/sched.om",
1941 "seed/authority/action.om",
1942 "seed/node/journal.om",
1943 "seed/node/auth.om",
1944 "seed/node/replay-test.om"
1945 ],
1946 "case": "mut398-fence-masked",
1947 "expect": 29,
1948 "why": "review r2: recovery masks the fence to 24 bits (the r1 code). Earlier cases use small fences, unchanged. rp_fence: fence 2^24 + 1 masks to 1, sched_incarnate 1 accepts, jpol 0 so jn_rpol returns true where false is required: 29",
1949 "mutate": [
1950 "seed/node/journal.om",
1951 "if ne sched_incarnate get jfence 0 0\n",
1952 "if ne sched_incarnate and get jfence 0 16777215 0\n"
1953 ],
1954 "clean": [
1955 "build/node/rpa",
1956 "build/node/rpb"
1957 ]
1958 },
1959 {
1960 "case": "mut398-hook-cancel-unchecked",
1961 "issue": "DRA-398",
1962 "om2": true,
1963 "fragments": [
1964 "seed/net/http.om",
1965 "seed/net/notls.om",
1966 "seed/node/transport.om",
1967 "seed/node/pool.om",
1968 "seed/node/super.om",
1969 "seed/node/sched.om",
1970 "seed/authority/action.om",
1971 "seed/node/journal.om",
1972 "seed/node/auth.om",
1973 "seed/node/view.om",
1974 "seed/node/gram.om",
1975 "seed/node/code.om",
1976 "seed/node/code-test.om"
1977 ],
1978 "args": [
1979 "unit",
1980 "build/node/cu"
1981 ],
1982 "expect": 105,
1983 "clean": [
1984 "build/node/cu"
1985 ],
1986 "mutate": [
1987 "seed/node/code.om",
1988 "x = auth_cancel c j\nif ge x 0\ncw_ev i cw_g i 10 5 ulong x\n",
1989 "x = auth_cancel c j\ncw_ev i cw_g i 10 5 ulong x\nif ge x 0\n"
1990 ],
1991 "why": "review r2: the cancel hook converts auth_cancel's result before its sign check (the r1 code). ct_hook: the failed journal makes auth_cancel return -5; ulong -5 traps 5 (CAST, explain_error 105) before any check: 105"
1992 },
1993 {
1994 "case": "mut398-fmt1-legacy-slot-recorded",
1995 "issue": "DRA-398",
1996 "fragments": [
1997 "seed/node/transport.om",
1998 "seed/node/pool.om",
1999 "seed/node/super.om",
2000 "seed/node/sched.om",
2001 "seed/authority/action.om",
2002 "seed/node/journal.om",
2003 "seed/node/auth.om",
2004 "seed/node/journal-test.om"
2005 ],
2006 "mutate": [
2007 "seed/node/journal.om",
2008 "if ne get jfmt 2 0\ns = jn_lfree",
2009 "if false\ns = jn_lfree"
2010 ],
2011 "expect": 193,
2012 "why": "Format-1 ADMITs keep their recorded slot word (0 in a format-1 ADMIT): 6001 takes slot 0 and 6002, also recorded with slot 0, is an ADMIT into a held slot: the open is refused (23), so jt_open 1 3000 0 193 fails: 193. Expectation derived from the code before the run (Case 19 was written for the format-1 compatibility added on the move onto DRA-292).",
2013 "clean": [
2014 "build/node/jt"
2015 ]
2016 },
2017 {
2018 "case": "mut398-fmt1-header-v2-only",
2019 "issue": "DRA-398",
2020 "fragments": [
2021 "seed/node/transport.om",
2022 "seed/node/pool.om",
2023 "seed/node/super.om",
2024 "seed/node/sched.om",
2025 "seed/authority/action.om",
2026 "seed/node/journal.om",
2027 "seed/node/auth.om",
2028 "seed/node/journal-test.om"
2029 ],
2030 "mutate": [
2031 "seed/node/journal.om",
2032 "if and ne get h 1 1 ne get h 1 2",
2033 "if ne get h 1 2"
2034 ],
2035 "expect": 193,
2036 "why": "The header accepts version 2 only (the DRA-398 code before the move onto DRA-292): the version-1 file is refused 21, jt_open ... 0 193 fails: 193. The same change makes DRA-292's release-accept fake journal scenario fail journal-forward-old-to-new (new rc=51; RELSUM pass=2 fail=4 not_run=1, measured on a scratch copy). Expectation derived from the code before the run (Case 19 was written for the format-1 compatibility added on the move onto DRA-292).",
2037 "clean": [
2038 "build/node/jt"
2039 ]
2040 },
2041 {
2042 "case": "mut398-fmt1-no-format-record",
2043 "issue": "DRA-398",
2044 "fragments": [
2045 "seed/node/transport.om",
2046 "seed/node/pool.om",
2047 "seed/node/super.om",
2048 "seed/node/sched.om",
2049 "seed/authority/action.om",
2050 "seed/node/journal.om",
2051 "seed/node/auth.om",
2052 "seed/node/journal-test.om"
2053 ],
2054 "mutate": [
2055 "seed/node/journal.om",
2056 "if eq get jfmt 1 0\ne = jn_rec 14 2 0 0",
2057 "if false\ne = jn_rec 14 2 0 0"
2058 ],
2059 "expect": 193,
2060 "why": "jn_load never writes FORMAT: the OPEN with SPVER that follows in the version-1 file is refused (33) by jn_aopen, so the open returns 33 and jt_open ... 0 193 fails: 193. Expectation derived from the code before the run (Case 19 was written for the format-1 compatibility added on the move onto DRA-292).",
2061 "clean": [
2062 "build/node/jt"
2063 ]
2064 },
2065 {
2066 "case": "mut398-fmt1-format-new-fence",
2067 "issue": "DRA-398",
2068 "fragments": [
2069 "seed/node/transport.om",
2070 "seed/node/pool.om",
2071 "seed/node/super.om",
2072 "seed/node/sched.om",
2073 "seed/authority/action.om",
2074 "seed/node/journal.om",
2075 "seed/node/auth.om",
2076 "seed/node/journal-test.om"
2077 ],
2078 "mutate": [
2079 [
2080 "seed/node/journal.om",
2081 "if eq get jfmt 1 0\ne = jn_rec 14 2 0 0",
2082 "put jfence 0 add get jfence 0 1\nif eq get jfmt 1 0\ne = jn_rec 14 2 0 0"
2083 ],
2084 [
2085 "seed/node/journal.om",
2086 "end\nput jfence 0 add get jfence 0 1\nput jgen 0 add get jgen 0 1\nret jn_rec 1",
2087 "end\nput jgen 0 add get jgen 0 1\nret jn_rec 1"
2088 ]
2089 ],
2090 "expect": 195,
2091 "why": "FORMAT is written under the new fence (3) instead of the last one (2); the open and slot checks hold (193, 194), and the appended FORMAT's fence word 2 is 3, not 2: jt_rw 8 2 2 195 fails: 195. Expectation derived from the code before the run (Case 19 was written for the format-1 compatibility added on the move onto DRA-292).",
2092 "clean": [
2093 "build/node/jt"
2094 ]
2095 },
2096 {
2097 "case": "mut398-fmt1-modern-open-before-format",
2098 "issue": "DRA-398",
2099 "fragments": [
2100 "seed/node/transport.om",
2101 "seed/node/pool.om",
2102 "seed/node/super.om",
2103 "seed/node/sched.om",
2104 "seed/authority/action.om",
2105 "seed/node/journal.om",
2106 "seed/node/auth.om",
2107 "seed/node/journal-test.om"
2108 ],
2109 "mutate": [
2110 "seed/node/journal.om",
2111 "if eq get r 5 SPVER\nif eq get jfmt 1 0",
2112 "if eq get r 5 SPVER\nif false"
2113 ],
2114 "expect": 198,
2115 "why": "An OPEN with SPVER is accepted in a version-1 file before any FORMAT; 193-197 hold (this build always writes FORMAT first), and the second refusal journal (format-1 OPEN, then an SPVER OPEN with no FORMAT) opens: jt_open 1 3000 33 198 fails: 198. Expectation derived from the code before the run (Case 19 was written for the format-1 compatibility added on the move onto DRA-292).",
2116 "clean": [
2117 "build/node/jt"
2118 ]
2119 },
2120 {
2121 "case": "mut398-fmt1-legacy-open-after-format",
2122 "issue": "DRA-398",
2123 "fragments": [
2124 "seed/node/transport.om",
2125 "seed/node/pool.om",
2126 "seed/node/super.om",
2127 "seed/node/sched.om",
2128 "seed/authority/action.om",
2129 "seed/node/journal.om",
2130 "seed/node/auth.om",
2131 "seed/node/journal-test.om"
2132 ],
2133 "mutate": [
2134 "seed/node/journal.om",
2135 "if or ne get r 5 0 ne get jfmt 1 0",
2136 "if ne get r 5 0"
2137 ],
2138 "expect": 198,
2139 "why": "A format-1 OPEN is accepted after FORMAT (and in a version-2 file); 193-197 hold, and the first refusal journal (OPEN 0, FORMAT, OPEN 0) opens: jt_open 1 3000 33 198 fails: 198. Expectation derived from the code before the run (Case 19 was written for the format-1 compatibility added on the move onto DRA-292).",
2140 "clean": [
2141 "build/node/jt"
2142 ]
2143 },
2144 {
2145 "case": "mut398-fmt1-format-anywhere",
2146 "issue": "DRA-398",
2147 "fragments": [
2148 "seed/node/transport.om",
2149 "seed/node/pool.om",
2150 "seed/node/super.om",
2151 "seed/node/sched.om",
2152 "seed/authority/action.om",
2153 "seed/node/journal.om",
2154 "seed/node/auth.om",
2155 "seed/node/journal-test.om"
2156 ],
2157 "mutate": [
2158 "seed/node/journal.om",
2159 "if or ne get jfmt 0 1 ne get jfmt 1 0",
2160 "if false"
2161 ],
2162 "expect": 198,
2163 "why": "FORMAT is accepted anywhere; 193-197 hold and the first two refusal journals are still refused by jn_aopen, but the version-2 file with OPEN SPVER then FORMAT opens: jt_open 1 3000 33 198 fails: 198. Expectation derived from the code before the run (Case 19 was written for the format-1 compatibility added on the move onto DRA-292).",
2164 "clean": [
2165 "build/node/jt"
2166 ]
2167 },
2168 {
2169 "case": "mut398-fmt1-policy-in-legacy",
2170 "issue": "DRA-398",
2171 "fragments": [
2172 "seed/node/transport.om",
2173 "seed/node/pool.om",
2174 "seed/node/super.om",
2175 "seed/node/sched.om",
2176 "seed/authority/action.om",
2177 "seed/node/journal.om",
2178 "seed/node/auth.om",
2179 "seed/node/journal-test.om"
2180 ],
2181 "mutate": [
2182 "seed/node/journal.om",
2183 "if and le t 13 ne get jfmt 2 0",
2184 "if false"
2185 ],
2186 "expect": 199,
2187 "why": "POLICY, GOAL or FAIR is accepted in a format-1 incarnation; 193-198 hold, and the format-1 journal with a GOAL opens: jt_open 1 3000 25 199 fails: 199. Expectation derived from the code before the run (Case 19 was written for the format-1 compatibility added on the move onto DRA-292).",
2188 "clean": [
2189 "build/node/jt"
2190 ]
2191 }
2192 ]
2193}