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

node(sched): DRA-397 goal-aware ranking with coalesced versioned replanning (policy 2)

merged c5708b932c27d39b #1070 · opened 2026-11-07 06:52 UTC · closed 2026-11-15 14:36 UTC · merged 2026-11-15 14:36 UTC

Imported from GitHub aien-dev/omega-mv#1070, by drakestapleton

Base 9dcc6de45ffd211cc823c83caf2b04125aa4c115 · Head f96dec40d9116e00690221ea4d5f4e2acb3428c2

Merged on GitHub as 445e5fce083651982836ec89b2851e7ebc91ab97; reachable from main c7acd2607139eedfabeac16b6042cefe8ede431f (observed 2026-11-18T16:35:37Z)

drakestapleton wrote on 2026-11-07 06:52 UTC

DRA-397: goal-aware ranking with coalesced, versioned replanning (policy 2)

Linear: DRA-397 (project P-DRA-14). Stacked on #1064 (DRA-396, sched/dra-396-fair-dispatch 9dcc6de4).

Status: IMPLEMENTED, EXERCISED on the native AArch64 host. Not QUALIFIED on the Spark gate, not MERGED. Policy 1 stays the default until DRA-399's matched comparison.

What changes

All changes are in seed/node/sched.om (sched lane) and seed/node/schedpol-test.om, plus the README section "Policy 2: goal-aware ranking and replanning".

  • Policy 2 is a third arm of the one sched_dispatch: policy 1's window, reservation, hold-back, feasibility and bypass budget, with a different order among the examined jobs that fit.
  • Ranking key:
    1. Larger unblock value: the waiting jobs, to depth 2, that the job's declared topics would make ready.
    2. Smaller declared estimate.
    3. Older admission.

    Ranking cannot override feasibility, the reservation or the authority: those checks come first, unchanged. A job ranked low is bypassed until the bypass budget reserves it.

  • Inputs: sched_goal j pro est unc (declared topics, estimate in ms, uncertainty in ms). Nothing is learned and no model is called.
  • Replanning:
    • Every committed change that can alter a value bumps a graph version: a job becomes ready, a waiting job is admitted, a job is cancelled, or a declaration changes.
    • Values are rescored once per pick whose version moved, so notifications coalesce and none is lost: the version is a counter, not a flag.
    • Completions, releases and lease expiry replan without rescoring.
  • Proposals: sched_propose j v names the graph version it was computed at.
    • The version is incarnation × 2^40 + revision. sched_incarnate n sets the incarnation once per scheduler (-7 on a second call), and proposals are refused (-6) until it is set.
    • The revision saturates rather than carrying into the incarnation. At 2^40-1 the proposal state becomes exhausted: proposals are refused and every pick rescores. sched_stat 41 reports the state (0 none, 1 accepting, 2 exhausted).
    • A proposal is refused when stale (-9) or when its id names other than exactly one ready job (-3). It is rejected at use when made stale later, or when it no longer fits, and it is used once.
  • Bounds checked at every creator step:
    • Candidate reads ≤ (assigned + events) × (win + 2) under policy 2: the reserved probe, the proposal probe and the window. Exit 9.
    • Value reads ≤ 64 per rescoring + 128 per job scored. Exit 8.
    • The cursor moves by win per window scan. Exit 15.

Command and observed output

Host: Linux 7.0.0-1019-nvidia aarch64 (spark-b87b), compiler seed/out/omc sha256 5f90edea61bac241398df5036990d899361a5acd9decb37954ce088ec0f6f6df, cores 12-14 under the queen pool lock.

flock -w 2400 -o ~/handoffs/hive/queen/pool-12-14.lock taskset -c 12-14 nice -n 10 \
  ~/handoffs/hive/sched/bin/receipt.py ~/handoffs/hive/sched/cases-397.json . evidence/node-schedpol --write
...
PASS mut397-est-ignored expect=181 got=181
PASS mut397-incarnation-ignored expect=184 got=184
PASS mut397-proposal-fit-unchecked-at-use expect=189 got=189
PASS mut397-propose-without-incarnation expect=120 got=120
PASS mut397-incarnate-twice expect=121 got=121
PASS mut397-version-carries expect=123 got=123
PASS mut397-exhausted-used expect=125 got=125
PASS mut397-exhausted-no-rescore expect=126 got=126
PASS mut397-ambiguous-id expect=127 got=127
summary pass=57 fail=0 receipt_sha256=c7c4d7364b59a8c7c03bb3b61e8f150165bc7032d8bca7de51622f8f0fcec50e

Receipt: evidence/node-schedpol/receipt.c7c4d7364b59a8c7c03bb3b61e8f150165bc7032d8bca7de51622f8f0fcec50e.json at source 7f4e1a44, from a clean tree; wall time 702 s.

Earlier receipts, kept unchanged:

  • e8179d90… at a4ae451b (49/0, before review);
  • 27ad92c7… at 50bfda9b (51/0, after r1).

All three were produced by the Python driver ~/handoffs/hive/sched/bin/receipt.py, used before DIRECTIVE-20261107-pure-omega (2026-11-07). Its .om replacement, seed/node/schedrcpt.om, is in progress, and a receipt from it will be added beside these. This PR stays draft until then.

It covers all 57 cases:

  • the four schedpol-gate modes: default 0, goal 0, fifo 11 (the head-of-line control), noreserve 61;
  • the sched, auth, journal and code gates;
  • every DRA-395 and DRA-396 mutant;
  • seventeen DRA-397 mutants.

Each mutant's expected exit was derived, before the run, from the check it trips; the reasoning is in its why field. The README table lists them.

Negative controls (DRA-397)

Change to sched.omExpectedObserved
goal off in sp_better151151
depth 2 ignored in sp_value151151
rescore every pick162162
becoming ready does not bump151151
waiting admission does not bump160160
cancellation does not bump165165
proposal version unchecked at sched_propose170170
proposal version unchecked at use176176
estimate ignored in the key181181
proposal incarnation ignored at use (r1)184184
proposal fit unchecked at use (r1)189189
proposal accepted without an incarnation (r2)120120
second incarnation accepted (r2)121121
revision carries into the incarnation (r2)123123
exhausted state still uses a proposal (r2)125125
exhausted state stops rescoring (r2)126126
ambiguous id accepted (r2)127127

Limits

  • Estimates are declared by the caller. Uncertainty is recorded but not used to rank.
  • Proposals and goal declarations are not journaled here. DRA-398 makes goals durable; proposals are one-pick hints.
  • The step bounds are the scheduler's own counters, not an independent trace of which slots were read.

Review

Read-only review by openai-codex/gpt-6-astra (consult-codex), posted as PR comments:

  • r1: REQUEST_CHANGES. Fixed; receipt 27ad92c7….
  • r2 at 8279d6c4: REQUEST_CHANGES, two MEDIUM findings and one risk. Fixed in a13ed1b4; receipt c7c4d736….
  • r3 at c204a617: pending.

drakestapleton wrote on 2026-11-07 07:03 UTC

Review r1 — openai-codex/gpt-6-astra at head 0064a7ef

Recommendation: REQUEST_CHANGES: fix proposal-version reuse across scheduler lifetimes and add its regression before merging. Read-only static review; no tests executed.

MEDIUM — seed/node/sched.om:169-170,801-838; seed/node/journal.om:642-670

[INFERENCE] External stale proposals can become current again after initialization/recovery. sched_new resets the graph version, sched_version returns only that counter, and sched_propose identifies a job only by its reusable slot. A delayed proposal from an earlier scheduler lifetime can therefore match the new counter and select a different ready job occupying that slot. Clearing the internally queued proposal does not reject an old proposal delivered afterward. This violates the unqualified stale-proposal rejection contract; feasibility checks still prevent resource overcommit.

Fix asked: Bind proposal tokens to a scheduler incarnation as well as graph revision, and validate that incarnation at submission and use. Reuse an appropriate recovery generation where available; do not rely on a counter restarted at zero. Add a regression retaining an external token across sched_new/recovery, recreating the same revision with a different job in the same slot, and requiring rejection.

LOW — seed/node/schedpol-test.om:197-237,958-996

The new proposal path has no direct reservation/hold-back regression. Phase P uses generous capacity and no reservation; it tests version/state behavior but neither the -8 submission refusal nor the fit recheck after resources change. Candidate-bound checks snapshot only sched_step, so proposal dispatch caused directly by sched_pause(false) is outside that check. The source currently checks feasibility correctly, but the receipt does not establish these proposal-specific acceptance properties.

Fix asked: Add proposal cases beside a blocked reservation, after intervening capacity consumption, and when the reservation becomes runnable. Check actual selected jobs, refusal/use counters and resource invariants. Wrap resume/publication dispatches in the candidate-bound snapshots too, and add a negative control removing the proposal fit check.

LOW — seed/node/README.md:674-675; seed/node/schedpol-test.om:1012-1040

The documentation says phases G/H/P/K run in every mode after W. FIFO returns from main at the earlier head-of-line failure, and noreserve exits in pt_starve. Those modes never reach the new phases; their expected-failure receipts do not exercise them.

Fix asked: State that G/H/P/K run in successful default/goal executions, while FIFO/noreserve intentionally terminate at their earlier negative controls.

Evidence (reviewer)

  • Reviewed the supplied patch, PR body, sched.om, schedpol-test.om, journal.om recovery path, case definitions and receipt.py. Worktree HEAD log ends at 0064a7efe6645520467e4ddf32e91ecb8e966679, stacked through 9dcc6de45ffd211cc823c83caf2b04125aa4c115.
  • Receipt e8179d903a210bad04ea5adffe596143d24e5d671230230258b92a8732a0da18 records source a4ae451bf161d929e5d0986c7402ed4545a1afff, compiler 5f90edea61bac241398df5036990d899361a5acd9decb37954ce088ec0f6f6df and 49 PASS / 0 FAIL. It is prior-source host evidence, not a fresh execution at the reviewed head or hardware qualification.
  • sched.om:708-749: sp_value uses waiting jobs, OR-topic dependency semantics, a first-depth membership mask and a union of second-depth topics; it excludes first-depth duplicates. This matches sched_publish:1000-1004, which readies a waiting job on any topic intersection. sp_better:676-690 implements value, estimate, then admission age; uncertainty is explicitly stored but unused.
  • Bump audit: admission:476-480, sp_ready:247-251, declaration:784-797 and cancellation:1065-1068 cover changes to the waiting graph and newly scoreable ready jobs. Worker-loss reruns call sp_ready at 963-964. Review:1021-1029 and settle:1034-1042 remove only nonwaiting/nonready states and do not change existing unblock values. Recovery readmissions call sched_admit and therefore bump; lifecycle token reuse remains the distinct defect above.
  • sched.om:626-669 checks a runnable reservation before ranking and passes reserved demand into proposal/window feasibility checks. sched_dispatch:879-914 checks pause before selecting. No model invocation or new authority bypass was found in the ranking path.
  • Bounds are structurally bounded by fixed loops in sp_value/sp_rescore and the configured window/dispatch loops. pt_vbound checks an aggregate inequality using implementation-maintained counters, not an independent read trace or a standalone per-decision runtime gate. This limitation is acknowledged in the PR body.
  • G exercises a deterministic one-worker useful-work order and a bypass reservation; H exercises coalescing, publication and cancellation counters; K directly exercises comparator precedence rather than dispatch integration. The nine DRA-397 mutant why explanations agree with their relevant check sites and the recorded exits. Their pre-run authorship cannot be independently established from the receipt alone.
  • Cheapest falsification check for the blocking finding: retain a proposal token from one scheduler instance, initialize another, admit a different ready job into the same slot at the matching revision, enable policy 2 and submit the old token. A required incarnation check outside the reviewed API, or rejection of this case, would disprove the finding; none is present in the inspected submission/recovery paths.
  • Additional risk: policy changes and resource changes do not advance this graph token. That is safe for capacity because feasibility is rechecked, but callers must not interpret sched_version as a version of the entire scheduler state. No files were changed.

Posted by the sched lane (Claude Opus 5.5 via omp). Fixes follow in a new head; re-review r2 will run at that head.

drakestapleton wrote on 2026-11-07 07:37 UTC

Review r2 (read-only) — openai-codex/gpt-6-astra via consult-codex, at head 8279d6c4

Verdict: REQUEST_CHANGES.

#SeverityFindingFix
1MEDIUMsched_propose accepted proposals before the scheduler had an incarnation, so the version (incarnation × 2^40 + revision) could match across scheduler lifetimes that both started at incarnation 0.a13ed1b4: proposals need an incarnation. sched_incarnate works once (-7 on a second call). sched_propose returns -6 until it has run (counted in goal counter scgst 5). sp_proposal uses a proposal only in the accepting state.
2MEDIUMAfter 2^40 revision bumps the revision carried into the incarnation bits, so a stale proposal could match a later incarnation's version.a13ed1b4: sp_bump saturates. At revision 2^40-1 the proposal state becomes 2 (exhausted): proposals are refused (-6), and every pick rescores. sched_stat 41 reports the state (0 none, 1 accepting, 2 exhausted).
RriskTwo ready jobs with the same id made an id-named proposal ambiguous.a13ed1b4: sched_propose returns -3 unless exactly one ready job has the id.

New phase X (pt_incx, exits 120–127) covers each fix. There are six new mutants, each failing as derived before the run:

MutantExpected exitObserved
propose-without-incarnation120120
incarnate-twice121121
version-carries123123
exhausted-used125125
exhausted-no-rescore126126
ambiguous-id127127

Two existing mutants were re-anchored to the new conditions; their expected exits are unchanged (always-rescore 162, use-unchecked 176).

Receipt: evidence/node-schedpol/receipt.c7c4d7364b59a8c7c03bb3b61e8f150165bc7032d8bca7de51622f8f0fcec50e.json, 57 PASS / 0 FAIL at source 7f4e1a44 (clean tree, native Linux 7.0.0-1019-nvidia aarch64, cores 12-14). It was produced by the Python driver ~/handoffs/hive/sched/bin/receipt.py, which this lane used before DIRECTIVE-20261107-pure-omega. A receipt from the .om replacement driver (seed/node/schedrcpt.om, in progress) will be added beside it, and this PR stays draft until then.

Re-review r3 at head c204a617 follows.

drakestapleton wrote on 2026-11-07 07:43 UTC

Review r3 (read-only) — openai-codex/gpt-6-astra via consult-codex, at head c204a617

Verdict: REQUEST_CHANGES. The reviewer confirmed the three r2 findings closed: proposals need the accepting state, saturation is terminal with no reset outside sched_new, and ambiguity counts only ready jobs. It found no regression in policies 0 and 1 or in bounds 8, 9 and 15.

#SeverityFindingFix
1MEDIUMsched_incarnate set the last-scored version to the new version without scoring. Jobs admitted or declared before a late first incarnation kept unscored (zero) values until another bump, and phase X never checked ranking after a late incarnation.24a5a1a6: sched_incarnate no longer touches the last scoring. That scoring stays below n × 2^40, so the next ranking pass rescores. This matters to DRA-398, where recovery readmits jobs before it incarnates. New phase L (exit 128) is the reviewer's falsification check: paused, one worker, policy 2; an older unrelated job, a younger producer declaring a topic and a job waiting on it; incarnate, resume. The producer must run.
2LOWThe README said values are recomputed "only" when the version moves, which contradicts exhaustion; and "every pick rescores" ignored reservation-only picks.24a5a1a6: the README separates normal caching from exhaustion, says every ranking pass rescores when exhausted, and says a pick that takes the reserved job scores nothing.

Coverage note from the reviewer, not a defect: phase X sets the final revision directly. It does not drive the transition into it, repeated bumps after exhaustion, or reservation-path dispatch while exhausted.

Observed on native Linux 7.0.0-1019-nvidia aarch64 (cores 12-14, pool lock), at the 24a5a1a6 sources:

schedpol[] exit=0   schedpol[goal] exit=0   schedpol[noreserve] exit=61   schedpol[fifo] exit=11
sched exit=0
mutant (sched_incarnate sets `put scgv 1 get scgv 0` again): default exit=128, goal exit=128

The mutant is mut397-incarnate-marks-scored (expected 128, derived before the run). mut397-incarnation-ignored is re-anchored to put scgv 0 shl n 40\n (expected 184, unchanged).

The content-addressed receipt for head 5b5dad86 will come from the .om receipt driver (seed/node/schedrcpt.om, in progress under DIRECTIVE-20261107-pure-omega). Re-review r4 follows.

drakestapleton wrote on 2026-11-07 07:45 UTC

Review r4 (read-only) — openai-codex/gpt-6-astra via consult-codex, at head 5b5dad86

Verdict: APPROVE, no findings.

  • The r3 MEDIUM is closed on every path. sched_new clears the last scoring, and sched_incarnate leaves it alone, so the next policy-2 ranking pass rescores. This holds whether incarnation comes before or after admissions and declarations. An exhausted scheduler refuses incarnation, and reservation-only picks need no scoring.
  • No accidental match. The reviewer checked that no earlier scoring can equal the new version: Reduce[0<=s<=2^40-1 && 1<=n<2^24 && s==n*2^40,{s,n},Integers] -> False, and n*2^40 stays below 2^64 for every legal n.
  • Phase L is sound. The producer wins only through its unblock value, since both age and estimate favour the unrelated job. The mutant fails the producer-running assertion. The check does not depend on timing, because a job's state changes only when the creator collects.

The reviewer also raised three wording points, all fixed in 599c8c73 (comments and README only, no code change):

  1. The sched_incarnate note said "right after sched_new", although late incarnation is supported.
  2. The note and the README said recovery incarnates after readmission. DRA-398's jn_recover incarnates first; readmission then bumps the version, which also forces a rescore.
  3. The README mutant row credited the older age where the decisive tie-break is the smaller estimate.

Head is now f96dec40: 599c8c73 plus a crumb recompile. The four gate files that embed sched.om are recomposed because the comments changed. The receipt for this head will come from the .om receipt driver (DIRECTIVE-20261107-pure-omega).

Apply it

git checkout -b patch-c5708b932c27d39b 9dcc6de45ffd211cc823c83caf2b04125aa4c115
curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/c5708b932c27d39b.patch | git am

Raw patch (mbox) · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/omega-mv
1070
f96dec40d9116e00690221ea4d5f4e2acb3428c2
{"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":1070,"url":"https://github.com/aien-dev/omega-mv/pull/1070","export_sha256":"7319147b350ad908bf0b731068ec3be7b8dee848041dc862f71455e8e4680140","imported_utc":"2026-11-18T16:35:37Z"}

Changes

diff --git a/.crumb b/.crumb
index 5b5670ab1..8a1168975 100644
--- a/.crumb
+++ b/.crumb
@@ -108,14 +108,14 @@
         }
       ],
       "children_root": "sha256:966bedb54caa4209f9ab84526da66f6b13ce72e8831470170364eb5881355748",
-      "compiled_at": "2026-11-07T06:43:03Z",
+      "compiled_at": "2026-11-07T07:45:29Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:9a80657c28609831363202ba49e4e6cc44d4790468e6ff1562c4071cfdae8290",
-      "evidence_files": 15706,
-      "evidence_root": "sha256:ca1ae28bec5a8001136bfc6307f983fc89a18b568c2cc5ff6c46af06eb471dcc",
-      "files": 24267,
-      "generated_at_commit": "d4474157db84e4b0b02904b246dddfc0ac2a9895",
-      "source_tree": "sha256:047d95680f73d95961f1e53a99926e62f34ca4d8c9c3ef7239f240d8c7b721a0"
+      "digest": "sha256:7f86be266e4c5a99123aa7532c450320eceaae88ab05943a84cfc790b2d8059c",
+      "evidence_files": 15709,
+      "evidence_root": "sha256:0e56cc8cc26c2f1c51dbf53b3312e2fcf3fcfe126220df64d33b8174e53a3cd9",
+      "files": 24270,
+      "generated_at_commit": "599c8c73b85c91e19155a6295a2aa6378c6b0cf4",
+      "source_tree": "sha256:739c5ba2c9ae93bebcb42c0a3eb5290eadb41bc520644fd6615ba0baed549a36"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index e0108a2b5..6eec5c172 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -15,6 +15,7 @@ The current development method is [Human-Directed Agentic Engineering (HDAE)](RE
 | Claude Opus 5.5 (via omp) | DRA-290 for `seed/node`: `code.om`, the coding workflow driving the own Omega model (round40 checkpoint, served by aien-train `ollm serve` `/v1/completions`, aien-train #76) through the Node's scheduler, authority and journal: one inference at a time, typed read/check/replace jobs and a review check, each a cancellable child process group, the round40 repair policy enforced by the creator before every grant, explicit failure reasons and no fallback provider. `infer.om`, a bounded loopback-only completion client returning a versioned record; `tool.om`, the read/check/replace tools inside one root with omagent's path rule (moved to `seed/agent/path.om`), durable replace and sandboxed tests; `gram.om`, the repair grammar. `code-test.om` (54 checks, 15 mutants), `tests/tool-replay.py` (all 108 recorded round40 runs) and live own-model runs with cancellation and crash restart. `seed/agent/agent.om` now kills the tool's whole process group; `seed/authority/action.om` renames a local so the node composes as OM-2. Native AArch64 host evidence only; not QUALIFIED on the Spark gate. |
 | Claude Opus 5.5 (via omp, sched lane) | P-DRA-14 DRA-395 for `seed/node`: reconciled scheduler ownership (the spark-harness `Core::pump` at aien-sovereign-core-mv `dffdbd19` is reference-only and not deployed) and reproduced its head-of-line block in Rust and natively. `sched.om` gains four-kind resource requests packed in one word, capacity admission that refuses impossible requests and capacities below use, atomic take and release (also while a result waits for review room), and policy 0 (FIFO with the pump's head-of-line stop rule) behind one `sched_dispatch`. `schedpol-test.om` checks the capacity invariant after every creator step; its blocked-head phases print a checked witness and fail (exit 11) until fair fitting lands (DRA-396). Seven negative controls; independent review by openai-codex/gpt-6-astra. Native AArch64 host evidence only. |
 | Claude Opus 5.5 (via omp, sched lane) | P-DRA-14 DRA-396 for `seed/node`: policy 1 in `sched.om`, now the default: fair fitting over a bounded window from a persistent cursor that moves on by the window after every window scan, oldest admitted first, a bypass budget that reserves the oldest bypassed job and holds back the capacity it still lacks, admission tickets in strict order with room bounded by free table slots (`sched_room`, also asked by `jn_admit` after its duplicate check), and leases reported once by `sched_overdue`. Candidate reads (bounded by actual picks), maintenance reads and the cursor's movement per window scan are checked at every step and around publish and resume dispatch. `schedpol-test.om` adds starvation, ticket, lease, reserved-cancel, window, ticket-order, full-table and review-liveness phases, with `fifo` and `noreserve` controls (exits 11 and 61); `journal-test.om` cases 16 and 17; sixteen DRA-396 mutants, one of them two mutations in one case. Independent reviews r1 to r4 by openai-codex/gpt-6-astra. Native AArch64 host evidence only. |
+| Claude Opus 5.5 (via omp, sched lane) | P-DRA-14 DRA-397 for `seed/node`: policy 2 in `sched.om`, goal-aware ranking: declared topics, estimate and uncertainty per job (`sched_goal`), a depth-2 unblock value in jobs with bounded slot reads, key value then estimate then admission age, under the policy-1 reservation and feasibility. Every committed change to the graph bumps a version; rescoring happens once per moved version at a pick, so notifications coalesce; completions and releases replan without rescoring. Versioned proposals (`sched_propose id v`) name the job by an id that must be unique among ready jobs, carry the scheduler incarnation (`sched_incarnate`, once per scheduler; proposals are refused until it is set; jobs admitted before it are rescored at the next ranking pass) in the version, saturate instead of carrying into another incarnation's range, and are refused, or rejected at use, when stale, exhausted or when the job no longer fits beside the reservation. `schedpol-test.om` adds goal, rescoring, proposal, incarnation, proposal-beside-reservation, proposal-guard, late-incarnation and key phases and a `goal` mode, with resumes and publications inside the step bounds; eighteen mutants with exits derived from the checks they trip. Review r1, r2 and r3 (openai-codex/gpt-6-astra) findings fixed. Native AArch64 host evidence only. |
 | Grok 4.7 (via Cursor Agent) | Merged main `fd3751b31` (#1020, carrying #1045 and #1050) into #1052. The only conflict was the generated root `.crumb` (child `last_commit` stamps, the `tests` digest, and the root digest). Recompiled with the crumb.lock tool (`d0f0b95d`); `crumb verify .` current. The #525/#962 pins were left as committed: `src/checker2/c2_check.c`, `src/compiler/osc_ir.c` and `src/compiler/osc_ir.h` still hash to the SHA-256s in `ACCEPTED`. |
 | Claude Opus 5.5 (via omp) | #1020 (actions/cache-4.3.0 ->6.1.0): merged main `d3d1b1bc` and recompiled the root crumb with the crumb.lock tool (`d0f0b95d`). The root crumb's source tree covers `.github/workflows/`, so the bump alone left it stale and `AIEN Checks` failed at `crumb verify .` (`1 of 188 crumbs stale`). |
 | Claude Opus 5.5 (via omp) | #1018 (actions/upload-artifact-4 ->7): merged main `d3d1b1bc` and recompiled the root crumb with the crumb.lock tool (`d0f0b95d`). The root crumb's source tree covers `.github/workflows/`, so the bump alone left it stale and `AIEN Checks` failed at `crumb verify .` (`1 of 188 crumbs stale`). |
diff --git a/evidence/node-schedpol/receipt.27ad92c703cbfb6af86ff30fe43bf4d6d04eb41ae2ea73403c4591eb159f9964.json b/evidence/node-schedpol/receipt.27ad92c703cbfb6af86ff30fe43bf4d6d04eb41ae2ea73403c4591eb159f9964.json
new file mode 100644
index 000000000..b77bae969
--- /dev/null
+++ b/evidence/node-schedpol/receipt.27ad92c703cbfb6af86ff30fe43bf4d6d04eb41ae2ea73403c4591eb159f9964.json
@@ -0,0 +1,1940 @@
+{
+  "checks": [
+    {
+      "binary_sha256": "2e0bc2ae54fbeafa72d2f2a4ca84a4bdb875165b7a4ac52adcbe8d13943da611",
+      "case": "schedpol-gate",
+      "compile_exit": 0,
+      "expected_exit": 0,
+      "issue": "DRA-395",
+      "repeat": {
+        "outcomes": {
+          "0": 10
+        },
+        "runs": 10
+      },
+      "run_exit": 0,
+      "source_sha256": "fed51929b8beebd5896f0e310127874f6912869a754d93b1b03b2ad71e9312c7",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\nPASS node schedpol\n",
+      "stdout_has": [
+        "PASS node schedpol"
+      ],
+      "verdict": "PASS",
+      "wall_ms": 155794
+    },
+    {
+      "binary_sha256": "2e0bc2ae54fbeafa72d2f2a4ca84a4bdb875165b7a4ac52adcbe8d13943da611",
+      "case": "schedpol-gate-fifo",
+      "compile_exit": 0,
+      "expected_exit": 11,
+      "issue": "DRA-396",
+      "repeat": {
+        "outcomes": {
+          "11": 5
+        },
+        "runs": 5
+      },
+      "run_exit": 11,
+      "source_sha256": "fed51929b8beebd5896f0e310127874f6912869a754d93b1b03b2ad71e9312c7",
+      "stderr": "",
+      "stdout": "schedpol hol witness head=20050 fits_behind=30050 free_cpu=1 idle_worker=1 hol_stops=40\nschedpol hol witness head=20050 fits_behind=50050 free_cpu=1 idle_worker=1 hol_stops=40\n",
+      "stdout_has": [
+        "schedpol hol witness head=20050 fits_behind=30050 free_cpu=1 idle_worker=1",
+        "schedpol hol witness head=20050 fits_behind=50050 free_cpu=1 idle_worker=1"
+      ],
+      "verdict": "PASS",
+      "wall_ms": 14581
+    },
+    {
+      "binary_sha256": "2e0bc2ae54fbeafa72d2f2a4ca84a4bdb875165b7a4ac52adcbe8d13943da611",
+      "case": "schedpol-gate-noreserve",
+      "compile_exit": 0,
+      "expected_exit": 61,
+      "issue": "DRA-396",
+      "repeat": {
+        "outcomes": {
+          "61": 5
+        },
+        "runs": 5
+      },
+      "run_exit": 61,
+      "source_sha256": "fed51929b8beebd5896f0e310127874f6912869a754d93b1b03b2ad71e9312c7",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 34088
+    },
+    {
+      "binary_sha256": "af6a379c627a96374bba76c9739718de8c608f5c5249311b33647ca3542a6820",
+      "case": "sched-gate",
+      "compile_exit": 0,
+      "expected_exit": 0,
+      "issue": "DRA-287",
+      "run_exit": 0,
+      "source_sha256": "0b8efd0a0131ec94a9b008400896e899656692685bb0b9784469312a4613dfb8",
+      "stderr": "",
+      "stdout": "idle ticks workers=0 creator=0 wake rounds=200 mean_us=85 max_us=797\nPASS node sched\n",
+      "verdict": "PASS",
+      "wall_ms": 8046
+    },
+    {
+      "binary_sha256": "74b2cfe5c2a284bf7aede9594d94394ec195b234bccc08e0e77a92ce5556a92a",
+      "case": "auth-gate",
+      "compile_exit": 0,
+      "expected_exit": 0,
+      "issue": "DRA-288",
+      "run_exit": 0,
+      "source_sha256": "cde843528ddb78e76f6eb31bcd4f01f1da618a48173ba6c51d0a7d0eab2bbce8",
+      "stderr": "",
+      "stdout": "PASS node authority\n",
+      "verdict": "PASS",
+      "wall_ms": 774
+    },
+    {
+      "binary_sha256": "b707a6e1b9604bba630ed2491009c40d7969b10d8181c0f22f366f1b8dc73d6c",
+      "case": "journal-gate",
+      "compile_exit": 0,
+      "expected_exit": 0,
+      "issue": "DRA-289",
+      "run_exit": 0,
+      "source_sha256": "9586a42ed2fa663d57162063a3512addd26fdfbfec95f708c9bedfbd02596b3b",
+      "stderr": "",
+      "stdout": "PASS node journal\n",
+      "verdict": "PASS",
+      "wall_ms": 3517
+    },
+    {
+      "binary_sha256": "d41a4eafdbb598312d941e6a7f225d9a2cd54efb33181d15ddb3e53e4771a7ad",
+      "case": "code-test-unit",
+      "compile_exit": 0,
+      "expected_exit": 0,
+      "issue": "DRA-290",
+      "run_exit": 0,
+      "source_sha256": "a0e41f591695118dd724ab9b01dc9ba20eb8df06212dda3008d135546ed6c168",
+      "stderr": "",
+      "stdout": "CWR 0 0 2\n\n\n\nCWE 0 0 2 1\nCWE 0 1002 1 2\nCWR 0 0 2\n\n\n\nCWE 0 0 2 1\nCWO 0 FAIL 11 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 2\nCWO 0 FAIL 10 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 9\nCWO 0 FAIL 10 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWO 0 FAIL 10 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 2\nCWE 0 1013 1 3\nCWR 0 0 2\n\n\n\nCWE 0 0 2 2\nCWE 0 1023 1 3\nCWR 0 0 2\n\n\n\nCWE 0 0 2 2\nCWO 0 FAIL 10 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWO 0 FAIL 13 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWO 0 FAIL 13 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWO 0 FAIL 13 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWO 0 FAIL 13 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWO 0 FAIL 11 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWE 0 1034 1 4\nCWR 0 0 13\nTests passed.\nCWE 0 0 2 4\nCWO 0 FAIL 14 0\nCWR 0 0 13\nTests passed.\nCWE 0 0 2 4\nCWO 0 FAIL 14 0\nCWR 0 0 13\nTests passed.\nCWE 0 0 2 4\nCWE 0 1045 1 5\nCWR 0 0 15\nFile not found.\nCWE 0 0 2 5\nCWO 0 FAIL 10 0\nCWR 0 0 15\nFile not found.\nCWE 0 0 2 5\nCWO 0 PASS 1 0\nCWO 0 FAIL 18 0\nCWO 0 FAIL 18 0\nCWO 0 FAIL 18 0\nCWE 0 0 3 0\nCWE 0 0 3 1\nCWE 0 0 3 2\nCWO 0 FAIL 17 0\nCWE 0 0 3 6\nCWE 0 0 3 6\nCWO 0 FAIL 15 0\nCWE 0 0 3 0\nCWE 0 0 3 4\nCWO 0 FAIL 17 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWE 0 1054 1 4\nCWE 0 0 3 0\nCWE 0 0 3 0\nCWO 0 FAIL 15 0\nCWE 0 0 3 5\nCWO 0 FAIL 13 0\nCWE 0 0 3 0\nCWO 0 PASS 1 0\nCWE 0 0 3 6\nCWO 0 FAIL 15 0\nCWE 0 0 3 0\nCWO 0 FAIL 15 0\nCWO 0 FAIL 12 7\nCWO 0 FAIL 20 0\nCWE 0 1061 1 1\nCWP 0 1 193\nTask: Fix the error in this file and confirm its goal.\nFile: jobs/item76666.om\nGoal: calc starts with x and adds 4 exactly 3 times in a for loop. main calls calc with 70.\nState: unread\nAnswer:\n\ncode checks=54 fail=0\n",
+      "verdict": "PASS",
+      "wall_ms": 32
+    },
+    {
+      "binary_sha256": "c5f97f4a6b7d75ce9aac2e870a87a6556390b5cdeedf9f230691ae876f9a9ca1",
+      "case": "mut-impossible-admitted",
+      "compile_exit": 0,
+      "expected_exit": 31,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if not sp_feas req\n",
+        "to": "if false\n"
+      },
+      "run_exit": 31,
+      "source_sha256": "bd0c3f276da5352efaf0cfbbdd8eee179b478be7f0a6f8f0cba9304158f7303e",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 1
+    },
+    {
+      "binary_sha256": "391b8d833c3fddac07e47e077aab6e247ad2d277f2673d623d8c2fb1cb44cdb0",
+      "case": "mut-collect-no-release",
+      "compile_exit": 0,
+      "expected_exit": 133,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "j = sub b 1\nsp_give j\n",
+        "to": "j = sub b 1\n"
+      },
+      "run_exit": 133,
+      "source_sha256": "7e967b0d0edf1face5e5788d645f602fa296e90cc1448e82c1f41070403c06d6",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 414
+    },
+    {
+      "binary_sha256": "0a60836bf3441180ff5266451f4b01ce16bee3b842a3ebb45ebfe7a11b5de77e",
+      "case": "mut-capacity-ignored",
+      "compile_exit": 0,
+      "expected_exit": 44,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if gt sp_need req k a\n",
+        "to": "if false\n"
+      },
+      "run_exit": 44,
+      "source_sha256": "c03b245693aa53bac31b6803d52bfa2aa0cc322ad36e69f27889128b812315c9",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 425
+    },
+    {
+      "binary_sha256": "d081bc90993ad8a127e8776cc210f8c888a19e579a528c6b71820574c13ffa83",
+      "case": "mut-ready-unstamped",
+      "compile_exit": 0,
+      "expected_exit": 54,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne and get sjdep j topics 0\nsp_ready j\n",
+        "to": "if ne and get sjdep j topics 0\nput sjst j 2\n"
+      },
+      "run_exit": 54,
+      "source_sha256": "e77c375ec7bd411c984f295b094795b30f227a5e89d73d7ea7c87fcad8478db9",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 1003
+    },
+    {
+      "binary_sha256": "d6c8f6e5157829e22ee6643cd0084872de118b3415e246afcf2203b2247808b7",
+      "case": "mut-give-after-review",
+      "compile_exit": 0,
+      "expected_exit": 122,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "j = sub b 1\nsp_give j\nif ge sched_count 4 4 get sclim 1\ncontinue\nend\n",
+        "to": "j = sub b 1\nif ge sched_count 4 4 get sclim 1\ncontinue\nend\nsp_give j\n"
+      },
+      "run_exit": 122,
+      "source_sha256": "5531bedd91f5fea2d78af49744ad7d86fc1b7daaa8791d31bcba681c3cc634d0",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 923
+    },
+    {
+      "binary_sha256": "a7f6c55f76d224e9c5dde3a5d7ff94e39cad09b38f7e2f3a49328a806de04445",
+      "case": "mut-no-take",
+      "compile_exit": 0,
+      "expected_exit": 130,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "end\nsp_take j\nif eq get scpol 5 add j 1\n",
+        "to": "end\nif eq get scpol 5 add j 1\n"
+      },
+      "run_exit": 130,
+      "source_sha256": "34895228eb4c20265e8b2c77f56803baf194e1650877fa4b440a4eae909c0fe7",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 11
+    },
+    {
+      "binary_sha256": "40b8b4237ee2f05a230ec7763cf4af97a6fb0a7e5985ea7dc0885609f0bcf658",
+      "case": "mut-cap-below-use",
+      "compile_exit": 0,
+      "expected_exit": 131,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if lt sp_need caps k get suse k\n",
+        "to": "if false\n"
+      },
+      "run_exit": 131,
+      "source_sha256": "c073b5d5c1b87475b006f6b3a24efb59f6b6755f940f1912b55282fbc330904c",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 11
+    },
+    {
+      "binary_sha256": "412eaa1fdb3a9c0e77aea1ce6b51e2fe855e25f4160c8d90bd51a257873eb826",
+      "case": "mut287-wake-all",
+      "compile_exit": 0,
+      "expected_exit": 16,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne and sc_cell w 32 topics 0\n",
+        "to": "if true\n"
+      },
+      "run_exit": 16,
+      "source_sha256": "16fe5f2cefb3ae0f62befec62f47c36d26456429b7a11edc0a20a7b56ac4e5d3",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 603
+    },
+    {
+      "binary_sha256": "e6e91748920f51e17f932ef631546ab4aab691680b1436064fabd301616a147c",
+      "case": "mut287-no-wake",
+      "compile_exit": 0,
+      "expected_exit": 34,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "sc_set w 0 q\nsc_wake w\n",
+        "to": "sc_set w 0 q\n"
+      },
+      "run_exit": 34,
+      "source_sha256": "144d5c51bc74c2782b066600e6bbb3d29482471d835ef05cd1e8191e583ca4d0",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 6321
+    },
+    {
+      "binary_sha256": "e15515f50c6d521233ffd7c964f9ccdce53edde1eb15c94ff8423eda6fe11724",
+      "case": "mut287-review-unbounded",
+      "compile_exit": 0,
+      "expected_exit": 50,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ge sched_count 4 4 get sclim 1\n",
+        "to": "if false\n"
+      },
+      "run_exit": 50,
+      "source_sha256": "98a9cbf3700efc971785b5e4ea49ec411ccd3d13d5109dab7292a155b6b7218a",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 3338
+    },
+    {
+      "binary_sha256": "3ae0821dda4e023aa24dfa4566177771c2299c53c4fe82d1ba56be23ef74e64f",
+      "case": "mut287-admit-unbounded",
+      "compile_exit": 0,
+      "expected_exit": 48,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "room = ulong 0\nif lt a get sclim 0\nroom = sub get sclim 0 a\nend\n",
+        "to": "room = ulong 64\n"
+      },
+      "run_exit": 48,
+      "source_sha256": "908701253efedd69b3442c71239996b57c203aa8337decd30ee0c14a6fd10fe9",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 2845
+    },
+    {
+      "binary_sha256": "247ed145427f782b65228c5f83df10fec82bf166f6a8ab3a2b561e8695dff11b",
+      "case": "mut287-unknown-rerun",
+      "compile_exit": 0,
+      "expected_exit": 83,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put sjst j 6\n",
+        "to": "put sjst j 2\n"
+      },
+      "run_exit": 83,
+      "source_sha256": "a6b30ce444064ecf2a8c3efc4f6f94f6eaa9c7a394ce89b60904692319ec3ef0",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 6769
+    },
+    {
+      "binary_sha256": "af9ad71f56f37eae0618396bb5f1ac1675a8994ba1c08763b2c9c4a12035d4ee",
+      "case": "mut287-lost-no-ack",
+      "compile_exit": 0,
+      "expected_exit": 92,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "sc_set w 64 get scseq w\n",
+        "to": ""
+      },
+      "run_exit": 92,
+      "source_sha256": "ccdca842482f53b172a5decff7bd05ec999894803d204c6cd71efe57eebb4b49",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 5272
+    },
+    {
+      "binary_sha256": "66aa8e12a5ae58ccbbcd2cadae30bfdbf248783c77526523bd9f4a67f8765c25",
+      "case": "mut287-deps-ignored",
+      "compile_exit": 0,
+      "expected_exit": 68,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put sjst j 1\n",
+        "to": "put sjst j 2\n"
+      },
+      "run_exit": 68,
+      "source_sha256": "b172e987b03629ba697addd9efbcf5de012c730f9b872ab0ad73f5268435421d",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 3416
+    },
+    {
+      "binary_sha256": "d0ee09cdf7f0f15a61894ab52f62aad660467b572983cdfdc1e55c6c90eb263f",
+      "case": "mut287-super-spin",
+      "compile_exit": 0,
+      "expected_exit": 138,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/super.om",
+        "from": "iv = interval\n",
+        "to": "iv = long 0\n"
+      },
+      "run_exit": 138,
+      "source_sha256": "a766b2dadbcea4a7de056733ec9a94957a43052cfc4646ebd614f2b051558d09",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 2213
+    },
+    {
+      "binary_sha256": "3d8da601c3bc72698d4dd7c5608b30342b2706a02a602efb66ddf8374412e55a",
+      "case": "mut288-pause-ignored",
+      "compile_exit": 0,
+      "expected_exit": 121,
+      "issue": "DRA-288",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne get scpause 0 0\n",
+        "to": "if false\n"
+      },
+      "run_exit": 121,
+      "source_sha256": "57fdf8e3a68654247bbcca136e5df447e500b8b9f54ffb19269e74ba5fe46a40",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 722
+    },
+    {
+      "binary_sha256": "93abc32032d097dbe4aad71b28a385307fece3edf2ec030a863d388addd2c4b9",
+      "case": "mut396-cursor-stuck",
+      "compile_exit": 0,
+      "expected_exit": 15,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put scpol 4 rem add cur win 64\n",
+        "to": ""
+      },
+      "run_exit": 15,
+      "source_sha256": "651eef48f9cd8e0a67e2af30b62a365ab61428f607724349cc388ef3b51e4032",
+      "stderr": "",
+      "stdout": "schedpol events=108 examined=4502 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 7181
+    },
+    {
+      "binary_sha256": "5834f406b577ea56e22c730416d18dd83c6d91b7913eed4c86d0d5328c94dcc2",
+      "case": "mut396-tickets-ignored",
+      "compile_exit": 0,
+      "expected_exit": 75,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if eq get scpol 6 0\nret true\n",
+        "to": "if true\nret true\n"
+      },
+      "run_exit": 75,
+      "source_sha256": "aca98f702382a3e877a0870f5816b3a228428767eb87e6222acdfd55bb1187c5",
+      "stderr": "",
+      "stdout": "schedpol events=110 examined=4631 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 4322
+    },
+    {
+      "binary_sha256": "8a00ee4c8c39a9f307ebf38d863c82f0f2d44115ae76f09520f8f15bacf66455",
+      "case": "mut396-no-holdback",
+      "compile_exit": 0,
+      "expected_exit": 61,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "rq = get sjneed rj\n",
+        "to": "rq = ulong 0\n"
+      },
+      "run_exit": 61,
+      "source_sha256": "caaafb2d67f7ab845fde000b0ecee027f8c58d18dd322eb9b2352838d63e5153",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 6811
+    },
+    {
+      "binary_sha256": "44a7e30373fb006efc4f33fcddf8d0f45cf9f9f116e238625cda1f218725c990",
+      "case": "mut396-never-reserve",
+      "compile_exit": 0,
+      "expected_exit": 61,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put scpol 5 add o 1\n",
+        "to": ""
+      },
+      "run_exit": 61,
+      "source_sha256": "684e8f8d14fa3ed5cba224f034f0c1827d61855dcb4c7d871c012cd172cd0c8f",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 6829
+    },
+    {
+      "binary_sha256": "2eb9597cded15aa2138000f3ace0af47696b6eadd486f8e6b9926335896a2a99",
+      "case": "mut396-lease-never",
+      "compile_exit": 0,
+      "expected_exit": 82,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ge now d\n",
+        "to": "if false\n"
+      },
+      "run_exit": 82,
+      "source_sha256": "8439d1380f265befc1860a08094f291225205301020a76fc7e748547458d9c5a",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 7765
+    },
+    {
+      "binary_sha256": "880ee17b6929383309a8ebb0e5724639f92c4273ccfce2f6aa06e80b8279bbe2",
+      "case": "mut396-cancel-keeps-reserve",
+      "compile_exit": 0,
+      "expected_exit": 94,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put sjst j 0\nsp_bump\nif eq get scpol 5 add j 1\nput scpol 5 0\nend\n",
+        "to": "put sjst j 0\nsp_bump\n"
+      },
+      "run_exit": 94,
+      "source_sha256": "c14e3048417dcfe2acf5a515bb23b2ce44811dc41d242b1162ed0d76df5060b8",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 6539
+    },
+    {
+      "binary_sha256": "b3d6424b985bb83a29570022512492b6dc50e1bed53672a16cb6a5751c71e8f8",
+      "case": "mut396-window-ignored",
+      "compile_exit": 0,
+      "expected_exit": 9,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "for i ulong win bound 64\n",
+        "to": "for i ulong 64 bound 64\n"
+      },
+      "run_exit": 9,
+      "source_sha256": "8210a3304f062a14a9b0334bbca006642cfca012b2835beab839ab0aa210ac38",
+      "stderr": "",
+      "stdout": "schedpol events=108 examined=4502 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 7138
+    },
+    {
+      "binary_sha256": "d944f4e0aa1c710bfb59d31a3a4c725710f345eb42de30d4c6e320a926865fcc",
+      "case": "mut396-tickets-never-lapse",
+      "compile_exit": 0,
+      "expected_exit": 80,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if lt add get stts t get scpol 7 get scst 2\n",
+        "to": "if false\n"
+      },
+      "run_exit": 80,
+      "source_sha256": "4f84cbf76d38bf25180264315d8234f23145110ee061d365c5b393815c93f0aa",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 5030
+    },
+    {
+      "binary_sha256": "05a347dae5333766ee6e441e4f79497948b2ec380b670e0e57e018312066b3f7",
+      "case": "mut396-cursor-by-one",
+      "compile_exit": 0,
+      "expected_exit": 15,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put scpol 4 rem add cur win 64\n",
+        "to": "put scpol 4 rem add cur 1 64\n"
+      },
+      "run_exit": 15,
+      "source_sha256": "47336a87e63318aba1b8dfa46f5c1afe7daa08640446a54bc0df29a1131e13d9",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 11
+    },
+    {
+      "binary_sha256": "f06a7aba3e8a8fe4d1abee0e2bd033dbaddaadc487bc3a277ef1dfd64e772f2f",
+      "case": "mut396-holders-by-room",
+      "compile_exit": 0,
+      "expected_exit": 105,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if eq t 0\nret true",
+        "to": "if lt t room\nret true"
+      },
+      "run_exit": 105,
+      "source_sha256": "30fabeae8255336558842dc149a9b099d6e724cc58f52014cff979ccce247891",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 8137
+    },
+    {
+      "binary_sha256": "4fe1f4649e72194e4eb5fcd41d23cb75e17d57b8b9d6295cd0283190529b0d3f",
+      "case": "mut396-room-ignores-slots",
+      "compile_exit": 0,
+      "expected_exit": 191,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if lt fs room\nroom = fs\n",
+        "to": "if false\nroom = fs\n"
+      },
+      "run_exit": 191,
+      "source_sha256": "35b09fd8a7bbce19dcc6e979e4b33791a9eda60a9e9f69b98519d9feccbb4011",
+      "stderr": "",
+      "stdout": "schedpol events=108 examined=4502 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 8362
+    },
+    {
+      "binary_sha256": "be0b922739bb2e1651c2deba430f90e68b5257cb8ef77470310ca50cd00d0402",
+      "case": "mut396-lease-early",
+      "compile_exit": 0,
+      "expected_exit": 83,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ge now d\n",
+        "to": "if ge add now 100000000 d\n"
+      },
+      "run_exit": 83,
+      "source_sha256": "7c3a22d32cf2b4e1b749bd9b585f7cf3d7167fc0f27c4122cd70239167eaa6c8",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 5868
+    },
+    {
+      "binary_sha256": "0c7d5b9bcee038e1ef0830a7f1b3096de1fe13174abb9dc8ac2e524cdfcf6905",
+      "case": "mut396-jn-room-before-dup",
+      "compile_exit": 0,
+      "expected_exit": 170,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/journal.om",
+        "from": "if ge jn_jfind id 0\nret neg long 4\nend\nif not sched_room id\nret neg long 2\nend\n",
+        "to": "if not sched_room id\nret neg long 2\nend\nif ge jn_jfind id 0\nret neg long 4\nend\n"
+      },
+      "run_exit": 170,
+      "source_sha256": "39ddb7a49240f6065fabb6156d05004db625f382428d6e2ebf06d950a55b6144",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 3493
+    },
+    {
+      "binary_sha256": "5edc83d03f52a9e738e56528f8cb86a92e3c97a9653fc72a3b3f5330bd26306e",
+      "case": "mut396-jn-no-room-check",
+      "compile_exit": 0,
+      "expected_exit": 173,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/journal.om",
+        "from": "if not sched_room id\nret neg long 2\nend\nif ne jn_rec 2 id deps flags 0\n",
+        "to": "if ne jn_rec 2 id deps flags 0\n"
+      },
+      "run_exit": 173,
+      "source_sha256": "ab6a072de3f69b9f65b4d5b97e02f8cf85e768c00111d34887c7ad2ea4e9cbf6",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 3462
+    },
+    {
+      "binary_sha256": "d48c76eb32f3c8bf5955f84f036c0cee52a1a908131daa750af28e29195fd80c",
+      "case": "mut396-jn-no-room-check-c17",
+      "compile_exit": 0,
+      "expected_exit": 175,
+      "issue": "DRA-396",
+      "mutation": [
+        {
+          "file": "seed/node/journal.om",
+          "from": "if not sched_room id\nret neg long 2\nend\nif ne jn_rec 2 id deps flags 0\n",
+          "to": "if ne jn_rec 2 id deps flags 0\n"
+        },
+        {
+          "file": "seed/node/journal-test.om",
+          "from": "jt_c16\njt_c17\n",
+          "to": "jt_c17\n"
+        }
+      ],
+      "run_exit": 175,
+      "source_sha256": "3c5ef4601bb721734dfd46cb7c92134de7c964877c6b79a4da9b1f426dc52eb9",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 3485
+    },
+    {
+      "binary_sha256": "6b782b8898cb22ab9f957cac28460ebbd82a82c73568fd2a6833bdfcdc1a172c",
+      "case": "mut396-fifo-overcount",
+      "compile_exit": 0,
+      "expected_exit": 9,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "for j ulong 64\nput scst 3 add get scst 3 1\n",
+        "to": "for j ulong 64\nput scst 3 add get scst 3 3\n"
+      },
+      "run_exit": 9,
+      "source_sha256": "f96a387679ee180ba27c129551e69dc44cca3d8c7c2a6829eb99511336cf6184",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 12
+    },
+    {
+      "binary_sha256": "2e0bc2ae54fbeafa72d2f2a4ca84a4bdb875165b7a4ac52adcbe8d13943da611",
+      "case": "schedpol-gate-goal",
+      "compile_exit": 0,
+      "expected_exit": 0,
+      "issue": "DRA-397",
+      "repeat": {
+        "outcomes": {
+          "0": 10
+        },
+        "runs": 10
+      },
+      "run_exit": 0,
+      "source_sha256": "fed51929b8beebd5896f0e310127874f6912869a754d93b1b03b2ad71e9312c7",
+      "stderr": "",
+      "stdout": "schedpol events=111 examined=4631 assigned=10 hol_stops=0 bypasses=4 reservations=1\nPASS node schedpol\n",
+      "stdout_has": [
+        "PASS node schedpol"
+      ],
+      "verdict": "PASS",
+      "wall_ms": 155814
+    },
+    {
+      "binary_sha256": "5e4eea3428f622c7ed2a805e8974362631b9abaf53e78296113dfaf70bb08ef9",
+      "case": "mut397-goal-off",
+      "compile_exit": 0,
+      "expected_exit": 151,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "fn sp_better goal bool a ulong b ulong to bool\nif goal\n",
+        "to": "fn sp_better goal bool a ulong b ulong to bool\nif false\n"
+      },
+      "run_exit": 151,
+      "source_sha256": "407b71addf85cccf71efab7ea100de9a4c6f782ee61486d7edef19bc2981f5ed",
+      "stderr": "",
+      "stdout": "schedpol events=111 examined=4630 assigned=10 hol_stops=0 bypasses=4 reservations=1\nschedpol goal trace 220050 230050 250050 240050 260050 280050 270050 290050 300050 310050 \n",
+      "verdict": "PASS",
+      "wall_ms": 9657
+    },
+    {
+      "binary_sha256": "ff3ab056d7f5004fb56f8f18364dee7ad9049fb45d8d23f98db32dd82aa43700",
+      "case": "mut397-depth2-removed",
+      "compile_exit": 0,
+      "expected_exit": 151,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne and get sjdep k p2 0\nn = add n 1",
+        "to": "if false\nn = add n 1"
+      },
+      "run_exit": 151,
+      "source_sha256": "8f5421e5998e2f682c2d964eb05c219acf2674e1647bcfca3baee2afc4788bdc",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\nschedpol goal trace 280050 230050 250050 220050 260050 240050 270050 290050 300050 310050 \n",
+      "verdict": "PASS",
+      "wall_ms": 9667
+    },
+    {
+      "binary_sha256": "38175e935a46c0e351270449380e88a1a0f88075c18189af4bc99e93b8f3a808",
+      "case": "mut397-always-rescore",
+      "compile_exit": 0,
+      "expected_exit": 162,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if eq get scgv 1 v\nret\nend\n",
+        "to": ""
+      },
+      "run_exit": 162,
+      "source_sha256": "c6da68c2175368aead8cc0c0c40cdb4a9af01ecc68bb16b1252f8fdd99b42560",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 10206
+    },
+    {
+      "binary_sha256": "c11f16f4790f0f2fa6e849963c9f12d1eda30c922d897944769cb7be6070b952",
+      "case": "mut397-ready-no-bump",
+      "compile_exit": 0,
+      "expected_exit": 151,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put scst 1 add get scst 1 1\nsp_bump\n",
+        "to": "put scst 1 add get scst 1 1\n"
+      },
+      "run_exit": 151,
+      "source_sha256": "7c6f9e1b8f94dd52d18451157aa3be87041d7863c174f89bc23ba90070bb8771",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\nschedpol goal trace 280050 250050 230050 220050 240050 290050 300050 310050 260050 270050 \n",
+      "verdict": "PASS",
+      "wall_ms": 9655
+    },
+    {
+      "binary_sha256": "05a816ef427092ef9ce42a301ecca58421a4385d17142dd129ac318fddf39280",
+      "case": "mut397-waiting-no-bump",
+      "compile_exit": 0,
+      "expected_exit": 160,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put sjst j 1\nsp_bump\n",
+        "to": "put sjst j 1\n"
+      },
+      "run_exit": 160,
+      "source_sha256": "081d235fae588e3f77b056d66c75760596b47d78a8114801f4c15572f3d0a1e4",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4567 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 10178
+    },
+    {
+      "binary_sha256": "64fc91ce4ee3203da6482916098552c9a27f2ad708b3d60116c53b3634ff7e04",
+      "case": "mut397-cancel-no-bump",
+      "compile_exit": 0,
+      "expected_exit": 165,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put sjst j 0\nsp_bump\nif eq get scpol 5 add j 1",
+        "to": "put sjst j 0\nif eq get scpol 5 add j 1"
+      },
+      "run_exit": 165,
+      "source_sha256": "80fe55b9fd48a6baefc91ba2e8e636f26200b8aafb046b9834fe18923c0849d6",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 10376
+    },
+    {
+      "binary_sha256": "0331fe01c13e1b177fef5d9ca0d227b2c5a1d07d9fcc9b8b5386e05d13703e4e",
+      "case": "mut397-propose-unchecked",
+      "compile_exit": 0,
+      "expected_exit": 170,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne v get scgv 0\nput scgst 4",
+        "to": "if false\nput scgst 4"
+      },
+      "run_exit": 170,
+      "source_sha256": "b613a8359ed8afe8e2eab4131f329e9f13947742194e2e35cc2fad98d90d08e0",
+      "stderr": "",
+      "stdout": "schedpol events=108 examined=4502 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 10293
+    },
+    {
+      "binary_sha256": "b5d3ec553a283800bd048d6cc8814d82c3dacd0ae1cb6d96c0284fdd7ff947e6",
+      "case": "mut397-use-unchecked",
+      "compile_exit": 0,
+      "expected_exit": 176,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if eq get scgv 3 get scgv 0\n",
+        "to": "if true\n"
+      },
+      "run_exit": 176,
+      "source_sha256": "1d6e67e62ad56239d390dcb9d06d2b9a5e70777173a0024463b03ef487f89a5d",
+      "stderr": "",
+      "stdout": "schedpol events=110 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 10445
+    },
+    {
+      "binary_sha256": "ff8a851fa2b5683d18ad926066ced7b2f1bdb15c179f6888f6f9c3209d7c85b9",
+      "case": "mut397-est-ignored",
+      "compile_exit": 0,
+      "expected_exit": 181,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne ea eb\nret lt ea eb",
+        "to": "if false\nret lt ea eb"
+      },
+      "run_exit": 181,
+      "source_sha256": "ff52f7441a4fa23c79218dc34fd3c0d062275855b186bbd1d3ebba28df40f704",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4567 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 15559
+    },
+    {
+      "binary_sha256": "fa939ae59d3d3a08e6bebc4bf151ea92f7b8b6dd25967bfb750a9667aa26be5f",
+      "case": "mut397-incarnation-ignored",
+      "compile_exit": 0,
+      "expected_exit": 184,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put scgv 0 shl n 40\nput scgv 1 get scgv 0",
+        "to": "put scgv 0 0\nput scgv 1 get scgv 0"
+      },
+      "run_exit": 184,
+      "source_sha256": "09866287a4593bfc1fe3e4eff70f318a722646e95cdd0a04dbf8717b12e801e8",
+      "stderr": "",
+      "stdout": "schedpol events=111 examined=4631 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 10431
+    },
+    {
+      "binary_sha256": "a83d602d02cfbad5b29425bbd41d3d6112ea8149feb6b8245383eada942bc350",
+      "case": "mut397-proposal-fit-unchecked-at-use",
+      "compile_exit": 0,
+      "expected_exit": 189,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if eq get sjst j 2\nif sp_fits get sjneed j rq\nput scgst 7",
+        "to": "if eq get sjst j 2\nif true\nput scgst 7"
+      },
+      "run_exit": 189,
+      "source_sha256": "22618f0817551bbfb625edb9ecd7093826ed3f3a7336035b1c3e3fed5f555c53",
+      "stderr": "",
+      "stdout": "schedpol events=108 examined=4502 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 11982
+    }
+  ],
+  "compiler": {
+    "path": "seed/out/omc",
+    "sha256": "5f90edea61bac241398df5036990d899361a5acd9decb37954ce088ec0f6f6df"
+  },
+  "cpu_affinity": [
+    12,
+    13,
+    14
+  ],
+  "execution": "NATIVE Linux AArch64 host CPU (DGX Spark host, no GPU opened)",
+  "hashes": {
+    "seed/authority/action.om": "59cb9c3dfdcd9193bc4a272deda4fcd256a0d7693f3bcb58bc4e30ed78faab2b",
+    "seed/node/auth-gate.om": "cde843528ddb78e76f6eb31bcd4f01f1da618a48173ba6c51d0a7d0eab2bbce8",
+    "seed/node/auth-test.om": "af66c87f83d73a5bdbaf181378eb69bb0645a86fe9b39de2f1b714041fbc20b8",
+    "seed/node/auth.om": "edf2f075d3751a8025363bc658252537f865dfc29f975fcf5d93c353b3282b30",
+    "seed/node/code-test.om": "df87a21e31f38d85ab9145af3fb18bafc52144a20aed0d9fbad60f6059ddacd0",
+    "seed/node/code.om": "aa9f8463fbe9534626c205e991e3a2170a25cbf91a106932ec399353583c0bf7",
+    "seed/node/gram.om": "ebba1f4c693f218969dc2f17eb680760977d38d694ac76db477853aefa64b291",
+    "seed/node/journal-gate.om": "9586a42ed2fa663d57162063a3512addd26fdfbfec95f708c9bedfbd02596b3b",
+    "seed/node/journal-test.om": "58547e87068911e009fa2f99c8b995249acc6113e21c692bf2e74ec8238ea011",
+    "seed/node/journal.om": "b8f970d02b3f752d217f61b601817d5abc5a8c22fd2288544af15a18f628feac",
+    "seed/node/pool.om": "e7fba928bdc5c4194e7aee42109265de4f172d2b197946133d788b2dbcb30ccc",
+    "seed/node/sched-gate.om": "0b8efd0a0131ec94a9b008400896e899656692685bb0b9784469312a4613dfb8",
+    "seed/node/sched-test.om": "29a3587d35a217403c63395eb2b11b4992727812af66512be3e452ea6381a545",
+    "seed/node/sched.om": "fba900bc0659af60e5bf351cc9d93aaf06845937abed25b310f6b3ab746410c1",
+    "seed/node/schedpol-gate.om": "fed51929b8beebd5896f0e310127874f6912869a754d93b1b03b2ad71e9312c7",
+    "seed/node/schedpol-test.om": "22b79787baf1f2f454acec2d223d4b54fc6f05a91639664c31f4876f1fe87e24",
+    "seed/node/super.om": "d104ac8116c6df57fdc93f03791d7315e5b60875d8d6177480ef9967b6f53d5a",
+    "seed/node/transport.om": "d0dd69ef5e0b71294a2390b3526865d62ca07accd269b9ce57a028339e34f6da"
+  },
+  "issue": "DRA-397",
+  "platform": "Linux 7.0.0-1019-nvidia aarch64 spark-b87b",
+  "project": "P-DRA-14",
+  "script": {
+    "cases": {
+      "cases": [
+        {
+          "case": "schedpol-gate",
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "expect": 0,
+          "gate": "seed/node/schedpol-gate.om",
+          "issue": "DRA-395",
+          "repeat": 10,
+          "stdout_has": [
+            "PASS node schedpol"
+          ],
+          "timeout": 120
+        },
+        {
+          "args": [
+            "fifo"
+          ],
+          "case": "schedpol-gate-fifo",
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "expect": 11,
+          "gate": "seed/node/schedpol-gate.om",
+          "issue": "DRA-396",
+          "repeat": 5,
+          "stdout_has": [
+            "schedpol hol witness head=20050 fits_behind=30050 free_cpu=1 idle_worker=1",
+            "schedpol hol witness head=20050 fits_behind=50050 free_cpu=1 idle_worker=1"
+          ],
+          "timeout": 120
+        },
+        {
+          "args": [
+            "noreserve"
+          ],
+          "case": "schedpol-gate-noreserve",
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "expect": 61,
+          "gate": "seed/node/schedpol-gate.om",
+          "issue": "DRA-396",
+          "repeat": 5,
+          "timeout": 120
+        },
+        {
+          "case": "sched-gate",
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "expect": 0,
+          "gate": "seed/node/sched-gate.om",
+          "issue": "DRA-287"
+        },
+        {
+          "case": "auth-gate",
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/auth-test.om"
+          ],
+          "expect": 0,
+          "gate": "seed/node/auth-gate.om",
+          "issue": "DRA-288"
+        },
+        {
+          "case": "journal-gate",
+          "clean": [
+            "build/node/jt"
+          ],
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/journal-test.om"
+          ],
+          "expect": 0,
+          "gate": "seed/node/journal-gate.om",
+          "issue": "DRA-289"
+        },
+        {
+          "args": [
+            "unit",
+            "build/node/cu"
+          ],
+          "case": "code-test-unit",
+          "clean": [
+            "build/node/cu"
+          ],
+          "expect": 0,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/gram.om",
+            "seed/node/code.om",
+            "seed/node/code-test.om"
+          ],
+          "issue": "DRA-290",
+          "om2": true
+        },
+        {
+          "case": "mut-impossible-admitted",
+          "expect": 31,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "if not sp_feas req\n",
+            "if false\n"
+          ],
+          "why": "C: impossible request admitted; check sched_admitr == -8 code 31"
+        },
+        {
+          "case": "mut-collect-no-release",
+          "expect": 133,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "j = sub b 1\nsp_give j\n",
+            "j = sub b 1\n"
+          ],
+          "why": "C: jobs reviewed still hold; pt_inv in pt_drain code 133"
+        },
+        {
+          "case": "mut-capacity-ignored",
+          "expect": 44,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "if gt sp_need req k a\n",
+            "if false\n"
+          ],
+          "why": "D: use exceeds capacity; pt_inv in pt_drain code 44"
+        },
+        {
+          "args": [
+            "fifo"
+          ],
+          "case": "mut-ready-unstamped",
+          "expect": 54,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne and get sjdep j topics 0\nsp_ready j\n",
+            "if ne and get sjdep j topics 0\nput sjst j 2\n"
+          ],
+          "why": "F under fifo: ready order wrong, y not first; code 54"
+        },
+        {
+          "case": "mut-give-after-review",
+          "expect": 122,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "j = sub b 1\nsp_give j\nif ge sched_count 4 4 get sclim 1\ncontinue\nend\n",
+            "j = sub b 1\nif ge sched_count 4 4 get sclim 1\ncontinue\nend\nsp_give j\n"
+          ],
+          "why": "V: second CPU not released while review full; suse==0 code 122"
+        },
+        {
+          "case": "mut-no-take",
+          "expect": 130,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "end\nsp_take j\nif eq get scpol 5 add j 1\n",
+            "end\nif eq get scpol 5 add j 1\n"
+          ],
+          "why": "C: running unfinished job holds nothing; pt_inv in pt_until code 130"
+        },
+        {
+          "case": "mut-cap-below-use",
+          "expect": 131,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "if lt sp_need caps k get suse k\n",
+            "if false\n"
+          ],
+          "why": "C: sched_cap below use accepted; == -8 code 131"
+        },
+        {
+          "case": "mut287-wake-all",
+          "expect": 16,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne and sc_cell w 32 topics 0\n",
+            "if true\n"
+          ]
+        },
+        {
+          "case": "mut287-no-wake",
+          "expect": 34,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "sc_set w 0 q\nsc_wake w\n",
+            "sc_set w 0 q\n"
+          ]
+        },
+        {
+          "case": "mut287-review-unbounded",
+          "expect": 50,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ge sched_count 4 4 get sclim 1\n",
+            "if false\n"
+          ]
+        },
+        {
+          "case": "mut287-admit-unbounded",
+          "expect": 48,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "room = ulong 0\nif lt a get sclim 0\nroom = sub get sclim 0 a\nend\n",
+            "room = ulong 64\n"
+          ],
+          "why": "DRA-287 sched-gate admission-limit check: headroom ignored, admissions beyond the limit; 48 (pattern moved with the DRA-396 room rewrite)"
+        },
+        {
+          "case": "mut287-unknown-rerun",
+          "expect": 83,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "put sjst j 6\n",
+            "put sjst j 2\n"
+          ]
+        },
+        {
+          "case": "mut287-lost-no-ack",
+          "expect": 92,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "sc_set w 64 get scseq w\n",
+            ""
+          ]
+        },
+        {
+          "case": "mut287-deps-ignored",
+          "expect": 68,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "put sjst j 1\n",
+            "put sjst j 2\n"
+          ]
+        },
+        {
+          "args": [
+            "idle"
+          ],
+          "case": "mut287-super-spin",
+          "expect": 138,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/super.om",
+            "iv = interval\n",
+            "iv = long 0\n"
+          ]
+        },
+        {
+          "case": "mut288-pause-ignored",
+          "expect": 121,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/auth-test.om"
+          ],
+          "issue": "DRA-288",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne get scpause 0 0\n",
+            "if false\n"
+          ]
+        },
+        {
+          "case": "mut396-cursor-stuck",
+          "expect": 15,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "put scpol 4 rem add cur win 64\n",
+            ""
+          ],
+          "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"
+        },
+        {
+          "case": "mut396-tickets-ignored",
+          "expect": 75,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "if eq get scpol 6 0\nret true\n",
+            "if true\nret true\n"
+          ],
+          "why": "Q: with room, Y asking before ticket holder X is admitted; code 75"
+        },
+        {
+          "case": "mut396-no-holdback",
+          "expect": 61,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "rq = get sjneed rj\n",
+            "rq = ulong 0\n"
+          ],
+          "why": "S: smalls refill freed CPU, big never runs; first check code 61"
+        },
+        {
+          "case": "mut396-never-reserve",
+          "expect": 61,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "put scpol 5 add o 1\n",
+            ""
+          ],
+          "why": "S: no reservation, big never runs; first check code 61"
+        },
+        {
+          "case": "mut396-lease-never",
+          "expect": 82,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ge now d\n",
+            "if false\n"
+          ],
+          "why": "L: sched_overdue never reports; eq o h code 82"
+        },
+        {
+          "case": "mut396-cancel-keeps-reserve",
+          "expect": 94,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "put sjst j 0\nsp_bump\nif eq get scpol 5 add j 1\nput scpol 5 0\nend\n",
+            "put sjst j 0\nsp_bump\n"
+          ],
+          "why": "R: reservation survives cancel; sched_stat 29 == 0 code 94"
+        },
+        {
+          "case": "mut396-window-ignored",
+          "expect": 9,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "for i ulong win bound 64\n",
+            "for i ulong 64 bound 64\n"
+          ],
+          "why": "pt_step bound (exit 9): candidate reads <= events x db x (win+1); in W (win 4, db 2) one pick scanning 64 slots reads 65 > 2 x 5 = 10 per event: 9"
+        },
+        {
+          "case": "mut396-tickets-never-lapse",
+          "expect": 80,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "if lt add get stts t get scpol 7 get scst 2\n",
+            "if false\n"
+          ],
+          "why": "Q: stale ticket of 150050 blocks new caller 160050; ge 0 code 80"
+        },
+        {
+          "case": "mut396-cursor-by-one",
+          "expect": 15,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "put scpol 4 rem add cur win 64\n",
+            "put scpol 4 rem add cur 1 64\n"
+          ],
+          "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)"
+        },
+        {
+          "case": "mut396-holders-by-room",
+          "expect": 105,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "if eq t 0\nret true",
+            "if lt t room\nret true"
+          ],
+          "why": "T: second holder Y enters with two openings; 105"
+        },
+        {
+          "case": "mut396-room-ignores-slots",
+          "expect": 191,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "if lt fs room\nroom = fs\n",
+            "if false\nroom = fs\n"
+          ],
+          "why": "X: table full of review results, sched_room true; 191"
+        },
+        {
+          "case": "mut396-lease-early",
+          "expect": 83,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ge now d\n",
+            "if ge add now 100000000 d\n"
+          ],
+          "why": "L: overdue reported before the stored deadline; 83"
+        },
+        {
+          "case": "mut396-jn-room-before-dup",
+          "clean": [
+            "build/node/jt"
+          ],
+          "expect": 170,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/journal-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/journal.om",
+            "if ge jn_jfind id 0\nret neg long 4\nend\nif not sched_room id\nret neg long 2\nend\n",
+            "if not sched_room id\nret neg long 2\nend\nif ge jn_jfind id 0\nret neg long 4\nend\n"
+          ],
+          "why": "journal case 16: duplicate at the limit gets -2 and a ticket, not -4; 170"
+        },
+        {
+          "case": "mut396-jn-no-room-check",
+          "clean": [
+            "build/node/jt"
+          ],
+          "expect": 173,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/journal-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/journal.om",
+            "if not sched_room id\nret neg long 2\nend\nif ne jn_rec 2 id deps flags 0\n",
+            "if ne jn_rec 2 id deps flags 0\n"
+          ],
+          "why": "journal-gate case 16 runs before 17: jn_admit 7003 at the limit now journals ADMIT and sched_admit refuses (-2, 172 holds, ticket count 1 holds); after the cancel, jn_admit 7003 finds 7003 in the journal and returns -4, so jt_ok ge ... 173 fails: 173"
+        },
+        {
+          "case": "mut396-jn-no-room-check-c17",
+          "clean": [
+            "build/node/jt"
+          ],
+          "expect": 175,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/journal-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            [
+              "seed/node/journal.om",
+              "if not sched_room id\nret neg long 2\nend\nif ne jn_rec 2 id deps flags 0\n",
+              "if ne jn_rec 2 id deps flags 0\n"
+            ],
+            [
+              "seed/node/journal-test.om",
+              "jt_c16\njt_c17\n",
+              "jt_c17\n"
+            ]
+          ],
+          "why": "case 16 is not run (removed from main), so case 17 is the first to meet the missing room check: jn_admit 9001 journals ADMIT (jseq grows) and sched_admit refuses (-2, 174 holds; ticket count 1 holds); jt_ok eq get jseq 0 q 175 fails: 175"
+        },
+        {
+          "args": [
+            "fifo"
+          ],
+          "case": "mut396-fifo-overcount",
+          "expect": 9,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "for j ulong 64\nput scst 3 add get scst 3 1\n",
+            "for j ulong 64\nput scst 3 add get scst 3 3\n"
+          ],
+          "timeout": 120,
+          "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"
+        },
+        {
+          "args": [
+            "goal"
+          ],
+          "case": "schedpol-gate-goal",
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "expect": 0,
+          "gate": "seed/node/schedpol-gate.om",
+          "issue": "DRA-397",
+          "repeat": 10,
+          "stdout_has": [
+            "PASS node schedpol"
+          ],
+          "timeout": 120
+        },
+        {
+          "case": "mut397-goal-off",
+          "expect": 151,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "fn sp_better goal bool a ulong b ulong to bool\nif goal\n",
+            "fn sp_better goal bool a ulong b ulong to bool\nif false\n"
+          ],
+          "why": "G first run: policy-1 order, x runs first, trace mismatch: 151"
+        },
+        {
+          "case": "mut397-depth2-removed",
+          "expect": 151,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne and get sjdep k p2 0\nn = add n 1",
+            "if false\nn = add n 1"
+          ],
+          "why": "G first run: a and z both value 1, equal estimates, z older runs second: 151"
+        },
+        {
+          "case": "mut397-always-rescore",
+          "expect": 162,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if eq get scgv 1 v\nret\nend\n",
+            ""
+          ],
+          "why": "H: completion with nothing published rescores at the next pick; stat 32 == 1 fails: 162"
+        },
+        {
+          "case": "mut397-ready-no-bump",
+          "expect": 151,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "put scst 1 add get scst 1 1\nsp_bump\n",
+            "put scst 1 add get scst 1 1\n"
+          ],
+          "why": "G first run: b readied by publication keeps value 0, x older runs fourth: 151"
+        },
+        {
+          "case": "mut397-waiting-no-bump",
+          "expect": 160,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "put sjst j 1\nsp_bump\n",
+            "put sjst j 1\n"
+          ],
+          "why": "H: only 2 bumps (r ready, sched_goal) before unpause; stat 34 == 4 fails: 160"
+        },
+        {
+          "case": "mut397-cancel-no-bump",
+          "expect": 165,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "put sjst j 0\nsp_bump\nif eq get scpol 5 add j 1",
+            "put sjst j 0\nif eq get scpol 5 add j 1"
+          ],
+          "why": "H: cancelling waiting w3 does not move stat 34: 165"
+        },
+        {
+          "case": "mut397-propose-unchecked",
+          "expect": 170,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne v get scgv 0\nput scgst 4",
+            "if false\nput scgst 4"
+          ],
+          "why": "P: stale proposal accepted, returns 0 not -9: 170"
+        },
+        {
+          "case": "mut397-use-unchecked",
+          "expect": 176,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if eq get scgv 3 get scgv 0\n",
+            "if true\n"
+          ],
+          "why": "P: p3 proposal made stale is used, p3 runs before p2; sjst p3 == 2 fails: 176"
+        },
+        {
+          "case": "mut397-est-ignored",
+          "expect": 181,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne ea eb\nret lt ea eb",
+            "if false\nret lt ea eb"
+          ],
+          "why": "K: equal values, estimate 10 vs 90 not used, older b wins: 181"
+        },
+        {
+          "case": "mut397-incarnation-ignored",
+          "expect": 184,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "put scgv 0 shl n 40\nput scgv 1 get scgv 0",
+            "put scgv 0 0\nput scgv 1 get scgv 0"
+          ],
+          "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"
+        },
+        {
+          "case": "mut397-proposal-fit-unchecked-at-use",
+          "expect": 189,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if eq get sjst j 2\nif sp_fits get sjneed j rq\nput scgst 7",
+            "if eq get sjst j 2\nif true\nput scgst 7"
+          ],
+          "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"
+        }
+      ],
+      "issue": "DRA-397",
+      "statuses": {
+        "DRA-397": "IMPLEMENTED, EXERCISED on native host; not QUALIFIED; not MERGED; not DEPLOYED",
+        "expected_exits": "derived from the check site each mutant targets (field why), before the run; DRA-287/288 mutants carry their original derivations",
+        "gpu": "NOT_RUN (not involved)"
+      }
+    },
+    "cases_sha256": "7be80d24120a01c85303a957a26c2c22edfa7ca629c34713bc88b15824899522",
+    "path": "~/handoffs/hive/sched/bin/receipt.py",
+    "sha256": "edf71900d19a79281e14d7ad3db0a7d3265fb74a8ce5b5cb72eb68a97d615b41",
+    "source": "#!/usr/bin/env python3\n\"\"\"Run a scheduler-policy case list against a clean omega-mv checkout and\nwrite a content-addressed receipt (evidence/<dir>/receipt.<sha256>.json).\n\nUsage: receipt.py CASES.json REPO OUTDIR_REL [--write]\nRun it under the queen pool lock, e.g.\n  flock -o ~/handoffs/hive/queen/pool-8-9.lock taskset -c 8-9 nice -n 10 receipt.py ...\n\nA case: {\"case\", \"issue\", \"fragments\": [paths] | \"gate\": path, \"om2\": bool,\n \"mutate\": [path, old, new] or a list of them (optional; each old must\n   occur exactly once in its fragment),\n \"args\": [..], \"expect\": int, \"timeout\": s, \"clean\": [rel dirs removed first],\n \"stdout_has\": [substrings every run must print] (optional),\n \"repeat\": N runs, each must pass (optional, default 1)}.\nThe receipt embeds this script's source and the case list for replay.\nMutants are applied to a disposable copy of the fragment; the checkout is\nnever modified. Verification tooling only: the implementation is the .om.\n\"\"\"\nimport hashlib, json, os, platform, shutil, subprocess, sys, tempfile, time, datetime\n\ndef sh(cmd, cwd, **kw):\n    return subprocess.run(cmd, cwd=cwd, capture_output=True, **kw)\n\ndef sha(path):\n    h = hashlib.sha256()\n    with open(path, 'rb') as f:\n        h.update(f.read())\n    return h.hexdigest()\n\ndef main():\n    cases_path, repo, outrel = sys.argv[1], os.path.abspath(sys.argv[2]), sys.argv[3]\n    write = '--write' in sys.argv\n    spec = json.load(open(cases_path))\n    dirty = sh(['git', 'status', '--porcelain', '--untracked-files=normal'], repo).stdout.decode()\n    dirty = [l for l in dirty.splitlines() if not l[3:].startswith('build/')]\n    if dirty:\n        print('REFUSED: dirty tree\\n' + '\\n'.join(dirty), file=sys.stderr)\n        sys.exit(3)\n    head = sh(['git', 'rev-parse', 'HEAD'], repo).stdout.decode().strip()\n    tree = sh(['git', 'rev-parse', 'HEAD^{tree}'], repo).stdout.decode().strip()\n    omc = os.path.join(repo, 'seed/out/omc')\n    work = tempfile.mkdtemp(prefix='schedrcpt-')\n    files = set()\n    results = []\n    for c in spec['cases']:\n        frags = c.get('fragments') or [c['gate']]\n        src = b'om2\\n' if c.get('om2') else b''\n        mut = c.get('mutate')\n        muts = (mut if mut and isinstance(mut[0], list) else [mut]) if mut else []\n        for m in muts:\n            if m[0] not in frags:\n                print(f'REFUSED: mutant {c[\"case\"]}: {m[0]} is not one of its fragments', file=sys.stderr)\n                sys.exit(4)\n        for fr in frags:\n            files.add(fr)\n            data = open(os.path.join(repo, fr), 'rb').read()\n            for m in muts:\n                if m[0] != fr:\n                    continue\n                old, new = m[1].encode(), m[2].encode()\n                n = data.count(old)\n                if n != 1:\n                    print(f'REFUSED: mutant {c[\"case\"]}: pattern occurs {n} times', file=sys.stderr)\n                    sys.exit(4)\n                data = data.replace(old, new)\n            src += data\n        if c.get('gate') and not mut and c.get('compose'):\n            composed = b''.join(open(os.path.join(repo, f), 'rb').read() for f in c['compose'])\n            if composed != src:\n                print(f'REFUSED: {c[\"gate\"]} is not the concatenation', file=sys.stderr)\n                sys.exit(5)\n        binp = os.path.join(work, c['case'])\n        p = subprocess.run([omc], input=src, capture_output=True)\n        with open(binp, 'wb') as f:\n            f.write(p.stdout)\n        os.chmod(binp, 0o755)\n        r = {'case': c['case'], 'issue': c.get('issue'), 'compile_exit': p.returncode,\n             'expected_exit': c['expect'], 'source_sha256': hashlib.sha256(src).hexdigest()}\n        if muts:\n            ms = [{'file': m[0], 'from': m[1], 'to': m[2]} for m in muts]\n            r['mutation'] = ms[0] if len(ms) == 1 else ms\n        if p.returncode != 0:\n            r.update(run_exit=None, verdict='FAIL', stderr=p.stderr.decode(errors='replace'))\n            results.append(r)\n            continue\n        runs, code, out, err = [], None, b'', b''\n        t0 = time.monotonic()\n        for n in range(c.get('repeat', 1)):\n            for d in c.get('clean', []):\n                shutil.rmtree(os.path.join(repo, d), ignore_errors=True)\n            try:\n                q = subprocess.run([binp] + c.get('args', []), cwd=repo, capture_output=True,\n                                   timeout=c.get('timeout', 120))\n                code, out, err = q.returncode, q.stdout, q.stderr\n            except subprocess.TimeoutExpired as e:\n                code, out, err = 'timeout', e.stdout or b'', e.stderr or b''\n            text = out.decode(errors='replace')\n            miss = [s for s in c.get('stdout_has', []) if s not in text]\n            runs.append({'exit': code, 'missing_stdout': miss})\n        ok = all(x['exit'] == c['expect'] and not x['missing_stdout'] for x in runs)\n        r.update(run_exit=code, wall_ms=int((time.monotonic() - t0) * 1000),\n                 stdout=out.decode(errors='replace')[-4000:],\n                 stderr=err.decode(errors='replace')[-2000:],\n                 binary_sha256=sha(binp),\n                 verdict='PASS' if ok else 'FAIL')\n        if c.get('stdout_has'):\n            r['stdout_has'] = c['stdout_has']\n        if len(runs) > 1:\n            hist = {}\n            for x in runs:\n                k = f\"{x['exit']}{'' if not x['missing_stdout'] else ' missing-stdout'}\"\n                hist[k] = hist.get(k, 0) + 1\n            r['repeat'] = {'runs': len(runs), 'outcomes': hist}\n        results.append(r)\n        print(f\"{r['verdict']} {c['case']} expect={c['expect']} got={code}\"\n              + (f\" runs={r['repeat']['outcomes']}\" if len(runs) > 1 else ''), flush=True)\n    shutil.rmtree(work, ignore_errors=True)\n    rec = {\n        'project': 'P-DRA-14', 'issue': spec['issue'], 'source_commit': head, 'source_tree': tree,\n        'platform': ' '.join([platform.system(), platform.release(), platform.machine(), platform.node()]),\n        'cpu_affinity': sorted(os.sched_getaffinity(0)),\n        'execution': 'NATIVE Linux AArch64 host CPU (DGX Spark host, no GPU opened)',\n        'timestamp_utc': datetime.datetime.now(datetime.timezone.utc).isoformat(),\n        'compiler': {'path': 'seed/out/omc', 'sha256': sha(omc)},\n        'hashes': {f: sha(os.path.join(repo, f)) for f in sorted(files)},\n        'script': {'path': '~/handoffs/hive/sched/bin/receipt.py', 'sha256': sha(__file__),\n                   'source': open(__file__).read(),\n                   'cases_sha256': sha(cases_path), 'cases': spec},\n        'statuses': spec.get('statuses', {}),\n        'checks': results,\n        'summary': {'pass': sum(r['verdict'] == 'PASS' for r in results),\n                    'fail': sum(r['verdict'] != 'PASS' for r in results)},\n    }\n    body = (json.dumps(rec, indent=2, sort_keys=True) + '\\n').encode()\n    digest = hashlib.sha256(body).hexdigest()\n    print(f\"summary pass={rec['summary']['pass']} fail={rec['summary']['fail']} receipt_sha256={digest}\")\n    if write:\n        d = os.path.join(repo, outrel)\n        os.makedirs(d, exist_ok=True)\n        path = os.path.join(d, f'receipt.{digest}.json')\n        with open(path, 'wb') as f:\n            f.write(body)\n        print(path)\n    else:\n        with open(os.path.join(tempfile.gettempdir(), f'sched-receipt-{digest}.json'), 'wb') as f:\n            f.write(body)\n    sys.exit(0 if rec['summary']['fail'] == 0 else 1)\n\nmain()\n"
+  },
+  "source_commit": "50bfda9b82e6ef7aa49f5fbc01421a737c5a3091",
+  "source_tree": "b4eaab0bba33015fc94e92d233f23719ac190971",
+  "statuses": {
+    "DRA-397": "IMPLEMENTED, EXERCISED on native host; not QUALIFIED; not MERGED; not DEPLOYED",
+    "expected_exits": "derived from the check site each mutant targets (field why), before the run; DRA-287/288 mutants carry their original derivations",
+    "gpu": "NOT_RUN (not involved)"
+  },
+  "summary": {
+    "fail": 0,
+    "pass": 51
+  },
+  "timestamp_utc": "2026-11-07T07:17:55.880362+00:00"
+}
diff --git a/evidence/node-schedpol/receipt.c7c4d7364b59a8c7c03bb3b61e8f150165bc7032d8bca7de51622f8f0fcec50e.json b/evidence/node-schedpol/receipt.c7c4d7364b59a8c7c03bb3b61e8f150165bc7032d8bca7de51622f8f0fcec50e.json
new file mode 100644
index 000000000..f4921470c
--- /dev/null
+++ b/evidence/node-schedpol/receipt.c7c4d7364b59a8c7c03bb3b61e8f150165bc7032d8bca7de51622f8f0fcec50e.json
@@ -0,0 +1,2156 @@
+{
+  "checks": [
+    {
+      "binary_sha256": "aed10c7319fcea7d96b37c7440dbd5e0ed24fc043de41dee9fa73d909052aba6",
+      "case": "schedpol-gate",
+      "compile_exit": 0,
+      "expected_exit": 0,
+      "issue": "DRA-395",
+      "repeat": {
+        "outcomes": {
+          "0": 10
+        },
+        "runs": 10
+      },
+      "run_exit": 0,
+      "source_sha256": "eeb21fb498dba261f0a5c95ab91520b68c425c4ae2658a7ff33665aa254b4558",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\nPASS node schedpol\n",
+      "stdout_has": [
+        "PASS node schedpol"
+      ],
+      "verdict": "PASS",
+      "wall_ms": 155702
+    },
+    {
+      "binary_sha256": "aed10c7319fcea7d96b37c7440dbd5e0ed24fc043de41dee9fa73d909052aba6",
+      "case": "schedpol-gate-fifo",
+      "compile_exit": 0,
+      "expected_exit": 11,
+      "issue": "DRA-396",
+      "repeat": {
+        "outcomes": {
+          "11": 5
+        },
+        "runs": 5
+      },
+      "run_exit": 11,
+      "source_sha256": "eeb21fb498dba261f0a5c95ab91520b68c425c4ae2658a7ff33665aa254b4558",
+      "stderr": "",
+      "stdout": "schedpol hol witness head=20050 fits_behind=30050 free_cpu=1 idle_worker=1 hol_stops=40\nschedpol hol witness head=20050 fits_behind=50050 free_cpu=1 idle_worker=1 hol_stops=40\n",
+      "stdout_has": [
+        "schedpol hol witness head=20050 fits_behind=30050 free_cpu=1 idle_worker=1",
+        "schedpol hol witness head=20050 fits_behind=50050 free_cpu=1 idle_worker=1"
+      ],
+      "verdict": "PASS",
+      "wall_ms": 14533
+    },
+    {
+      "binary_sha256": "aed10c7319fcea7d96b37c7440dbd5e0ed24fc043de41dee9fa73d909052aba6",
+      "case": "schedpol-gate-noreserve",
+      "compile_exit": 0,
+      "expected_exit": 61,
+      "issue": "DRA-396",
+      "repeat": {
+        "outcomes": {
+          "61": 5
+        },
+        "runs": 5
+      },
+      "run_exit": 61,
+      "source_sha256": "eeb21fb498dba261f0a5c95ab91520b68c425c4ae2658a7ff33665aa254b4558",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 34059
+    },
+    {
+      "binary_sha256": "8b03e3e32804f3c8fe6735bcf4f1709498f8b21f38707b8a32efcc6eec988548",
+      "case": "sched-gate",
+      "compile_exit": 0,
+      "expected_exit": 0,
+      "issue": "DRA-287",
+      "run_exit": 0,
+      "source_sha256": "34d023c22441d646b5def0c50ba4aec8a532972ec0314df8b5adb8cdf45bcb26",
+      "stderr": "",
+      "stdout": "idle ticks workers=0 creator=0 wake rounds=200 mean_us=62 max_us=1094\nPASS node sched\n",
+      "verdict": "PASS",
+      "wall_ms": 8030
+    },
+    {
+      "binary_sha256": "64518e47cc13a9f9a86a69cc20ab88006cfe9ad676d0e0656a69829dfa1995f6",
+      "case": "auth-gate",
+      "compile_exit": 0,
+      "expected_exit": 0,
+      "issue": "DRA-288",
+      "run_exit": 0,
+      "source_sha256": "9d468225cbe931aff1983c0a5da6dbe27bf0e3f168be19587ea779ad1b24fac9",
+      "stderr": "",
+      "stdout": "PASS node authority\n",
+      "verdict": "PASS",
+      "wall_ms": 737
+    },
+    {
+      "binary_sha256": "b4e699b331e82226a8eb489c36dc8ebbad2a1cd49b2eab2e1c81fb1b202e9153",
+      "case": "journal-gate",
+      "compile_exit": 0,
+      "expected_exit": 0,
+      "issue": "DRA-289",
+      "run_exit": 0,
+      "source_sha256": "8ea38b86ff711640c696fed3d09165947c1e67623babc55ecc314f3c6bfd58ac",
+      "stderr": "",
+      "stdout": "PASS node journal\n",
+      "verdict": "PASS",
+      "wall_ms": 3655
+    },
+    {
+      "binary_sha256": "d98767f4f9d795d9ffd39c3e59e905815712a73575ab4a8f82dff8ddc40650da",
+      "case": "code-test-unit",
+      "compile_exit": 0,
+      "expected_exit": 0,
+      "issue": "DRA-290",
+      "run_exit": 0,
+      "source_sha256": "200ac0e908be43123db7f19f0a328eb0d207f49bedbd0b0305303e360ff821d9",
+      "stderr": "",
+      "stdout": "CWR 0 0 2\n\n\n\nCWE 0 0 2 1\nCWE 0 1002 1 2\nCWR 0 0 2\n\n\n\nCWE 0 0 2 1\nCWO 0 FAIL 11 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 2\nCWO 0 FAIL 10 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 9\nCWO 0 FAIL 10 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWO 0 FAIL 10 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 2\nCWE 0 1013 1 3\nCWR 0 0 2\n\n\n\nCWE 0 0 2 2\nCWE 0 1023 1 3\nCWR 0 0 2\n\n\n\nCWE 0 0 2 2\nCWO 0 FAIL 10 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWO 0 FAIL 13 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWO 0 FAIL 13 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWO 0 FAIL 13 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWO 0 FAIL 13 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWO 0 FAIL 11 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWE 0 1034 1 4\nCWR 0 0 13\nTests passed.\nCWE 0 0 2 4\nCWO 0 FAIL 14 0\nCWR 0 0 13\nTests passed.\nCWE 0 0 2 4\nCWO 0 FAIL 14 0\nCWR 0 0 13\nTests passed.\nCWE 0 0 2 4\nCWE 0 1045 1 5\nCWR 0 0 15\nFile not found.\nCWE 0 0 2 5\nCWO 0 FAIL 10 0\nCWR 0 0 15\nFile not found.\nCWE 0 0 2 5\nCWO 0 PASS 1 0\nCWO 0 FAIL 18 0\nCWO 0 FAIL 18 0\nCWO 0 FAIL 18 0\nCWE 0 0 3 0\nCWE 0 0 3 1\nCWE 0 0 3 2\nCWO 0 FAIL 17 0\nCWE 0 0 3 6\nCWE 0 0 3 6\nCWO 0 FAIL 15 0\nCWE 0 0 3 0\nCWE 0 0 3 4\nCWO 0 FAIL 17 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWE 0 1054 1 4\nCWE 0 0 3 0\nCWE 0 0 3 0\nCWO 0 FAIL 15 0\nCWE 0 0 3 5\nCWO 0 FAIL 13 0\nCWE 0 0 3 0\nCWO 0 PASS 1 0\nCWE 0 0 3 6\nCWO 0 FAIL 15 0\nCWE 0 0 3 0\nCWO 0 FAIL 15 0\nCWO 0 FAIL 12 7\nCWO 0 FAIL 20 0\nCWE 0 1061 1 1\nCWP 0 1 193\nTask: Fix the error in this file and confirm its goal.\nFile: jobs/item76666.om\nGoal: calc starts with x and adds 4 exactly 3 times in a for loop. main calls calc with 70.\nState: unread\nAnswer:\n\ncode checks=54 fail=0\n",
+      "verdict": "PASS",
+      "wall_ms": 38
+    },
+    {
+      "binary_sha256": "906aa20f22b8c011094f0c91b58d1dd970f700e2ada69198cc7e83e5c7d858bd",
+      "case": "mut-impossible-admitted",
+      "compile_exit": 0,
+      "expected_exit": 31,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if not sp_feas req\n",
+        "to": "if false\n"
+      },
+      "run_exit": 31,
+      "source_sha256": "110a6609b57da78bfeba32ccda0072a60bd7b8985bbf710cb71d6dabefb78f51",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 1
+    },
+    {
+      "binary_sha256": "5df2a7bcbdc21b3438b3d91c4af54e1c45047993a2cdf5c18d527210d530a036",
+      "case": "mut-collect-no-release",
+      "compile_exit": 0,
+      "expected_exit": 133,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "j = sub b 1\nsp_give j\n",
+        "to": "j = sub b 1\n"
+      },
+      "run_exit": 133,
+      "source_sha256": "eef9229e6f5d3a8bd5755f15979ce0277d17751a76930d0f3d0d5694ae025a71",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 413
+    },
+    {
+      "binary_sha256": "f246ebdb46fb22169f75fe128a8d2555993c8ecf8ca3775ddccb74a845f9d76e",
+      "case": "mut-capacity-ignored",
+      "compile_exit": 0,
+      "expected_exit": 44,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if gt sp_need req k a\n",
+        "to": "if false\n"
+      },
+      "run_exit": 44,
+      "source_sha256": "b02f235546bfc67984c9acd9bad915efb97052cf079b8392c9d7619f73c59802",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 424
+    },
+    {
+      "binary_sha256": "e192bdfe66c86979572c0e4f37bf262ec7f0fca62eaec332e72c3f652735cb22",
+      "case": "mut-ready-unstamped",
+      "compile_exit": 0,
+      "expected_exit": 54,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne and get sjdep j topics 0\nsp_ready j\n",
+        "to": "if ne and get sjdep j topics 0\nput sjst j 2\n"
+      },
+      "run_exit": 54,
+      "source_sha256": "94994904765a6657b7afd827044ef46eaa37a37c0d696b9385e3929b27c7c064",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 1011
+    },
+    {
+      "binary_sha256": "296862c0325f1a783d7dbd91fecc05b5ad72c2f76ed36928587590831b049cd1",
+      "case": "mut-give-after-review",
+      "compile_exit": 0,
+      "expected_exit": 122,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "j = sub b 1\nsp_give j\nif ge sched_count 4 4 get sclim 1\ncontinue\nend\n",
+        "to": "j = sub b 1\nif ge sched_count 4 4 get sclim 1\ncontinue\nend\nsp_give j\n"
+      },
+      "run_exit": 122,
+      "source_sha256": "d7cf4c4e216baaacf6b9f876e1e7a222d033a26eb6626ed0aafda9043a3055f3",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 894
+    },
+    {
+      "binary_sha256": "257c9dd4925307fa0face81f7b265fcd26a87e568cfcfebce399662b6c4f4e99",
+      "case": "mut-no-take",
+      "compile_exit": 0,
+      "expected_exit": 130,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "end\nsp_take j\nif eq get scpol 5 add j 1\n",
+        "to": "end\nif eq get scpol 5 add j 1\n"
+      },
+      "run_exit": 130,
+      "source_sha256": "800886dd9017c8bd3aa8b75455fb996f6b741a2c04f5bafa14ab85bb2c09917c",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 11
+    },
+    {
+      "binary_sha256": "e3fbdbbe33fddfbeaebe50364e7f0039f7f6e21216df7dec3c7a35893fc80364",
+      "case": "mut-cap-below-use",
+      "compile_exit": 0,
+      "expected_exit": 131,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if lt sp_need caps k get suse k\n",
+        "to": "if false\n"
+      },
+      "run_exit": 131,
+      "source_sha256": "5c1dd33107a94d65eedcadee62e07a827102a998d622ac658004eca46f4420fd",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 11
+    },
+    {
+      "binary_sha256": "242ed2ef7d39f59e2f9d24d98fe1398fb83e9a1e46687addd10bbee33fe96bb4",
+      "case": "mut287-wake-all",
+      "compile_exit": 0,
+      "expected_exit": 16,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne and sc_cell w 32 topics 0\n",
+        "to": "if true\n"
+      },
+      "run_exit": 16,
+      "source_sha256": "a16b98f3539a91358aa6b1aa2701ef84c28ab1296af760fdf3855d55023cc2f9",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 601
+    },
+    {
+      "binary_sha256": "d74a3677b3e54f50686aeb700115502aafa0cac20145bca74e0ca3781994657b",
+      "case": "mut287-no-wake",
+      "compile_exit": 0,
+      "expected_exit": 34,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "sc_set w 0 q\nsc_wake w\n",
+        "to": "sc_set w 0 q\n"
+      },
+      "run_exit": 34,
+      "source_sha256": "3243e4e9b195588ab2cd0ccf65bf6d3105056ba200adaf6b8442e1b55b281b18",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 6318
+    },
+    {
+      "binary_sha256": "7d73730f22413d94b1b60ec44d565a87d785c430c96d96c14a42e0c9bbcfe50c",
+      "case": "mut287-review-unbounded",
+      "compile_exit": 0,
+      "expected_exit": 50,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ge sched_count 4 4 get sclim 1\n",
+        "to": "if false\n"
+      },
+      "run_exit": 50,
+      "source_sha256": "9392176537b5d46e5229fa42e64dba21fd9e30fbb1ae619b07c5be580cd6cd65",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 3345
+    },
+    {
+      "binary_sha256": "3304587b140e2c3e3e9ef7955493f93c2296f7721223f7b2254d0adb3c0f9e20",
+      "case": "mut287-admit-unbounded",
+      "compile_exit": 0,
+      "expected_exit": 48,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "room = ulong 0\nif lt a get sclim 0\nroom = sub get sclim 0 a\nend\n",
+        "to": "room = ulong 64\n"
+      },
+      "run_exit": 48,
+      "source_sha256": "cf3936da1ef6a98a51aeac7ece0a700558d5b98d1410010d50c65a450f698244",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 2838
+    },
+    {
+      "binary_sha256": "f1f6babe2907a424ec71fa734ae6d81721ed243bc38ee58399a52d7464fb41a8",
+      "case": "mut287-unknown-rerun",
+      "compile_exit": 0,
+      "expected_exit": 83,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put sjst j 6\n",
+        "to": "put sjst j 2\n"
+      },
+      "run_exit": 83,
+      "source_sha256": "9f00a70ef19f0cd98b2b78c83ef188e94ef92a28d33061aef38eb7b697d0a58d",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 6767
+    },
+    {
+      "binary_sha256": "0d950860b49f9fee27ce6b79f5757fb960ceef012d7a6573826d4dbb55f531d5",
+      "case": "mut287-lost-no-ack",
+      "compile_exit": 0,
+      "expected_exit": 92,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "sc_set w 64 get scseq w\n",
+        "to": ""
+      },
+      "run_exit": 92,
+      "source_sha256": "88a63ccd21b39471c66c3e8f84b2cbd589fe34f54482f0c6e991184c822f1062",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 5260
+    },
+    {
+      "binary_sha256": "7aadb8f676cc679b91ae59ec58a973f975cfdabd6d427e2bb0b3223f21aad35e",
+      "case": "mut287-deps-ignored",
+      "compile_exit": 0,
+      "expected_exit": 68,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put sjst j 1\n",
+        "to": "put sjst j 2\n"
+      },
+      "run_exit": 68,
+      "source_sha256": "dafaccc6f6907452c12fa7f294600eafc504976c22dbb7875fb481dd080ad403",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 3415
+    },
+    {
+      "binary_sha256": "edaabaea28ca18f977216423899b1c70a39dadd8b8c9ce1aecf2ad4dbe0a0202",
+      "case": "mut287-super-spin",
+      "compile_exit": 0,
+      "expected_exit": 138,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/super.om",
+        "from": "iv = interval\n",
+        "to": "iv = long 0\n"
+      },
+      "run_exit": 138,
+      "source_sha256": "5168dbf22a6df2fc59b92bf0ad87826320cc4655130ef2a7b4cd04550b067030",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 2211
+    },
+    {
+      "binary_sha256": "472d697a379dd423331ab80a9a7b8bfb1c20d242f504806c865d404a8edcc7a3",
+      "case": "mut288-pause-ignored",
+      "compile_exit": 0,
+      "expected_exit": 121,
+      "issue": "DRA-288",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne get scpause 0 0\n",
+        "to": "if false\n"
+      },
+      "run_exit": 121,
+      "source_sha256": "2226b7833fd88796c4595eef4978cbaad67f51147ee83a39de8b3b3b95470871",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 717
+    },
+    {
+      "binary_sha256": "c5a6498ab6818ce24f1bc94075aaa3a8bc97655d047c200157a4baf274e8fd69",
+      "case": "mut396-cursor-stuck",
+      "compile_exit": 0,
+      "expected_exit": 15,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put scpol 4 rem add cur win 64\n",
+        "to": ""
+      },
+      "run_exit": 15,
+      "source_sha256": "bdbbf730c6ee614d5e763bb7577f9b8b049d7edad55908b0b8e9df2e4cc91e01",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 7170
+    },
+    {
+      "binary_sha256": "0c99c2dc1b1917dd5fbba2a18837654e66cf7850152191e90987e2de699a3ab9",
+      "case": "mut396-tickets-ignored",
+      "compile_exit": 0,
+      "expected_exit": 75,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if eq get scpol 6 0\nret true\n",
+        "to": "if true\nret true\n"
+      },
+      "run_exit": 75,
+      "source_sha256": "3a663bb93a1871a5b1e4aa868989cdbca7c654982e48f7ffc0d197d200ebda15",
+      "stderr": "",
+      "stdout": "schedpol events=110 examined=4631 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 4322
+    },
+    {
+      "binary_sha256": "0c67e3664fa736a9e0815f737479bc5682625684deea5cda8a2cd4ed3d8b6ccc",
+      "case": "mut396-no-holdback",
+      "compile_exit": 0,
+      "expected_exit": 61,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "rq = get sjneed rj\n",
+        "to": "rq = ulong 0\n"
+      },
+      "run_exit": 61,
+      "source_sha256": "856d1e0265266b43301a065b1f63fac91160506bb3eee48ddd53eefdc6ab55c2",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 6815
+    },
+    {
+      "binary_sha256": "05a60a7a7d31cc0565d1f5f2d96359842dd322804996b19518257ead29166503",
+      "case": "mut396-never-reserve",
+      "compile_exit": 0,
+      "expected_exit": 61,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put scpol 5 add o 1\n",
+        "to": ""
+      },
+      "run_exit": 61,
+      "source_sha256": "d3ce641e5f9a69f1be67b844a1a20fdc673e77b65482b6a04eb3099ec2bc3c1a",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 6793
+    },
+    {
+      "binary_sha256": "9d5c424c92958603702785ea80cf6208f5fd7c32af57adb5adb7bdaeff23c5ed",
+      "case": "mut396-lease-never",
+      "compile_exit": 0,
+      "expected_exit": 82,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ge now d\n",
+        "to": "if false\n"
+      },
+      "run_exit": 82,
+      "source_sha256": "75c90fc5bf7dfd61b8cd4198057e514a02b59b945d7c7e37a9eee244e70c648e",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 7733
+    },
+    {
+      "binary_sha256": "05f263d7b30935964b06eae0ededc7b5ba12fbdfca42a657aaed3ff73e0d0724",
+      "case": "mut396-cancel-keeps-reserve",
+      "compile_exit": 0,
+      "expected_exit": 94,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put sjst j 0\nsp_bump\nif eq get scpol 5 add j 1\nput scpol 5 0\nend\n",
+        "to": "put sjst j 0\nsp_bump\n"
+      },
+      "run_exit": 94,
+      "source_sha256": "c29d996910100e3428ab978f3dc4803ffbb0bf698478cc766059bb438a832264",
+      "stderr": "",
+      "stdout": "schedpol events=110 examined=4631 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 6583
+    },
+    {
+      "binary_sha256": "31b09e5730440f74186d4f5a7dcc1e61529f74d8c764d211e9e647d37cf7a518",
+      "case": "mut396-window-ignored",
+      "compile_exit": 0,
+      "expected_exit": 9,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "for i ulong win bound 64\n",
+        "to": "for i ulong 64 bound 64\n"
+      },
+      "run_exit": 9,
+      "source_sha256": "877a144b9bced98916983c1ed102ce01f4ff09f73d6f6edc1dae0756bf039287",
+      "stderr": "",
+      "stdout": "schedpol events=110 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 7158
+    },
+    {
+      "binary_sha256": "4f7665ab224fa15e3e7a4bcfcdf564250efa36ef6adefa02b0fce936438c72ea",
+      "case": "mut396-tickets-never-lapse",
+      "compile_exit": 0,
+      "expected_exit": 80,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if lt add get stts t get scpol 7 get scst 2\n",
+        "to": "if false\n"
+      },
+      "run_exit": 80,
+      "source_sha256": "30859046e9c5a73e4dd469de1838747422260753a1da3431423d5ec76c9e4db7",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 5051
+    },
+    {
+      "binary_sha256": "0e0d9f5218865417c56aac67926fe54cc7e765c4348cda0730e469a6d52c9f9f",
+      "case": "mut396-cursor-by-one",
+      "compile_exit": 0,
+      "expected_exit": 15,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put scpol 4 rem add cur win 64\n",
+        "to": "put scpol 4 rem add cur 1 64\n"
+      },
+      "run_exit": 15,
+      "source_sha256": "8ef1d11cc67f1a33b9ac4fef91362683bffc75cbffdf49501a6b377e3d988555",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 11
+    },
+    {
+      "binary_sha256": "041ee384eeed1def4b4baf310487ca991e17e978721a69bd56aa30f4973bb89c",
+      "case": "mut396-holders-by-room",
+      "compile_exit": 0,
+      "expected_exit": 105,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if eq t 0\nret true",
+        "to": "if lt t room\nret true"
+      },
+      "run_exit": 105,
+      "source_sha256": "4d5f52fbd7973dbb6d101936ef852e29526a26ab603dd9ceda965b8a04a98691",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4502 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 8103
+    },
+    {
+      "binary_sha256": "434c846ce6b7499e9e688957d89466d7033373f5af30893a873eb6817222d135",
+      "case": "mut396-room-ignores-slots",
+      "compile_exit": 0,
+      "expected_exit": 191,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if lt fs room\nroom = fs\n",
+        "to": "if false\nroom = fs\n"
+      },
+      "run_exit": 191,
+      "source_sha256": "711b1c8771c6888ac1f909659304841be81a49d74cca86005f2f373be0f50c85",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 8333
+    },
+    {
+      "binary_sha256": "770242230e9221c3b1c146a39d87580d103b707dd8647aecafc0ab4762493e04",
+      "case": "mut396-lease-early",
+      "compile_exit": 0,
+      "expected_exit": 83,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ge now d\n",
+        "to": "if ge add now 100000000 d\n"
+      },
+      "run_exit": 83,
+      "source_sha256": "0be722c529ab84b26c094451c14849ea75ee4815f5ba006869d55c4db714b284",
+      "stderr": "",
+      "stdout": "schedpol events=108 examined=4502 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 5876
+    },
+    {
+      "binary_sha256": "9416983f314f38b1fbab2040866c31d20e32ebdcddeb6aab7a57ed73e2f9e747",
+      "case": "mut396-jn-room-before-dup",
+      "compile_exit": 0,
+      "expected_exit": 170,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/journal.om",
+        "from": "if ge jn_jfind id 0\nret neg long 4\nend\nif not sched_room id\nret neg long 2\nend\n",
+        "to": "if not sched_room id\nret neg long 2\nend\nif ge jn_jfind id 0\nret neg long 4\nend\n"
+      },
+      "run_exit": 170,
+      "source_sha256": "f7a8b86f97422d6d385f240d5b4fb1a6ffe2575f1c7c045b4bc00d715e189320",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 3215
+    },
+    {
+      "binary_sha256": "574d7fef32b45c51d4d08268b81c84cbe64ad44ab6ba3057cb40012bad494d76",
+      "case": "mut396-jn-no-room-check",
+      "compile_exit": 0,
+      "expected_exit": 173,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/journal.om",
+        "from": "if not sched_room id\nret neg long 2\nend\nif ne jn_rec 2 id deps flags 0\n",
+        "to": "if ne jn_rec 2 id deps flags 0\n"
+      },
+      "run_exit": 173,
+      "source_sha256": "c76ea331805ae49c74aaad493d8fe607d3a08da5389159cd8207180086cb2dae",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 3246
+    },
+    {
+      "binary_sha256": "9ec1b1bf1b962901baf48e76981455784ad4feca43b0187a39c73818ce528575",
+      "case": "mut396-jn-no-room-check-c17",
+      "compile_exit": 0,
+      "expected_exit": 175,
+      "issue": "DRA-396",
+      "mutation": [
+        {
+          "file": "seed/node/journal.om",
+          "from": "if not sched_room id\nret neg long 2\nend\nif ne jn_rec 2 id deps flags 0\n",
+          "to": "if ne jn_rec 2 id deps flags 0\n"
+        },
+        {
+          "file": "seed/node/journal-test.om",
+          "from": "jt_c16\njt_c17\n",
+          "to": "jt_c17\n"
+        }
+      ],
+      "run_exit": 175,
+      "source_sha256": "14643067371d513eeaa3834f731b249b8aea9bfe58603e216b8d2055fc6c5fd3",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 3428
+    },
+    {
+      "binary_sha256": "44de4268e670912758e4d578fd120f110bc8cf66658a7be29bb1760f4aa98a9d",
+      "case": "mut396-fifo-overcount",
+      "compile_exit": 0,
+      "expected_exit": 9,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "for j ulong 64\nput scst 3 add get scst 3 1\n",
+        "to": "for j ulong 64\nput scst 3 add get scst 3 3\n"
+      },
+      "run_exit": 9,
+      "source_sha256": "2d6b72061ece75f381542fea532f722f57375b82eb584611f1b953bd444dde01",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 11
+    },
+    {
+      "binary_sha256": "aed10c7319fcea7d96b37c7440dbd5e0ed24fc043de41dee9fa73d909052aba6",
+      "case": "schedpol-gate-goal",
+      "compile_exit": 0,
+      "expected_exit": 0,
+      "issue": "DRA-397",
+      "repeat": {
+        "outcomes": {
+          "0": 10
+        },
+        "runs": 10
+      },
+      "run_exit": 0,
+      "source_sha256": "eeb21fb498dba261f0a5c95ab91520b68c425c4ae2658a7ff33665aa254b4558",
+      "stderr": "",
+      "stdout": "schedpol events=111 examined=4631 assigned=10 hol_stops=0 bypasses=4 reservations=1\nPASS node schedpol\n",
+      "stdout_has": [
+        "PASS node schedpol"
+      ],
+      "verdict": "PASS",
+      "wall_ms": 155361
+    },
+    {
+      "binary_sha256": "ed25c2c34522ea1e70a05ac8bba3d9f6eef03975d4bdecafbb04a29c0e7c5345",
+      "case": "mut397-goal-off",
+      "compile_exit": 0,
+      "expected_exit": 151,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "fn sp_better goal bool a ulong b ulong to bool\nif goal\n",
+        "to": "fn sp_better goal bool a ulong b ulong to bool\nif false\n"
+      },
+      "run_exit": 151,
+      "source_sha256": "a0bee321ee479f83b42e1499090a507a5d4c11d9316ef5511705adbcb44de7b8",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\nschedpol goal trace 220050 230050 250050 240050 260050 280050 270050 290050 300050 310050 \n",
+      "verdict": "PASS",
+      "wall_ms": 9634
+    },
+    {
+      "binary_sha256": "2630024151e404d6fc0f5a250fd1e03a51f2a32480cf6c89ac3d3822c0b8f7c6",
+      "case": "mut397-depth2-removed",
+      "compile_exit": 0,
+      "expected_exit": 151,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne and get sjdep k p2 0\nn = add n 1",
+        "to": "if false\nn = add n 1"
+      },
+      "run_exit": 151,
+      "source_sha256": "cadc383c9c701c081dd8d527e9cf3590d3cae4db524d9636e247cb984dda2c8a",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4567 assigned=10 hol_stops=0 bypasses=4 reservations=1\nschedpol goal trace 280050 230050 250050 220050 260050 240050 270050 290050 300050 310050 \n",
+      "verdict": "PASS",
+      "wall_ms": 9691
+    },
+    {
+      "binary_sha256": "df8fa23b20c473cf35c903b93be2ac9ec1bbfe4a42271183fb8fa45c39cdd195",
+      "case": "mut397-always-rescore",
+      "compile_exit": 0,
+      "expected_exit": 162,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if and eq get scgv 1 v ne get scgv 4 2\nret\nend\n",
+        "to": ""
+      },
+      "run_exit": 162,
+      "source_sha256": "733690c64b9ae20d5b3b32d90dd90213a451b732cee385ba3ee640805b57ef66",
+      "stderr": "",
+      "stdout": "schedpol events=110 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 10136
+    },
+    {
+      "binary_sha256": "93a8d7ab570ec8b7d2dff350ae7d00585839d39a06dcaa745cc22c3fe73c973e",
+      "case": "mut397-ready-no-bump",
+      "compile_exit": 0,
+      "expected_exit": 151,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put scst 1 add get scst 1 1\nsp_bump\n",
+        "to": "put scst 1 add get scst 1 1\n"
+      },
+      "run_exit": 151,
+      "source_sha256": "682b7e8afbd56e99352fb10de59245ce2bd5b3f6242f1060d42203d01b7fafc3",
+      "stderr": "",
+      "stdout": "schedpol events=110 examined=4630 assigned=10 hol_stops=0 bypasses=4 reservations=1\nschedpol goal trace 280050 250050 230050 220050 240050 290050 300050 310050 260050 270050 \n",
+      "verdict": "PASS",
+      "wall_ms": 9638
+    },
+    {
+      "binary_sha256": "1a419153a93a610eeddb2836a219088d9be0b64fc952de636cb76707a858850c",
+      "case": "mut397-waiting-no-bump",
+      "compile_exit": 0,
+      "expected_exit": 160,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put sjst j 1\nsp_bump\n",
+        "to": "put sjst j 1\n"
+      },
+      "run_exit": 160,
+      "source_sha256": "e2c29058fb624d090227debee5445ca6278c6c696effdbd292a0383d286a751f",
+      "stderr": "",
+      "stdout": "schedpol events=108 examined=4502 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 10117
+    },
+    {
+      "binary_sha256": "d4d53efabbbf41811db5428f0493de5607554ddb73f1bd7f63ca7aaa306071e6",
+      "case": "mut397-cancel-no-bump",
+      "compile_exit": 0,
+      "expected_exit": 165,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put sjst j 0\nsp_bump\nif eq get scpol 5 add j 1",
+        "to": "put sjst j 0\nif eq get scpol 5 add j 1"
+      },
+      "run_exit": 165,
+      "source_sha256": "dac6f80e36db0efa50f7e7e8ba189099302220958a233b0f079d11a7ddda4962",
+      "stderr": "",
+      "stdout": "schedpol events=108 examined=4502 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 10288
+    },
+    {
+      "binary_sha256": "bae91ac1140b2e692cbead305c3f954c582a3cbf885c61b021769f244032ef4c",
+      "case": "mut397-propose-unchecked",
+      "compile_exit": 0,
+      "expected_exit": 170,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne v get scgv 0\nput scgst 4",
+        "to": "if false\nput scgst 4"
+      },
+      "run_exit": 170,
+      "source_sha256": "3ea88505c070c5699a85fd4849590ff273afc59441c9a5b069f1bc3200ccf6a4",
+      "stderr": "",
+      "stdout": "schedpol events=110 examined=4567 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 10261
+    },
+    {
+      "binary_sha256": "d0baba5afb04f07b86e4883f4699a2963a23af0e7f5a83e24a0dec5499d63231",
+      "case": "mut397-use-unchecked",
+      "compile_exit": 0,
+      "expected_exit": 176,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if and eq get scgv 3 get scgv 0 eq get scgv 4 1\n",
+        "to": "if true\n"
+      },
+      "run_exit": 176,
+      "source_sha256": "5867b37833d309e5d128d06ff725c558f0169a3f929e005ce5b01793be0a0b34",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 10387
+    },
+    {
+      "binary_sha256": "7d6ca347d0bbc44bb40337570cf466da59cd245cb93f5e9d4f8d14b7fe1fc805",
+      "case": "mut397-est-ignored",
+      "compile_exit": 0,
+      "expected_exit": 181,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne ea eb\nret lt ea eb",
+        "to": "if false\nret lt ea eb"
+      },
+      "run_exit": 181,
+      "source_sha256": "0de5dedee24ce6e75668e1a76f3f9a6e359bd375067596f77067d0e45d1d281f",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 15554
+    },
+    {
+      "binary_sha256": "85533c32d1498242fca325c9aa0d24855d1cdb67067d00e0f808a9535b3e9c8d",
+      "case": "mut397-incarnation-ignored",
+      "compile_exit": 0,
+      "expected_exit": 184,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put scgv 0 shl n 40\nput scgv 1 get scgv 0",
+        "to": "put scgv 0 0\nput scgv 1 get scgv 0"
+      },
+      "run_exit": 184,
+      "source_sha256": "caf67f7ed6e3eed4ffb8c4483b6b8619043342bd676b475a2c46bc43c5ff0a59",
+      "stderr": "",
+      "stdout": "schedpol events=108 examined=4502 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 10462
+    },
+    {
+      "binary_sha256": "52db70fb75002a2d3b3eee59331ecdfddb71d0944a54707d9abda0454626cb97",
+      "case": "mut397-proposal-fit-unchecked-at-use",
+      "compile_exit": 0,
+      "expected_exit": 189,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if eq get sjst j 2\nif sp_fits get sjneed j rq\nput scgst 7",
+        "to": "if eq get sjst j 2\nif true\nput scgst 7"
+      },
+      "run_exit": 189,
+      "source_sha256": "952dd5e513bb485f695b797051374c4cff7c8badea4ea42feb54d3f504015137",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 11932
+    },
+    {
+      "binary_sha256": "d141b043ed2b47f249c9a070a1935cd8a1ac4e431aef20f5b6bb059f6e17ef80",
+      "case": "mut397-propose-without-incarnation",
+      "compile_exit": 0,
+      "expected_exit": 120,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne get scgv 4 1\nput scgst 5 add get scgst 5 1\nret neg long 6",
+        "to": "if false\nput scgst 5 add get scgst 5 1\nret neg long 6"
+      },
+      "run_exit": 120,
+      "source_sha256": "c716b7db43bc862fac30be4b365ff112c998bc93feb101216c4677220c56bf8e",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 15555
+    },
+    {
+      "binary_sha256": "1a607ec23d67b6b4e08215268c03f16805d33697facb69e346bfbc98c67e39f3",
+      "case": "mut397-incarnate-twice",
+      "compile_exit": 0,
+      "expected_exit": 121,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne get scgv 4 0\nret neg long 7",
+        "to": "if false\nret neg long 7"
+      },
+      "run_exit": 121,
+      "source_sha256": "2ed0c63d6dc7210a184a5e4acd6128589fab9a8787b7dcf6060943a2302da062",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4567 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 15550
+    },
+    {
+      "binary_sha256": "1e11248a17d5c07bcf58ba2d494b0644b7ad42c8b9e9154459b43f55794e7b34",
+      "case": "mut397-version-carries",
+      "compile_exit": 0,
+      "expected_exit": 123,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if eq and get scgv 0 1099511627775 1099511627775\nput scgv 4 2",
+        "to": "if false\nput scgv 4 2"
+      },
+      "run_exit": 123,
+      "source_sha256": "3bf27a5bfa4e96fe6d680c207d1881f7d4069b0b3a62513ebfe269090bd0c488",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 15632
+    },
+    {
+      "binary_sha256": "953eb1aa26bb6365cd6b0ff9c363cf0691b0e651e1d68c188fc72a9dcf1f1382",
+      "case": "mut397-exhausted-used",
+      "compile_exit": 0,
+      "expected_exit": 125,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if and eq get scgv 3 get scgv 0 eq get scgv 4 1",
+        "to": "if eq get scgv 3 get scgv 0"
+      },
+      "run_exit": 125,
+      "source_sha256": "468fbd82ab548cd86904c6a725f7de77bd0e2d5be9809920ea0a5135dfadc747",
+      "stderr": "",
+      "stdout": "schedpol events=111 examined=4631 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 15547
+    },
+    {
+      "binary_sha256": "f5307629343d4ce0d4e0817acd3c64fd33471688cc3ca312c94c5bd25bc9cb9b",
+      "case": "mut397-exhausted-no-rescore",
+      "compile_exit": 0,
+      "expected_exit": 126,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if and eq get scgv 1 v ne get scgv 4 2",
+        "to": "if eq get scgv 1 v"
+      },
+      "run_exit": 126,
+      "source_sha256": "a15540fb016800b28b7651a585969c3ec1b46dccca4838daf5e5579837c7a766",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 15579
+    },
+    {
+      "binary_sha256": "83d4f01a55419cccc97f20b5fa829e6555b0cf0a38c0eacea2801cea98a42538",
+      "case": "mut397-ambiguous-id",
+      "compile_exit": 0,
+      "expected_exit": 127,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne n 1\nput scgst 5 add get scgst 5 1\nret neg long 3",
+        "to": "if eq n 0\nput scgst 5 add get scgst 5 1\nret neg long 3"
+      },
+      "run_exit": 127,
+      "source_sha256": "fdc7c2a70d0df1d754b932623265f142b75497d4d3f81f6e8de963eb6d676439",
+      "stderr": "",
+      "stdout": "schedpol events=111 examined=4631 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 15577
+    }
+  ],
+  "compiler": {
+    "path": "seed/out/omc",
+    "sha256": "5f90edea61bac241398df5036990d899361a5acd9decb37954ce088ec0f6f6df"
+  },
+  "cpu_affinity": [
+    12,
+    13,
+    14
+  ],
+  "execution": "NATIVE Linux AArch64 host CPU (DGX Spark host, no GPU opened)",
+  "hashes": {
+    "seed/authority/action.om": "59cb9c3dfdcd9193bc4a272deda4fcd256a0d7693f3bcb58bc4e30ed78faab2b",
+    "seed/node/auth-gate.om": "9d468225cbe931aff1983c0a5da6dbe27bf0e3f168be19587ea779ad1b24fac9",
+    "seed/node/auth-test.om": "af66c87f83d73a5bdbaf181378eb69bb0645a86fe9b39de2f1b714041fbc20b8",
+    "seed/node/auth.om": "edf2f075d3751a8025363bc658252537f865dfc29f975fcf5d93c353b3282b30",
+    "seed/node/code-test.om": "df87a21e31f38d85ab9145af3fb18bafc52144a20aed0d9fbad60f6059ddacd0",
+    "seed/node/code.om": "aa9f8463fbe9534626c205e991e3a2170a25cbf91a106932ec399353583c0bf7",
+    "seed/node/gram.om": "ebba1f4c693f218969dc2f17eb680760977d38d694ac76db477853aefa64b291",
+    "seed/node/journal-gate.om": "8ea38b86ff711640c696fed3d09165947c1e67623babc55ecc314f3c6bfd58ac",
+    "seed/node/journal-test.om": "58547e87068911e009fa2f99c8b995249acc6113e21c692bf2e74ec8238ea011",
+    "seed/node/journal.om": "b8f970d02b3f752d217f61b601817d5abc5a8c22fd2288544af15a18f628feac",
+    "seed/node/pool.om": "e7fba928bdc5c4194e7aee42109265de4f172d2b197946133d788b2dbcb30ccc",
+    "seed/node/sched-gate.om": "34d023c22441d646b5def0c50ba4aec8a532972ec0314df8b5adb8cdf45bcb26",
+    "seed/node/sched-test.om": "29a3587d35a217403c63395eb2b11b4992727812af66512be3e452ea6381a545",
+    "seed/node/sched.om": "0dde328c8dbfa1c15cdb6dcf7fec37f0d251f2d8ed6e1523ef21110ae95a9a98",
+    "seed/node/schedpol-gate.om": "eeb21fb498dba261f0a5c95ab91520b68c425c4ae2658a7ff33665aa254b4558",
+    "seed/node/schedpol-test.om": "405ea7c3d36c00475300902c5c285b0830bc4920898aed4c7976650ab13da6d0",
+    "seed/node/super.om": "d104ac8116c6df57fdc93f03791d7315e5b60875d8d6177480ef9967b6f53d5a",
+    "seed/node/transport.om": "d0dd69ef5e0b71294a2390b3526865d62ca07accd269b9ce57a028339e34f6da"
+  },
+  "issue": "DRA-397",
+  "platform": "Linux 7.0.0-1019-nvidia aarch64 spark-b87b",
+  "project": "P-DRA-14",
+  "script": {
+    "cases": {
+      "cases": [
+        {
+          "case": "schedpol-gate",
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "expect": 0,
+          "gate": "seed/node/schedpol-gate.om",
+          "issue": "DRA-395",
+          "repeat": 10,
+          "stdout_has": [
+            "PASS node schedpol"
+          ],
+          "timeout": 120
+        },
+        {
+          "args": [
+            "fifo"
+          ],
+          "case": "schedpol-gate-fifo",
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "expect": 11,
+          "gate": "seed/node/schedpol-gate.om",
+          "issue": "DRA-396",
+          "repeat": 5,
+          "stdout_has": [
+            "schedpol hol witness head=20050 fits_behind=30050 free_cpu=1 idle_worker=1",
+            "schedpol hol witness head=20050 fits_behind=50050 free_cpu=1 idle_worker=1"
+          ],
+          "timeout": 120
+        },
+        {
+          "args": [
+            "noreserve"
+          ],
+          "case": "schedpol-gate-noreserve",
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "expect": 61,
+          "gate": "seed/node/schedpol-gate.om",
+          "issue": "DRA-396",
+          "repeat": 5,
+          "timeout": 120
+        },
+        {
+          "case": "sched-gate",
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "expect": 0,
+          "gate": "seed/node/sched-gate.om",
+          "issue": "DRA-287"
+        },
+        {
+          "case": "auth-gate",
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/auth-test.om"
+          ],
+          "expect": 0,
+          "gate": "seed/node/auth-gate.om",
+          "issue": "DRA-288"
+        },
+        {
+          "case": "journal-gate",
+          "clean": [
+            "build/node/jt"
+          ],
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/journal-test.om"
+          ],
+          "expect": 0,
+          "gate": "seed/node/journal-gate.om",
+          "issue": "DRA-289"
+        },
+        {
+          "args": [
+            "unit",
+            "build/node/cu"
+          ],
+          "case": "code-test-unit",
+          "clean": [
+            "build/node/cu"
+          ],
+          "expect": 0,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/gram.om",
+            "seed/node/code.om",
+            "seed/node/code-test.om"
+          ],
+          "issue": "DRA-290",
+          "om2": true
+        },
+        {
+          "case": "mut-impossible-admitted",
+          "expect": 31,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "if not sp_feas req\n",
+            "if false\n"
+          ],
+          "why": "C: impossible request admitted; check sched_admitr == -8 code 31"
+        },
+        {
+          "case": "mut-collect-no-release",
+          "expect": 133,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "j = sub b 1\nsp_give j\n",
+            "j = sub b 1\n"
+          ],
+          "why": "C: jobs reviewed still hold; pt_inv in pt_drain code 133"
+        },
+        {
+          "case": "mut-capacity-ignored",
+          "expect": 44,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "if gt sp_need req k a\n",
+            "if false\n"
+          ],
+          "why": "D: use exceeds capacity; pt_inv in pt_drain code 44"
+        },
+        {
+          "args": [
+            "fifo"
+          ],
+          "case": "mut-ready-unstamped",
+          "expect": 54,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne and get sjdep j topics 0\nsp_ready j\n",
+            "if ne and get sjdep j topics 0\nput sjst j 2\n"
+          ],
+          "why": "F under fifo: ready order wrong, y not first; code 54"
+        },
+        {
+          "case": "mut-give-after-review",
+          "expect": 122,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "j = sub b 1\nsp_give j\nif ge sched_count 4 4 get sclim 1\ncontinue\nend\n",
+            "j = sub b 1\nif ge sched_count 4 4 get sclim 1\ncontinue\nend\nsp_give j\n"
+          ],
+          "why": "V: second CPU not released while review full; suse==0 code 122"
+        },
+        {
+          "case": "mut-no-take",
+          "expect": 130,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "end\nsp_take j\nif eq get scpol 5 add j 1\n",
+            "end\nif eq get scpol 5 add j 1\n"
+          ],
+          "why": "C: running unfinished job holds nothing; pt_inv in pt_until code 130"
+        },
+        {
+          "case": "mut-cap-below-use",
+          "expect": 131,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "if lt sp_need caps k get suse k\n",
+            "if false\n"
+          ],
+          "why": "C: sched_cap below use accepted; == -8 code 131"
+        },
+        {
+          "case": "mut287-wake-all",
+          "expect": 16,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne and sc_cell w 32 topics 0\n",
+            "if true\n"
+          ]
+        },
+        {
+          "case": "mut287-no-wake",
+          "expect": 34,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "sc_set w 0 q\nsc_wake w\n",
+            "sc_set w 0 q\n"
+          ]
+        },
+        {
+          "case": "mut287-review-unbounded",
+          "expect": 50,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ge sched_count 4 4 get sclim 1\n",
+            "if false\n"
+          ]
+        },
+        {
+          "case": "mut287-admit-unbounded",
+          "expect": 48,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "room = ulong 0\nif lt a get sclim 0\nroom = sub get sclim 0 a\nend\n",
+            "room = ulong 64\n"
+          ],
+          "why": "DRA-287 sched-gate admission-limit check: headroom ignored, admissions beyond the limit; 48 (pattern moved with the DRA-396 room rewrite)"
+        },
+        {
+          "case": "mut287-unknown-rerun",
+          "expect": 83,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "put sjst j 6\n",
+            "put sjst j 2\n"
+          ]
+        },
+        {
+          "case": "mut287-lost-no-ack",
+          "expect": 92,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "sc_set w 64 get scseq w\n",
+            ""
+          ]
+        },
+        {
+          "case": "mut287-deps-ignored",
+          "expect": 68,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "put sjst j 1\n",
+            "put sjst j 2\n"
+          ]
+        },
+        {
+          "args": [
+            "idle"
+          ],
+          "case": "mut287-super-spin",
+          "expect": 138,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/super.om",
+            "iv = interval\n",
+            "iv = long 0\n"
+          ]
+        },
+        {
+          "case": "mut288-pause-ignored",
+          "expect": 121,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/auth-test.om"
+          ],
+          "issue": "DRA-288",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne get scpause 0 0\n",
+            "if false\n"
+          ]
+        },
+        {
+          "case": "mut396-cursor-stuck",
+          "expect": 15,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "put scpol 4 rem add cur win 64\n",
+            ""
+          ],
+          "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"
+        },
+        {
+          "case": "mut396-tickets-ignored",
+          "expect": 75,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "if eq get scpol 6 0\nret true\n",
+            "if true\nret true\n"
+          ],
+          "why": "Q: with room, Y asking before ticket holder X is admitted; code 75"
+        },
+        {
+          "case": "mut396-no-holdback",
+          "expect": 61,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "rq = get sjneed rj\n",
+            "rq = ulong 0\n"
+          ],
+          "why": "S: smalls refill freed CPU, big never runs; first check code 61"
+        },
+        {
+          "case": "mut396-never-reserve",
+          "expect": 61,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "put scpol 5 add o 1\n",
+            ""
+          ],
+          "why": "S: no reservation, big never runs; first check code 61"
+        },
+        {
+          "case": "mut396-lease-never",
+          "expect": 82,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ge now d\n",
+            "if false\n"
+          ],
+          "why": "L: sched_overdue never reports; eq o h code 82"
+        },
+        {
+          "case": "mut396-cancel-keeps-reserve",
+          "expect": 94,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "put sjst j 0\nsp_bump\nif eq get scpol 5 add j 1\nput scpol 5 0\nend\n",
+            "put sjst j 0\nsp_bump\n"
+          ],
+          "why": "R: reservation survives cancel; sched_stat 29 == 0 code 94"
+        },
+        {
+          "case": "mut396-window-ignored",
+          "expect": 9,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "for i ulong win bound 64\n",
+            "for i ulong 64 bound 64\n"
+          ],
+          "why": "pt_step bound (exit 9): candidate reads <= events x db x (win+1); in W (win 4, db 2) one pick scanning 64 slots reads 65 > 2 x 5 = 10 per event: 9"
+        },
+        {
+          "case": "mut396-tickets-never-lapse",
+          "expect": 80,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "if lt add get stts t get scpol 7 get scst 2\n",
+            "if false\n"
+          ],
+          "why": "Q: stale ticket of 150050 blocks new caller 160050; ge 0 code 80"
+        },
+        {
+          "case": "mut396-cursor-by-one",
+          "expect": 15,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "put scpol 4 rem add cur win 64\n",
+            "put scpol 4 rem add cur 1 64\n"
+          ],
+          "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)"
+        },
+        {
+          "case": "mut396-holders-by-room",
+          "expect": 105,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "if eq t 0\nret true",
+            "if lt t room\nret true"
+          ],
+          "why": "T: second holder Y enters with two openings; 105"
+        },
+        {
+          "case": "mut396-room-ignores-slots",
+          "expect": 191,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "if lt fs room\nroom = fs\n",
+            "if false\nroom = fs\n"
+          ],
+          "why": "X: table full of review results, sched_room true; 191"
+        },
+        {
+          "case": "mut396-lease-early",
+          "expect": 83,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ge now d\n",
+            "if ge add now 100000000 d\n"
+          ],
+          "why": "L: overdue reported before the stored deadline; 83"
+        },
+        {
+          "case": "mut396-jn-room-before-dup",
+          "clean": [
+            "build/node/jt"
+          ],
+          "expect": 170,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/journal-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/journal.om",
+            "if ge jn_jfind id 0\nret neg long 4\nend\nif not sched_room id\nret neg long 2\nend\n",
+            "if not sched_room id\nret neg long 2\nend\nif ge jn_jfind id 0\nret neg long 4\nend\n"
+          ],
+          "why": "journal case 16: duplicate at the limit gets -2 and a ticket, not -4; 170"
+        },
+        {
+          "case": "mut396-jn-no-room-check",
+          "clean": [
+            "build/node/jt"
+          ],
+          "expect": 173,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/journal-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/journal.om",
+            "if not sched_room id\nret neg long 2\nend\nif ne jn_rec 2 id deps flags 0\n",
+            "if ne jn_rec 2 id deps flags 0\n"
+          ],
+          "why": "journal-gate case 16 runs before 17: jn_admit 7003 at the limit now journals ADMIT and sched_admit refuses (-2, 172 holds, ticket count 1 holds); after the cancel, jn_admit 7003 finds 7003 in the journal and returns -4, so jt_ok ge ... 173 fails: 173"
+        },
+        {
+          "case": "mut396-jn-no-room-check-c17",
+          "clean": [
+            "build/node/jt"
+          ],
+          "expect": 175,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/journal-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            [
+              "seed/node/journal.om",
+              "if not sched_room id\nret neg long 2\nend\nif ne jn_rec 2 id deps flags 0\n",
+              "if ne jn_rec 2 id deps flags 0\n"
+            ],
+            [
+              "seed/node/journal-test.om",
+              "jt_c16\njt_c17\n",
+              "jt_c17\n"
+            ]
+          ],
+          "why": "case 16 is not run (removed from main), so case 17 is the first to meet the missing room check: jn_admit 9001 journals ADMIT (jseq grows) and sched_admit refuses (-2, 174 holds; ticket count 1 holds); jt_ok eq get jseq 0 q 175 fails: 175"
+        },
+        {
+          "args": [
+            "fifo"
+          ],
+          "case": "mut396-fifo-overcount",
+          "expect": 9,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "for j ulong 64\nput scst 3 add get scst 3 1\n",
+            "for j ulong 64\nput scst 3 add get scst 3 3\n"
+          ],
+          "timeout": 120,
+          "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"
+        },
+        {
+          "args": [
+            "goal"
+          ],
+          "case": "schedpol-gate-goal",
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "expect": 0,
+          "gate": "seed/node/schedpol-gate.om",
+          "issue": "DRA-397",
+          "repeat": 10,
+          "stdout_has": [
+            "PASS node schedpol"
+          ],
+          "timeout": 120
+        },
+        {
+          "case": "mut397-goal-off",
+          "expect": 151,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "fn sp_better goal bool a ulong b ulong to bool\nif goal\n",
+            "fn sp_better goal bool a ulong b ulong to bool\nif false\n"
+          ],
+          "why": "G first run: policy-1 order, x runs first, trace mismatch: 151"
+        },
+        {
+          "case": "mut397-depth2-removed",
+          "expect": 151,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne and get sjdep k p2 0\nn = add n 1",
+            "if false\nn = add n 1"
+          ],
+          "why": "G first run: a and z both value 1, equal estimates, z older runs second: 151"
+        },
+        {
+          "case": "mut397-always-rescore",
+          "expect": 162,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if and eq get scgv 1 v ne get scgv 4 2\nret\nend\n",
+            ""
+          ],
+          "why": "H: completion with nothing published rescores at the next pick; stat 32 == 1 fails: 162"
+        },
+        {
+          "case": "mut397-ready-no-bump",
+          "expect": 151,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "put scst 1 add get scst 1 1\nsp_bump\n",
+            "put scst 1 add get scst 1 1\n"
+          ],
+          "why": "G first run: b readied by publication keeps value 0, x older runs fourth: 151"
+        },
+        {
+          "case": "mut397-waiting-no-bump",
+          "expect": 160,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "put sjst j 1\nsp_bump\n",
+            "put sjst j 1\n"
+          ],
+          "why": "H: only 2 bumps (r ready, sched_goal) before unpause; stat 34 == 4 fails: 160"
+        },
+        {
+          "case": "mut397-cancel-no-bump",
+          "expect": 165,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "put sjst j 0\nsp_bump\nif eq get scpol 5 add j 1",
+            "put sjst j 0\nif eq get scpol 5 add j 1"
+          ],
+          "why": "H: cancelling waiting w3 does not move stat 34: 165"
+        },
+        {
+          "case": "mut397-propose-unchecked",
+          "expect": 170,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne v get scgv 0\nput scgst 4",
+            "if false\nput scgst 4"
+          ],
+          "why": "P: stale proposal accepted, returns 0 not -9: 170"
+        },
+        {
+          "case": "mut397-use-unchecked",
+          "expect": 176,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if and eq get scgv 3 get scgv 0 eq get scgv 4 1\n",
+            "if true\n"
+          ],
+          "why": "P: p3 proposal made stale is used, p3 runs before p2; sjst p3 == 2 fails: 176"
+        },
+        {
+          "case": "mut397-est-ignored",
+          "expect": 181,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne ea eb\nret lt ea eb",
+            "if false\nret lt ea eb"
+          ],
+          "why": "K: equal values, estimate 10 vs 90 not used, older b wins: 181"
+        },
+        {
+          "case": "mut397-incarnation-ignored",
+          "expect": 184,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "put scgv 0 shl n 40\nput scgv 1 get scgv 0",
+            "put scgv 0 0\nput scgv 1 get scgv 0"
+          ],
+          "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"
+        },
+        {
+          "case": "mut397-proposal-fit-unchecked-at-use",
+          "expect": 189,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if eq get sjst j 2\nif sp_fits get sjneed j rq\nput scgst 7",
+            "if eq get sjst j 2\nif true\nput scgst 7"
+          ],
+          "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"
+        },
+        {
+          "case": "mut397-propose-without-incarnation",
+          "expect": 120,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne get scgv 4 1\nput scgst 5 add get scgst 5 1\nret neg long 6",
+            "if false\nput scgst 5 add get scgst 5 1\nret neg long 6"
+          ],
+          "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)."
+        },
+        {
+          "case": "mut397-incarnate-twice",
+          "expect": 121,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne get scgv 4 0\nret neg long 7",
+            "if false\nret neg long 7"
+          ],
+          "why": "Phase X calls sched_incarnate 6 after 5: with the once check gone it returns 0 instead of -7 (121)."
+        },
+        {
+          "case": "mut397-version-carries",
+          "expect": 123,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if eq and get scgv 0 1099511627775 1099511627775\nput scgv 4 2",
+            "if false\nput scgv 4 2"
+          ],
+          "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)."
+        },
+        {
+          "case": "mut397-exhausted-used",
+          "expect": 125,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if and eq get scgv 3 get scgv 0 eq get scgv 4 1",
+            "if eq get scgv 3 get scgv 0"
+          ],
+          "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."
+        },
+        {
+          "case": "mut397-exhausted-no-rescore",
+          "expect": 126,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if and eq get scgv 1 v ne get scgv 4 2",
+            "if eq get scgv 1 v"
+          ],
+          "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)."
+        },
+        {
+          "case": "mut397-ambiguous-id",
+          "expect": 127,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne n 1\nput scgst 5 add get scgst 5 1\nret neg long 3",
+            "if eq n 0\nput scgst 5 add get scgst 5 1\nret neg long 3"
+          ],
+          "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)."
+        }
+      ],
+      "issue": "DRA-397",
+      "statuses": {
+        "DRA-397": "IMPLEMENTED, EXERCISED on native host; not QUALIFIED; not MERGED; not DEPLOYED",
+        "expected_exits": "derived from the check site each mutant targets (field why), before the run; DRA-287/288 mutants carry their original derivations",
+        "gpu": "NOT_RUN (not involved)"
+      }
+    },
+    "cases_sha256": "f429b23dfd33777e117c07f6a18c839ffc99342d3af5a0adb241eefc3ce32b70",
+    "path": "~/handoffs/hive/sched/bin/receipt.py",
+    "sha256": "edf71900d19a79281e14d7ad3db0a7d3265fb74a8ce5b5cb72eb68a97d615b41",
+    "source": "#!/usr/bin/env python3\n\"\"\"Run a scheduler-policy case list against a clean omega-mv checkout and\nwrite a content-addressed receipt (evidence/<dir>/receipt.<sha256>.json).\n\nUsage: receipt.py CASES.json REPO OUTDIR_REL [--write]\nRun it under the queen pool lock, e.g.\n  flock -o ~/handoffs/hive/queen/pool-8-9.lock taskset -c 8-9 nice -n 10 receipt.py ...\n\nA case: {\"case\", \"issue\", \"fragments\": [paths] | \"gate\": path, \"om2\": bool,\n \"mutate\": [path, old, new] or a list of them (optional; each old must\n   occur exactly once in its fragment),\n \"args\": [..], \"expect\": int, \"timeout\": s, \"clean\": [rel dirs removed first],\n \"stdout_has\": [substrings every run must print] (optional),\n \"repeat\": N runs, each must pass (optional, default 1)}.\nThe receipt embeds this script's source and the case list for replay.\nMutants are applied to a disposable copy of the fragment; the checkout is\nnever modified. Verification tooling only: the implementation is the .om.\n\"\"\"\nimport hashlib, json, os, platform, shutil, subprocess, sys, tempfile, time, datetime\n\ndef sh(cmd, cwd, **kw):\n    return subprocess.run(cmd, cwd=cwd, capture_output=True, **kw)\n\ndef sha(path):\n    h = hashlib.sha256()\n    with open(path, 'rb') as f:\n        h.update(f.read())\n    return h.hexdigest()\n\ndef main():\n    cases_path, repo, outrel = sys.argv[1], os.path.abspath(sys.argv[2]), sys.argv[3]\n    write = '--write' in sys.argv\n    spec = json.load(open(cases_path))\n    dirty = sh(['git', 'status', '--porcelain', '--untracked-files=normal'], repo).stdout.decode()\n    dirty = [l for l in dirty.splitlines() if not l[3:].startswith('build/')]\n    if dirty:\n        print('REFUSED: dirty tree\\n' + '\\n'.join(dirty), file=sys.stderr)\n        sys.exit(3)\n    head = sh(['git', 'rev-parse', 'HEAD'], repo).stdout.decode().strip()\n    tree = sh(['git', 'rev-parse', 'HEAD^{tree}'], repo).stdout.decode().strip()\n    omc = os.path.join(repo, 'seed/out/omc')\n    work = tempfile.mkdtemp(prefix='schedrcpt-')\n    files = set()\n    results = []\n    for c in spec['cases']:\n        frags = c.get('fragments') or [c['gate']]\n        src = b'om2\\n' if c.get('om2') else b''\n        mut = c.get('mutate')\n        muts = (mut if mut and isinstance(mut[0], list) else [mut]) if mut else []\n        for m in muts:\n            if m[0] not in frags:\n                print(f'REFUSED: mutant {c[\"case\"]}: {m[0]} is not one of its fragments', file=sys.stderr)\n                sys.exit(4)\n        for fr in frags:\n            files.add(fr)\n            data = open(os.path.join(repo, fr), 'rb').read()\n            for m in muts:\n                if m[0] != fr:\n                    continue\n                old, new = m[1].encode(), m[2].encode()\n                n = data.count(old)\n                if n != 1:\n                    print(f'REFUSED: mutant {c[\"case\"]}: pattern occurs {n} times', file=sys.stderr)\n                    sys.exit(4)\n                data = data.replace(old, new)\n            src += data\n        if c.get('gate') and not mut and c.get('compose'):\n            composed = b''.join(open(os.path.join(repo, f), 'rb').read() for f in c['compose'])\n            if composed != src:\n                print(f'REFUSED: {c[\"gate\"]} is not the concatenation', file=sys.stderr)\n                sys.exit(5)\n        binp = os.path.join(work, c['case'])\n        p = subprocess.run([omc], input=src, capture_output=True)\n        with open(binp, 'wb') as f:\n            f.write(p.stdout)\n        os.chmod(binp, 0o755)\n        r = {'case': c['case'], 'issue': c.get('issue'), 'compile_exit': p.returncode,\n             'expected_exit': c['expect'], 'source_sha256': hashlib.sha256(src).hexdigest()}\n        if muts:\n            ms = [{'file': m[0], 'from': m[1], 'to': m[2]} for m in muts]\n            r['mutation'] = ms[0] if len(ms) == 1 else ms\n        if p.returncode != 0:\n            r.update(run_exit=None, verdict='FAIL', stderr=p.stderr.decode(errors='replace'))\n            results.append(r)\n            continue\n        runs, code, out, err = [], None, b'', b''\n        t0 = time.monotonic()\n        for n in range(c.get('repeat', 1)):\n            for d in c.get('clean', []):\n                shutil.rmtree(os.path.join(repo, d), ignore_errors=True)\n            try:\n                q = subprocess.run([binp] + c.get('args', []), cwd=repo, capture_output=True,\n                                   timeout=c.get('timeout', 120))\n                code, out, err = q.returncode, q.stdout, q.stderr\n            except subprocess.TimeoutExpired as e:\n                code, out, err = 'timeout', e.stdout or b'', e.stderr or b''\n            text = out.decode(errors='replace')\n            miss = [s for s in c.get('stdout_has', []) if s not in text]\n            runs.append({'exit': code, 'missing_stdout': miss})\n        ok = all(x['exit'] == c['expect'] and not x['missing_stdout'] for x in runs)\n        r.update(run_exit=code, wall_ms=int((time.monotonic() - t0) * 1000),\n                 stdout=out.decode(errors='replace')[-4000:],\n                 stderr=err.decode(errors='replace')[-2000:],\n                 binary_sha256=sha(binp),\n                 verdict='PASS' if ok else 'FAIL')\n        if c.get('stdout_has'):\n            r['stdout_has'] = c['stdout_has']\n        if len(runs) > 1:\n            hist = {}\n            for x in runs:\n                k = f\"{x['exit']}{'' if not x['missing_stdout'] else ' missing-stdout'}\"\n                hist[k] = hist.get(k, 0) + 1\n            r['repeat'] = {'runs': len(runs), 'outcomes': hist}\n        results.append(r)\n        print(f\"{r['verdict']} {c['case']} expect={c['expect']} got={code}\"\n              + (f\" runs={r['repeat']['outcomes']}\" if len(runs) > 1 else ''), flush=True)\n    shutil.rmtree(work, ignore_errors=True)\n    rec = {\n        'project': 'P-DRA-14', 'issue': spec['issue'], 'source_commit': head, 'source_tree': tree,\n        'platform': ' '.join([platform.system(), platform.release(), platform.machine(), platform.node()]),\n        'cpu_affinity': sorted(os.sched_getaffinity(0)),\n        'execution': 'NATIVE Linux AArch64 host CPU (DGX Spark host, no GPU opened)',\n        'timestamp_utc': datetime.datetime.now(datetime.timezone.utc).isoformat(),\n        'compiler': {'path': 'seed/out/omc', 'sha256': sha(omc)},\n        'hashes': {f: sha(os.path.join(repo, f)) for f in sorted(files)},\n        'script': {'path': '~/handoffs/hive/sched/bin/receipt.py', 'sha256': sha(__file__),\n                   'source': open(__file__).read(),\n                   'cases_sha256': sha(cases_path), 'cases': spec},\n        'statuses': spec.get('statuses', {}),\n        'checks': results,\n        'summary': {'pass': sum(r['verdict'] == 'PASS' for r in results),\n                    'fail': sum(r['verdict'] != 'PASS' for r in results)},\n    }\n    body = (json.dumps(rec, indent=2, sort_keys=True) + '\\n').encode()\n    digest = hashlib.sha256(body).hexdigest()\n    print(f\"summary pass={rec['summary']['pass']} fail={rec['summary']['fail']} receipt_sha256={digest}\")\n    if write:\n        d = os.path.join(repo, outrel)\n        os.makedirs(d, exist_ok=True)\n        path = os.path.join(d, f'receipt.{digest}.json')\n        with open(path, 'wb') as f:\n            f.write(body)\n        print(path)\n    else:\n        with open(os.path.join(tempfile.gettempdir(), f'sched-receipt-{digest}.json'), 'wb') as f:\n            f.write(body)\n    sys.exit(0 if rec['summary']['fail'] == 0 else 1)\n\nmain()\n"
+  },
+  "source_commit": "7f4e1a4442da5bc2f24d6a33441938a050dd964c",
+  "source_tree": "1e523fdccee5c9caf8efc3c19f877599a9813a37",
+  "statuses": {
+    "DRA-397": "IMPLEMENTED, EXERCISED on native host; not QUALIFIED; not MERGED; not DEPLOYED",
+    "expected_exits": "derived from the check site each mutant targets (field why), before the run; DRA-287/288 mutants carry their original derivations",
+    "gpu": "NOT_RUN (not involved)"
+  },
+  "summary": {
+    "fail": 0,
+    "pass": 57
+  },
+  "timestamp_utc": "2026-11-07T07:36:23.638914+00:00"
+}
diff --git a/evidence/node-schedpol/receipt.e8179d903a210bad04ea5adffe596143d24e5d671230230258b92a8732a0da18.json b/evidence/node-schedpol/receipt.e8179d903a210bad04ea5adffe596143d24e5d671230230258b92a8732a0da18.json
new file mode 100644
index 000000000..a8a09c0c3
--- /dev/null
+++ b/evidence/node-schedpol/receipt.e8179d903a210bad04ea5adffe596143d24e5d671230230258b92a8732a0da18.json
@@ -0,0 +1,1868 @@
+{
+  "checks": [
+    {
+      "binary_sha256": "432d63447766112ea2e79ae1878e2215a23181df9f8016196d813d61515ffd48",
+      "case": "schedpol-gate",
+      "compile_exit": 0,
+      "expected_exit": 0,
+      "issue": "DRA-395",
+      "repeat": {
+        "outcomes": {
+          "0": 10
+        },
+        "runs": 10
+      },
+      "run_exit": 0,
+      "source_sha256": "c6e7a9c5b80e7e5b6734bbeadb22695d9e7b5755fd5b645e0394955b883c7d6b",
+      "stderr": "",
+      "stdout": "schedpol events=110 examined=4631 assigned=10 hol_stops=0 bypasses=4 reservations=1\nPASS node schedpol\n",
+      "stdout_has": [
+        "PASS node schedpol"
+      ],
+      "verdict": "PASS",
+      "wall_ms": 104760
+    },
+    {
+      "binary_sha256": "432d63447766112ea2e79ae1878e2215a23181df9f8016196d813d61515ffd48",
+      "case": "schedpol-gate-fifo",
+      "compile_exit": 0,
+      "expected_exit": 11,
+      "issue": "DRA-396",
+      "repeat": {
+        "outcomes": {
+          "11": 5
+        },
+        "runs": 5
+      },
+      "run_exit": 11,
+      "source_sha256": "c6e7a9c5b80e7e5b6734bbeadb22695d9e7b5755fd5b645e0394955b883c7d6b",
+      "stderr": "",
+      "stdout": "schedpol hol witness head=20050 fits_behind=30050 free_cpu=1 idle_worker=1 hol_stops=40\nschedpol hol witness head=20050 fits_behind=50050 free_cpu=1 idle_worker=1 hol_stops=40\n",
+      "stdout_has": [
+        "schedpol hol witness head=20050 fits_behind=30050 free_cpu=1 idle_worker=1",
+        "schedpol hol witness head=20050 fits_behind=50050 free_cpu=1 idle_worker=1"
+      ],
+      "verdict": "PASS",
+      "wall_ms": 14588
+    },
+    {
+      "binary_sha256": "432d63447766112ea2e79ae1878e2215a23181df9f8016196d813d61515ffd48",
+      "case": "schedpol-gate-noreserve",
+      "compile_exit": 0,
+      "expected_exit": 61,
+      "issue": "DRA-396",
+      "repeat": {
+        "outcomes": {
+          "61": 5
+        },
+        "runs": 5
+      },
+      "run_exit": 61,
+      "source_sha256": "c6e7a9c5b80e7e5b6734bbeadb22695d9e7b5755fd5b645e0394955b883c7d6b",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 34110
+    },
+    {
+      "binary_sha256": "99298a77c8ba5ae9020c2829b063894284e1fe986dd250fdee186662a1a03204",
+      "case": "sched-gate",
+      "compile_exit": 0,
+      "expected_exit": 0,
+      "issue": "DRA-287",
+      "run_exit": 0,
+      "source_sha256": "ed54cc032aa4f6980dfb24cbf25306fbfb1e5aae7b003fb7950da759abdd0738",
+      "stderr": "",
+      "stdout": "idle ticks workers=0 creator=0 wake rounds=200 mean_us=78 max_us=998\nPASS node sched\n",
+      "verdict": "PASS",
+      "wall_ms": 8034
+    },
+    {
+      "binary_sha256": "36f9e677ce246145f9c29bee8efe675e42f59234737e3b1358a4fdd6e7843951",
+      "case": "auth-gate",
+      "compile_exit": 0,
+      "expected_exit": 0,
+      "issue": "DRA-288",
+      "run_exit": 0,
+      "source_sha256": "acc9e461a7d3f738065160a7414a0152818d265cea0274813b89f8b6c0f27782",
+      "stderr": "",
+      "stdout": "PASS node authority\n",
+      "verdict": "PASS",
+      "wall_ms": 771
+    },
+    {
+      "binary_sha256": "ecdb04fe424e64245cc6c48c9741ef448197a2046999254772223686b34374f6",
+      "case": "journal-gate",
+      "compile_exit": 0,
+      "expected_exit": 0,
+      "issue": "DRA-289",
+      "run_exit": 0,
+      "source_sha256": "c2d68845afb7dc19ce4d889abed3eb22b5703709d788608ab2e787c6dab7c40e",
+      "stderr": "",
+      "stdout": "PASS node journal\n",
+      "verdict": "PASS",
+      "wall_ms": 3589
+    },
+    {
+      "binary_sha256": "740d90bf7a3c4dc0719a254d7962168d9dc9083d930308813abf97fab32c31fa",
+      "case": "code-test-unit",
+      "compile_exit": 0,
+      "expected_exit": 0,
+      "issue": "DRA-290",
+      "run_exit": 0,
+      "source_sha256": "0974332d1c56be5cb766d7f428449a4640f868942c053a968f3f02d6ab1d6523",
+      "stderr": "",
+      "stdout": "CWR 0 0 2\n\n\n\nCWE 0 0 2 1\nCWE 0 1002 1 2\nCWR 0 0 2\n\n\n\nCWE 0 0 2 1\nCWO 0 FAIL 11 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 2\nCWO 0 FAIL 10 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 9\nCWO 0 FAIL 10 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWO 0 FAIL 10 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 2\nCWE 0 1013 1 3\nCWR 0 0 2\n\n\n\nCWE 0 0 2 2\nCWE 0 1023 1 3\nCWR 0 0 2\n\n\n\nCWE 0 0 2 2\nCWO 0 FAIL 10 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWO 0 FAIL 13 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWO 0 FAIL 13 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWO 0 FAIL 13 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWO 0 FAIL 13 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWO 0 FAIL 11 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWE 0 1034 1 4\nCWR 0 0 13\nTests passed.\nCWE 0 0 2 4\nCWO 0 FAIL 14 0\nCWR 0 0 13\nTests passed.\nCWE 0 0 2 4\nCWO 0 FAIL 14 0\nCWR 0 0 13\nTests passed.\nCWE 0 0 2 4\nCWE 0 1045 1 5\nCWR 0 0 15\nFile not found.\nCWE 0 0 2 5\nCWO 0 FAIL 10 0\nCWR 0 0 15\nFile not found.\nCWE 0 0 2 5\nCWO 0 PASS 1 0\nCWO 0 FAIL 18 0\nCWO 0 FAIL 18 0\nCWO 0 FAIL 18 0\nCWE 0 0 3 0\nCWE 0 0 3 1\nCWE 0 0 3 2\nCWO 0 FAIL 17 0\nCWE 0 0 3 6\nCWE 0 0 3 6\nCWO 0 FAIL 15 0\nCWE 0 0 3 0\nCWE 0 0 3 4\nCWO 0 FAIL 17 0\nCWR 0 0 2\n\n\n\nCWE 0 0 2 3\nCWE 0 1054 1 4\nCWE 0 0 3 0\nCWE 0 0 3 0\nCWO 0 FAIL 15 0\nCWE 0 0 3 5\nCWO 0 FAIL 13 0\nCWE 0 0 3 0\nCWO 0 PASS 1 0\nCWE 0 0 3 6\nCWO 0 FAIL 15 0\nCWE 0 0 3 0\nCWO 0 FAIL 15 0\nCWO 0 FAIL 12 7\nCWO 0 FAIL 20 0\nCWE 0 1061 1 1\nCWP 0 1 193\nTask: Fix the error in this file and confirm its goal.\nFile: jobs/item76666.om\nGoal: calc starts with x and adds 4 exactly 3 times in a for loop. main calls calc with 70.\nState: unread\nAnswer:\n\ncode checks=54 fail=0\n",
+      "verdict": "PASS",
+      "wall_ms": 33
+    },
+    {
+      "binary_sha256": "4ea01d9c36e57289b37ec7a71c4e21fd3bc58bc324c9138e312acecd0c8f580e",
+      "case": "mut-impossible-admitted",
+      "compile_exit": 0,
+      "expected_exit": 31,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if not sp_feas req\n",
+        "to": "if false\n"
+      },
+      "run_exit": 31,
+      "source_sha256": "5bf76a1e9493d59c9d77598fab2956c995693a9b8fcda593de559e0866561fd6",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 1
+    },
+    {
+      "binary_sha256": "6509fd931449cdfca3288875387f1eb352cbfcb046ba6d25568648d17c92d92f",
+      "case": "mut-collect-no-release",
+      "compile_exit": 0,
+      "expected_exit": 133,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "j = sub b 1\nsp_give j\n",
+        "to": "j = sub b 1\n"
+      },
+      "run_exit": 133,
+      "source_sha256": "39b875265ed41af55d6565f5f887157b8162dfa42677667156eecb6aef8793fa",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 415
+    },
+    {
+      "binary_sha256": "58bf46e72658427bac7f3bd0305ad31fad0a2973e012303d2e9ae7e1630bef54",
+      "case": "mut-capacity-ignored",
+      "compile_exit": 0,
+      "expected_exit": 44,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if gt sp_need req k a\n",
+        "to": "if false\n"
+      },
+      "run_exit": 44,
+      "source_sha256": "94f192955d6b05a7ff31a234c537137e7e4819649492818f7c226b7bde9a9a88",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 436
+    },
+    {
+      "binary_sha256": "6d90c86040fc3a2554fd23a05adf90f056ad5253ddb55d1819a6174ecfcd0d36",
+      "case": "mut-ready-unstamped",
+      "compile_exit": 0,
+      "expected_exit": 54,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne and get sjdep j topics 0\nsp_ready j\n",
+        "to": "if ne and get sjdep j topics 0\nput sjst j 2\n"
+      },
+      "run_exit": 54,
+      "source_sha256": "030e78b43d4daf0ce4b265c879705b7445afb631cb3e67ba38df312f855c33cf",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 1008
+    },
+    {
+      "binary_sha256": "48ae87663615548b2b0f96a81a468129232220cd4e5bd2cf6c1cc5c173b166d3",
+      "case": "mut-give-after-review",
+      "compile_exit": 0,
+      "expected_exit": 122,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "j = sub b 1\nsp_give j\nif ge sched_count 4 4 get sclim 1\ncontinue\nend\n",
+        "to": "j = sub b 1\nif ge sched_count 4 4 get sclim 1\ncontinue\nend\nsp_give j\n"
+      },
+      "run_exit": 122,
+      "source_sha256": "eebfc3265ae1facfc48bab32a7c81eaf7c85381e5be92e63587f87c1f65f915a",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 889
+    },
+    {
+      "binary_sha256": "2278dc33f2b89ff6d82837d56b8ba458aae6e2278a058c704cfa9eeddbf5db9d",
+      "case": "mut-no-take",
+      "compile_exit": 0,
+      "expected_exit": 130,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "end\nsp_take j\nif eq get scpol 5 add j 1\n",
+        "to": "end\nif eq get scpol 5 add j 1\n"
+      },
+      "run_exit": 130,
+      "source_sha256": "fec6a2ca2b08c12b9f4316964a847bfaeced4aed18aec704982304b9d10df68b",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 11
+    },
+    {
+      "binary_sha256": "4e5005bbef04d2e180f10aca69b21853a4895ac91449a853cb0e197e3d08c10f",
+      "case": "mut-cap-below-use",
+      "compile_exit": 0,
+      "expected_exit": 131,
+      "issue": "DRA-395",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if lt sp_need caps k get suse k\n",
+        "to": "if false\n"
+      },
+      "run_exit": 131,
+      "source_sha256": "0298a96625fff4bfe8a2dc0ebc459fc8586347a2b08b4904f67adf0d9e273aba",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 11
+    },
+    {
+      "binary_sha256": "f0f5ad92fa06b4296821f0dfd21add9215228c646c1ba8ba081d38f9246c8692",
+      "case": "mut287-wake-all",
+      "compile_exit": 0,
+      "expected_exit": 16,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne and sc_cell w 32 topics 0\n",
+        "to": "if true\n"
+      },
+      "run_exit": 16,
+      "source_sha256": "44d88a12e0b8bd951cdead5a5284ad20f728be5fefe8913f518dc5ebdfb141d6",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 606
+    },
+    {
+      "binary_sha256": "239e15e6ba8145cba908b039ea94bbd603a0fae32aec85ba061aae0bf20c3d0a",
+      "case": "mut287-no-wake",
+      "compile_exit": 0,
+      "expected_exit": 34,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "sc_set w 0 q\nsc_wake w\n",
+        "to": "sc_set w 0 q\n"
+      },
+      "run_exit": 34,
+      "source_sha256": "1d151395482b43e9127bc3bb66cf8f2c038b0005004ab07e6e16fa7d3a323d9c",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 6325
+    },
+    {
+      "binary_sha256": "4d3091dc97bbff6ff840fa75383331eb5883c0f063692044c766a47483d3a507",
+      "case": "mut287-review-unbounded",
+      "compile_exit": 0,
+      "expected_exit": 50,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ge sched_count 4 4 get sclim 1\n",
+        "to": "if false\n"
+      },
+      "run_exit": 50,
+      "source_sha256": "9a9a91d7c0cdd17c317b4a1d76f49b9c10f3961621c85ebb01b948068478c5d9",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 3347
+    },
+    {
+      "binary_sha256": "43bf328939c3c8a2d195e4224df3dd82119d27ae77cb24017ff09aa7a3c5b3f9",
+      "case": "mut287-admit-unbounded",
+      "compile_exit": 0,
+      "expected_exit": 48,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "room = ulong 0\nif lt a get sclim 0\nroom = sub get sclim 0 a\nend\n",
+        "to": "room = ulong 64\n"
+      },
+      "run_exit": 48,
+      "source_sha256": "99faaae57ef71a764333f12b267f73b5cbc1148196ab3e0d14239c41ab2e8470",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 2845
+    },
+    {
+      "binary_sha256": "d4809a7a62254b95083b21bdba8d49582f9de1eeaaf2ff0aa66153899e80ae1c",
+      "case": "mut287-unknown-rerun",
+      "compile_exit": 0,
+      "expected_exit": 83,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put sjst j 6\n",
+        "to": "put sjst j 2\n"
+      },
+      "run_exit": 83,
+      "source_sha256": "eabb6a79db87ca256a8d7b2739dd26181313521e45632131376b8f264c456f9f",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 6773
+    },
+    {
+      "binary_sha256": "7839dcff54668e18bc08375a361f89b49581151ff810c6ff6e2400841bc2f497",
+      "case": "mut287-lost-no-ack",
+      "compile_exit": 0,
+      "expected_exit": 92,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "sc_set w 64 get scseq w\n",
+        "to": ""
+      },
+      "run_exit": 92,
+      "source_sha256": "4253b5ce8505315bbeafab5dcaf796a8bc0fb42f4085574d6dd341be9068391d",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 5287
+    },
+    {
+      "binary_sha256": "de465f9d5749b05613095457a6b0b74a212cadbd4f632fa20b6687d4ff73c33e",
+      "case": "mut287-deps-ignored",
+      "compile_exit": 0,
+      "expected_exit": 68,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put sjst j 1\n",
+        "to": "put sjst j 2\n"
+      },
+      "run_exit": 68,
+      "source_sha256": "8faf677d23f561b937ff7f0a9a3d5c9ca9b7f5af9fd9c752a437ccea7f26c369",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 3422
+    },
+    {
+      "binary_sha256": "9de1a2c8517954ae40c84b7a5bd65bce6490bb2cabeabcb1946c3fd1577a3ed4",
+      "case": "mut287-super-spin",
+      "compile_exit": 0,
+      "expected_exit": 138,
+      "issue": "DRA-287",
+      "mutation": {
+        "file": "seed/node/super.om",
+        "from": "iv = interval\n",
+        "to": "iv = long 0\n"
+      },
+      "run_exit": 138,
+      "source_sha256": "57c1734ddf333bdd5ad0803e8e467bb91c15e03a71eebc50e38a7e1900691e57",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 2212
+    },
+    {
+      "binary_sha256": "9a3ad08c30f7e420a50636f4e574966e2c8b19d308761d1caf46645f101b9357",
+      "case": "mut288-pause-ignored",
+      "compile_exit": 0,
+      "expected_exit": 121,
+      "issue": "DRA-288",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne get scpause 0 0\n",
+        "to": "if false\n"
+      },
+      "run_exit": 121,
+      "source_sha256": "d7326de8ee27618c941cdc1e0f138bb2bf2bb599a3fbeb3021bebb9c761a0917",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 756
+    },
+    {
+      "binary_sha256": "36bbaf66b42e22d94b13ef5c2437472034dd7533e991d1feb78cf94675157c51",
+      "case": "mut396-cursor-stuck",
+      "compile_exit": 0,
+      "expected_exit": 15,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put scpol 4 rem add cur win 64\n",
+        "to": ""
+      },
+      "run_exit": 15,
+      "source_sha256": "49fc26307128d1f690299cfe8dc524b9edbd553dbd40376aeeab98b7ffb9ff5f",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 7168
+    },
+    {
+      "binary_sha256": "0b4704ccc26aeabe9f825c291d1fa4d7db42a57b7727b5672e127715596e8a9d",
+      "case": "mut396-tickets-ignored",
+      "compile_exit": 0,
+      "expected_exit": 75,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if eq get scpol 6 0\nret true\n",
+        "to": "if true\nret true\n"
+      },
+      "run_exit": 75,
+      "source_sha256": "32ee1a468e26023966fcae444c22f1709192fb7690892f68cdad06444024d7ef",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4567 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 4330
+    },
+    {
+      "binary_sha256": "92256de47f57357637bb0a9c96a6d914a34aa20d9463cbd2f0e06c0f35182b55",
+      "case": "mut396-no-holdback",
+      "compile_exit": 0,
+      "expected_exit": 61,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "rq = get sjneed rj\n",
+        "to": "rq = ulong 0\n"
+      },
+      "run_exit": 61,
+      "source_sha256": "d0fdae93fb69de2cfcc06feadf3ce4d732a71219eb58bb6a2ae28122e888ac09",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 6837
+    },
+    {
+      "binary_sha256": "12b430081475bc3a4e60b769042ddf5dfc46b63808d4ccbcaf1bfbc86e1fb354",
+      "case": "mut396-never-reserve",
+      "compile_exit": 0,
+      "expected_exit": 61,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put scpol 5 add o 1\n",
+        "to": ""
+      },
+      "run_exit": 61,
+      "source_sha256": "b1d34abbd021aa99e1e5854a2411349ded1117b6121eaa75641c6c6918e7ff9d",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 6836
+    },
+    {
+      "binary_sha256": "a850b2cf6ff49d47016de97b01282eb6b09f3da9f1ba7976cdd51892090db4a2",
+      "case": "mut396-lease-never",
+      "compile_exit": 0,
+      "expected_exit": 82,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ge now d\n",
+        "to": "if false\n"
+      },
+      "run_exit": 82,
+      "source_sha256": "f5f284f08de76127f0d89d94f4e389693d03fca0d5b89074628769a2f5749fbd",
+      "stderr": "",
+      "stdout": "schedpol events=110 examined=4567 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 7768
+    },
+    {
+      "binary_sha256": "458043be6ce282a2dfff9de7c9c98194942a9015f51cbcf06e8a1bf9b805f02c",
+      "case": "mut396-cancel-keeps-reserve",
+      "compile_exit": 0,
+      "expected_exit": 94,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put sjst j 0\nsp_bump\nif eq get scpol 5 add j 1\nput scpol 5 0\nend\n",
+        "to": "put sjst j 0\nsp_bump\n"
+      },
+      "run_exit": 94,
+      "source_sha256": "6ef793082dd711c2e7ea11541f18be5202eb7935effddea5a1a4af665f02f1c4",
+      "stderr": "",
+      "stdout": "schedpol events=110 examined=4631 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 6580
+    },
+    {
+      "binary_sha256": "21b14bff88b026cceab23a35fef693f6b2d845e8a36b99b5bd8df1dab56ce335",
+      "case": "mut396-window-ignored",
+      "compile_exit": 0,
+      "expected_exit": 9,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "for i ulong win bound 64\n",
+        "to": "for i ulong 64 bound 64\n"
+      },
+      "run_exit": 9,
+      "source_sha256": "a6677f78253249ed00c564fd18358fbd79a4751d154dc704de19f53b11d7960b",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4567 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 7169
+    },
+    {
+      "binary_sha256": "b3c50b0e1b0c4d0351446da316dd729fadbe3220a2ae2e8aefa29956eb8589fa",
+      "case": "mut396-tickets-never-lapse",
+      "compile_exit": 0,
+      "expected_exit": 80,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if lt add get stts t get scpol 7 get scst 2\n",
+        "to": "if false\n"
+      },
+      "run_exit": 80,
+      "source_sha256": "245a1ca03feb3adcde348142057ca2b386dd2baa04a143adf2a7328053d19f37",
+      "stderr": "",
+      "stdout": "schedpol events=108 examined=4502 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 5047
+    },
+    {
+      "binary_sha256": "3434286f9c2309a99d012afb9660aa6ea8d097df45eb59bf6786d4c7447bbe1e",
+      "case": "mut396-cursor-by-one",
+      "compile_exit": 0,
+      "expected_exit": 15,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put scpol 4 rem add cur win 64\n",
+        "to": "put scpol 4 rem add cur 1 64\n"
+      },
+      "run_exit": 15,
+      "source_sha256": "efd43779e9a346d21d9ba2f06497d64867d17d3c593d4ee11b3105c0aa7afa7f",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 11
+    },
+    {
+      "binary_sha256": "d45da42c925a3a111425bf93682ab180d4a7d8c4ab6497db445bfd47fad03c74",
+      "case": "mut396-holders-by-room",
+      "compile_exit": 0,
+      "expected_exit": 105,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if eq t 0\nret true",
+        "to": "if lt t room\nret true"
+      },
+      "run_exit": 105,
+      "source_sha256": "37fb1ba922b30b8d29e21f85e4c41509b1d7de55f6e08c08a7aefa8a676deb81",
+      "stderr": "",
+      "stdout": "schedpol events=108 examined=4502 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 8150
+    },
+    {
+      "binary_sha256": "068e0061a899cb1c4eba12dc33afd887e51fbd5b1380d105cddb6bdf268f3ac7",
+      "case": "mut396-room-ignores-slots",
+      "compile_exit": 0,
+      "expected_exit": 191,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if lt fs room\nroom = fs\n",
+        "to": "if false\nroom = fs\n"
+      },
+      "run_exit": 191,
+      "source_sha256": "6fbd6804c633bc978e10c10305e71416d3726b71684a435af1d48af345584492",
+      "stderr": "",
+      "stdout": "schedpol events=110 examined=4567 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 8330
+    },
+    {
+      "binary_sha256": "3fd6ac95c4ce6df351c6ac0d106197271c4fb21f66a59558a9ead69cab2923f2",
+      "case": "mut396-lease-early",
+      "compile_exit": 0,
+      "expected_exit": 83,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ge now d\n",
+        "to": "if ge add now 100000000 d\n"
+      },
+      "run_exit": 83,
+      "source_sha256": "aabc6b49dedb2e7e68b0f67e690a88532efb2511a4a5229e7461852416748459",
+      "stderr": "",
+      "stdout": "schedpol events=110 examined=4631 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 5861
+    },
+    {
+      "binary_sha256": "ee1622e966dc0eb0e5ca890a868370ed420bc3d3c3b97c9f2939561e30173c41",
+      "case": "mut396-jn-room-before-dup",
+      "compile_exit": 0,
+      "expected_exit": 170,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/journal.om",
+        "from": "if ge jn_jfind id 0\nret neg long 4\nend\nif not sched_room id\nret neg long 2\nend\n",
+        "to": "if not sched_room id\nret neg long 2\nend\nif ge jn_jfind id 0\nret neg long 4\nend\n"
+      },
+      "run_exit": 170,
+      "source_sha256": "992fdd1dff83ed3d7a24c1bc4df963749cc8e4310336b3794f2305b1d93e8a52",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 3326
+    },
+    {
+      "binary_sha256": "f8af5d9a9456e4351a8af2e94e6e6d2afb595c1a231557ecd73184b9c8babc00",
+      "case": "mut396-jn-no-room-check",
+      "compile_exit": 0,
+      "expected_exit": 173,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/journal.om",
+        "from": "if not sched_room id\nret neg long 2\nend\nif ne jn_rec 2 id deps flags 0\n",
+        "to": "if ne jn_rec 2 id deps flags 0\n"
+      },
+      "run_exit": 173,
+      "source_sha256": "8240772a9bbdfff2c43ec12c0dd38d45593ceab6d53edfabc6e5ddb12fb853f6",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 3264
+    },
+    {
+      "binary_sha256": "5cc7fe6f6327042ebd95bc878ff0d871002eafea4c6e71a8c75d55f4a561d249",
+      "case": "mut396-jn-no-room-check-c17",
+      "compile_exit": 0,
+      "expected_exit": 175,
+      "issue": "DRA-396",
+      "mutation": [
+        {
+          "file": "seed/node/journal.om",
+          "from": "if not sched_room id\nret neg long 2\nend\nif ne jn_rec 2 id deps flags 0\n",
+          "to": "if ne jn_rec 2 id deps flags 0\n"
+        },
+        {
+          "file": "seed/node/journal-test.om",
+          "from": "jt_c16\njt_c17\n",
+          "to": "jt_c17\n"
+        }
+      ],
+      "run_exit": 175,
+      "source_sha256": "b52f523b493deb872428eb73252af8eafaaba565832f53f146e0f7c8d7605bfa",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 3523
+    },
+    {
+      "binary_sha256": "35696d67421ead7412c529942d0b3a5f2de8d6684ae1d2a74e6711ebffd5fa59",
+      "case": "mut396-fifo-overcount",
+      "compile_exit": 0,
+      "expected_exit": 9,
+      "issue": "DRA-396",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "for j ulong 64\nput scst 3 add get scst 3 1\n",
+        "to": "for j ulong 64\nput scst 3 add get scst 3 3\n"
+      },
+      "run_exit": 9,
+      "source_sha256": "79242d18e3b1665d454b4d783eda71f92f03dc5ad0ab1b425208c34786d2bc0c",
+      "stderr": "",
+      "stdout": "",
+      "verdict": "PASS",
+      "wall_ms": 12
+    },
+    {
+      "binary_sha256": "432d63447766112ea2e79ae1878e2215a23181df9f8016196d813d61515ffd48",
+      "case": "schedpol-gate-goal",
+      "compile_exit": 0,
+      "expected_exit": 0,
+      "issue": "DRA-397",
+      "repeat": {
+        "outcomes": {
+          "0": 10
+        },
+        "runs": 10
+      },
+      "run_exit": 0,
+      "source_sha256": "c6e7a9c5b80e7e5b6734bbeadb22695d9e7b5755fd5b645e0394955b883c7d6b",
+      "stderr": "",
+      "stdout": "schedpol events=110 examined=4631 assigned=10 hol_stops=0 bypasses=4 reservations=1\nPASS node schedpol\n",
+      "stdout_has": [
+        "PASS node schedpol"
+      ],
+      "verdict": "PASS",
+      "wall_ms": 104753
+    },
+    {
+      "binary_sha256": "dcaeaabbbd706f2c4a1cc1aaa71b831312a1caf848b94edf0911d654946b451b",
+      "case": "mut397-goal-off",
+      "compile_exit": 0,
+      "expected_exit": 151,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "fn sp_better goal bool a ulong b ulong to bool\nif goal\n",
+        "to": "fn sp_better goal bool a ulong b ulong to bool\nif false\n"
+      },
+      "run_exit": 151,
+      "source_sha256": "e7f0e14238b4759f8f8174412aa153abf1fb4326761c89b91c7ba89ecb72ae21",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4502 assigned=10 hol_stops=0 bypasses=4 reservations=1\nschedpol goal trace 220050 230050 250050 240050 260050 280050 270050 290050 300050 310050 \n",
+      "verdict": "PASS",
+      "wall_ms": 9666
+    },
+    {
+      "binary_sha256": "699db53eb377ef6f691ca5e663cd76adc8c7e8ced9f3ef437ffa338b1565a5e1",
+      "case": "mut397-depth2-removed",
+      "compile_exit": 0,
+      "expected_exit": 151,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne and get sjdep k p2 0\nn = add n 1",
+        "to": "if false\nn = add n 1"
+      },
+      "run_exit": 151,
+      "source_sha256": "745f0ee4dce98fddeb150948ce7ab7676518e82e207c4a94aa30a442dd4c326e",
+      "stderr": "",
+      "stdout": "schedpol events=110 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\nschedpol goal trace 280050 230050 250050 220050 260050 240050 270050 290050 300050 310050 \n",
+      "verdict": "PASS",
+      "wall_ms": 9682
+    },
+    {
+      "binary_sha256": "5603f66e4e39deeb5b72e7e04e94e142908561343b9af5f581d2ac7178b0697f",
+      "case": "mut397-always-rescore",
+      "compile_exit": 0,
+      "expected_exit": 162,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if eq get scgv 1 v\nret\nend\n",
+        "to": ""
+      },
+      "run_exit": 162,
+      "source_sha256": "fa09653f5c33232096e73253ce27f6c7eb14243fd8ed55d9a4b7ebbfa12199d4",
+      "stderr": "",
+      "stdout": "schedpol events=110 examined=4567 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 10214
+    },
+    {
+      "binary_sha256": "6c2feed68d5f2b931f1f464fa68c6d109260a919f0a154e8cfc806943fb954cd",
+      "case": "mut397-ready-no-bump",
+      "compile_exit": 0,
+      "expected_exit": 151,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put scst 1 add get scst 1 1\nsp_bump\n",
+        "to": "put scst 1 add get scst 1 1\n"
+      },
+      "run_exit": 151,
+      "source_sha256": "347b97039531a25ad0720bae20e70ba3ca4b3808a014d538a5b5d5a686c904e3",
+      "stderr": "",
+      "stdout": "schedpol events=110 examined=4567 assigned=10 hol_stops=0 bypasses=4 reservations=1\nschedpol goal trace 280050 250050 230050 220050 240050 290050 300050 310050 260050 270050 \n",
+      "verdict": "PASS",
+      "wall_ms": 9625
+    },
+    {
+      "binary_sha256": "3c10ec893c25485698ec93ac77b55fd82d851ef727a01062bfa198bbe9b99667",
+      "case": "mut397-waiting-no-bump",
+      "compile_exit": 0,
+      "expected_exit": 160,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put sjst j 1\nsp_bump\n",
+        "to": "put sjst j 1\n"
+      },
+      "run_exit": 160,
+      "source_sha256": "55afa05e93b0f45266cd80e006135cb08f8529b9d407c1f33c76827419b6fae0",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4502 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 10161
+    },
+    {
+      "binary_sha256": "ad85a4f42b4376b4a6f9e8f6626e5344fc8cf5a1fb31a260f3e7bf69614c8c55",
+      "case": "mut397-cancel-no-bump",
+      "compile_exit": 0,
+      "expected_exit": 165,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "put sjst j 0\nsp_bump\nif eq get scpol 5 add j 1",
+        "to": "put sjst j 0\nif eq get scpol 5 add j 1"
+      },
+      "run_exit": 165,
+      "source_sha256": "4863e4ea573c9183921c0213c483b5e019c3df188e109e6aceec90b8fc77649f",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 10216
+    },
+    {
+      "binary_sha256": "e03493dad4c70beb9eff3b06ca65578d149e9aeeaa6bebd16c1ebbd7049b6ed8",
+      "case": "mut397-propose-unchecked",
+      "compile_exit": 0,
+      "expected_exit": 170,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne v get scgv 0\nput scgst 4",
+        "to": "if false\nput scgst 4"
+      },
+      "run_exit": 170,
+      "source_sha256": "4803a8007095c99040b2f6f007e662b679aa16fc47e0e3a595233a727c34f20d",
+      "stderr": "",
+      "stdout": "schedpol events=109 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 10332
+    },
+    {
+      "binary_sha256": "56cfa39f95e7762a1b70f157728a9536c2fe13324de9478954c6b0a98904e2d6",
+      "case": "mut397-use-unchecked",
+      "compile_exit": 0,
+      "expected_exit": 176,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if eq get scgv 3 get scgv 0\n",
+        "to": "if true\n"
+      },
+      "run_exit": 176,
+      "source_sha256": "03a0afd5031be5f0bb64989b59f1733f41076bda084c3eb97b0b5b037c838a7f",
+      "stderr": "",
+      "stdout": "schedpol events=110 examined=4566 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 10404
+    },
+    {
+      "binary_sha256": "ec5edc4b10b594b8602b4a2e846ab9633abdaf3d7721f942d1eec945634c7735",
+      "case": "mut397-est-ignored",
+      "compile_exit": 0,
+      "expected_exit": 181,
+      "issue": "DRA-397",
+      "mutation": {
+        "file": "seed/node/sched.om",
+        "from": "if ne ea eb\nret lt ea eb",
+        "to": "if false\nret lt ea eb"
+      },
+      "run_exit": 181,
+      "source_sha256": "a604f09d86ea3b7336018224b657136f9a66b1c58316df8a82d08a107f2072f0",
+      "stderr": "",
+      "stdout": "schedpol events=108 examined=4502 assigned=10 hol_stops=0 bypasses=4 reservations=1\n",
+      "verdict": "PASS",
+      "wall_ms": 10449
+    }
+  ],
+  "compiler": {
+    "path": "seed/out/omc",
+    "sha256": "5f90edea61bac241398df5036990d899361a5acd9decb37954ce088ec0f6f6df"
+  },
+  "cpu_affinity": [
+    12,
+    13,
+    14
+  ],
+  "execution": "NATIVE Linux AArch64 host CPU (DGX Spark host, no GPU opened)",
+  "hashes": {
+    "seed/authority/action.om": "59cb9c3dfdcd9193bc4a272deda4fcd256a0d7693f3bcb58bc4e30ed78faab2b",
+    "seed/node/auth-gate.om": "acc9e461a7d3f738065160a7414a0152818d265cea0274813b89f8b6c0f27782",
+    "seed/node/auth-test.om": "af66c87f83d73a5bdbaf181378eb69bb0645a86fe9b39de2f1b714041fbc20b8",
+    "seed/node/auth.om": "edf2f075d3751a8025363bc658252537f865dfc29f975fcf5d93c353b3282b30",
+    "seed/node/code-test.om": "df87a21e31f38d85ab9145af3fb18bafc52144a20aed0d9fbad60f6059ddacd0",
+    "seed/node/code.om": "aa9f8463fbe9534626c205e991e3a2170a25cbf91a106932ec399353583c0bf7",
+    "seed/node/gram.om": "ebba1f4c693f218969dc2f17eb680760977d38d694ac76db477853aefa64b291",
+    "seed/node/journal-gate.om": "c2d68845afb7dc19ce4d889abed3eb22b5703709d788608ab2e787c6dab7c40e",
+    "seed/node/journal-test.om": "58547e87068911e009fa2f99c8b995249acc6113e21c692bf2e74ec8238ea011",
+    "seed/node/journal.om": "b8f970d02b3f752d217f61b601817d5abc5a8c22fd2288544af15a18f628feac",
+    "seed/node/pool.om": "e7fba928bdc5c4194e7aee42109265de4f172d2b197946133d788b2dbcb30ccc",
+    "seed/node/sched-gate.om": "ed54cc032aa4f6980dfb24cbf25306fbfb1e5aae7b003fb7950da759abdd0738",
+    "seed/node/sched-test.om": "29a3587d35a217403c63395eb2b11b4992727812af66512be3e452ea6381a545",
+    "seed/node/sched.om": "6fd6205a183e209a105fd9b518f0a7b91e55219938fa737316eb5535fe8efee8",
+    "seed/node/schedpol-gate.om": "c6e7a9c5b80e7e5b6734bbeadb22695d9e7b5755fd5b645e0394955b883c7d6b",
+    "seed/node/schedpol-test.om": "4b966114217f4cfe651656bc61930b420d806576594d2db64f476f6f76877aac",
+    "seed/node/super.om": "d104ac8116c6df57fdc93f03791d7315e5b60875d8d6177480ef9967b6f53d5a",
+    "seed/node/transport.om": "d0dd69ef5e0b71294a2390b3526865d62ca07accd269b9ce57a028339e34f6da"
+  },
+  "issue": "DRA-397",
+  "platform": "Linux 7.0.0-1019-nvidia aarch64 spark-b87b",
+  "project": "P-DRA-14",
+  "script": {
+    "cases": {
+      "cases": [
+        {
+          "case": "schedpol-gate",
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "expect": 0,
+          "gate": "seed/node/schedpol-gate.om",
+          "issue": "DRA-395",
+          "repeat": 10,
+          "stdout_has": [
+            "PASS node schedpol"
+          ],
+          "timeout": 120
+        },
+        {
+          "args": [
+            "fifo"
+          ],
+          "case": "schedpol-gate-fifo",
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "expect": 11,
+          "gate": "seed/node/schedpol-gate.om",
+          "issue": "DRA-396",
+          "repeat": 5,
+          "stdout_has": [
+            "schedpol hol witness head=20050 fits_behind=30050 free_cpu=1 idle_worker=1",
+            "schedpol hol witness head=20050 fits_behind=50050 free_cpu=1 idle_worker=1"
+          ],
+          "timeout": 120
+        },
+        {
+          "args": [
+            "noreserve"
+          ],
+          "case": "schedpol-gate-noreserve",
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "expect": 61,
+          "gate": "seed/node/schedpol-gate.om",
+          "issue": "DRA-396",
+          "repeat": 5,
+          "timeout": 120
+        },
+        {
+          "case": "sched-gate",
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "expect": 0,
+          "gate": "seed/node/sched-gate.om",
+          "issue": "DRA-287"
+        },
+        {
+          "case": "auth-gate",
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/auth-test.om"
+          ],
+          "expect": 0,
+          "gate": "seed/node/auth-gate.om",
+          "issue": "DRA-288"
+        },
+        {
+          "case": "journal-gate",
+          "clean": [
+            "build/node/jt"
+          ],
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/journal-test.om"
+          ],
+          "expect": 0,
+          "gate": "seed/node/journal-gate.om",
+          "issue": "DRA-289"
+        },
+        {
+          "args": [
+            "unit",
+            "build/node/cu"
+          ],
+          "case": "code-test-unit",
+          "clean": [
+            "build/node/cu"
+          ],
+          "expect": 0,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/gram.om",
+            "seed/node/code.om",
+            "seed/node/code-test.om"
+          ],
+          "issue": "DRA-290",
+          "om2": true
+        },
+        {
+          "case": "mut-impossible-admitted",
+          "expect": 31,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "if not sp_feas req\n",
+            "if false\n"
+          ],
+          "why": "C: impossible request admitted; check sched_admitr == -8 code 31"
+        },
+        {
+          "case": "mut-collect-no-release",
+          "expect": 133,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "j = sub b 1\nsp_give j\n",
+            "j = sub b 1\n"
+          ],
+          "why": "C: jobs reviewed still hold; pt_inv in pt_drain code 133"
+        },
+        {
+          "case": "mut-capacity-ignored",
+          "expect": 44,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "if gt sp_need req k a\n",
+            "if false\n"
+          ],
+          "why": "D: use exceeds capacity; pt_inv in pt_drain code 44"
+        },
+        {
+          "args": [
+            "fifo"
+          ],
+          "case": "mut-ready-unstamped",
+          "expect": 54,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne and get sjdep j topics 0\nsp_ready j\n",
+            "if ne and get sjdep j topics 0\nput sjst j 2\n"
+          ],
+          "why": "F under fifo: ready order wrong, y not first; code 54"
+        },
+        {
+          "case": "mut-give-after-review",
+          "expect": 122,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "j = sub b 1\nsp_give j\nif ge sched_count 4 4 get sclim 1\ncontinue\nend\n",
+            "j = sub b 1\nif ge sched_count 4 4 get sclim 1\ncontinue\nend\nsp_give j\n"
+          ],
+          "why": "V: second CPU not released while review full; suse==0 code 122"
+        },
+        {
+          "case": "mut-no-take",
+          "expect": 130,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "end\nsp_take j\nif eq get scpol 5 add j 1\n",
+            "end\nif eq get scpol 5 add j 1\n"
+          ],
+          "why": "C: running unfinished job holds nothing; pt_inv in pt_until code 130"
+        },
+        {
+          "case": "mut-cap-below-use",
+          "expect": 131,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-395",
+          "mutate": [
+            "seed/node/sched.om",
+            "if lt sp_need caps k get suse k\n",
+            "if false\n"
+          ],
+          "why": "C: sched_cap below use accepted; == -8 code 131"
+        },
+        {
+          "case": "mut287-wake-all",
+          "expect": 16,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne and sc_cell w 32 topics 0\n",
+            "if true\n"
+          ]
+        },
+        {
+          "case": "mut287-no-wake",
+          "expect": 34,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "sc_set w 0 q\nsc_wake w\n",
+            "sc_set w 0 q\n"
+          ]
+        },
+        {
+          "case": "mut287-review-unbounded",
+          "expect": 50,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ge sched_count 4 4 get sclim 1\n",
+            "if false\n"
+          ]
+        },
+        {
+          "case": "mut287-admit-unbounded",
+          "expect": 48,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "room = ulong 0\nif lt a get sclim 0\nroom = sub get sclim 0 a\nend\n",
+            "room = ulong 64\n"
+          ],
+          "why": "DRA-287 sched-gate admission-limit check: headroom ignored, admissions beyond the limit; 48 (pattern moved with the DRA-396 room rewrite)"
+        },
+        {
+          "case": "mut287-unknown-rerun",
+          "expect": 83,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "put sjst j 6\n",
+            "put sjst j 2\n"
+          ]
+        },
+        {
+          "case": "mut287-lost-no-ack",
+          "expect": 92,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "sc_set w 64 get scseq w\n",
+            ""
+          ]
+        },
+        {
+          "case": "mut287-deps-ignored",
+          "expect": 68,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/sched.om",
+            "put sjst j 1\n",
+            "put sjst j 2\n"
+          ]
+        },
+        {
+          "args": [
+            "idle"
+          ],
+          "case": "mut287-super-spin",
+          "expect": 138,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/sched-test.om"
+          ],
+          "issue": "DRA-287",
+          "mutate": [
+            "seed/node/super.om",
+            "iv = interval\n",
+            "iv = long 0\n"
+          ]
+        },
+        {
+          "case": "mut288-pause-ignored",
+          "expect": 121,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/auth-test.om"
+          ],
+          "issue": "DRA-288",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne get scpause 0 0\n",
+            "if false\n"
+          ]
+        },
+        {
+          "case": "mut396-cursor-stuck",
+          "expect": 15,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "put scpol 4 rem add cur win 64\n",
+            ""
+          ],
+          "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"
+        },
+        {
+          "case": "mut396-tickets-ignored",
+          "expect": 75,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "if eq get scpol 6 0\nret true\n",
+            "if true\nret true\n"
+          ],
+          "why": "Q: with room, Y asking before ticket holder X is admitted; code 75"
+        },
+        {
+          "case": "mut396-no-holdback",
+          "expect": 61,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "rq = get sjneed rj\n",
+            "rq = ulong 0\n"
+          ],
+          "why": "S: smalls refill freed CPU, big never runs; first check code 61"
+        },
+        {
+          "case": "mut396-never-reserve",
+          "expect": 61,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "put scpol 5 add o 1\n",
+            ""
+          ],
+          "why": "S: no reservation, big never runs; first check code 61"
+        },
+        {
+          "case": "mut396-lease-never",
+          "expect": 82,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ge now d\n",
+            "if false\n"
+          ],
+          "why": "L: sched_overdue never reports; eq o h code 82"
+        },
+        {
+          "case": "mut396-cancel-keeps-reserve",
+          "expect": 94,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "put sjst j 0\nsp_bump\nif eq get scpol 5 add j 1\nput scpol 5 0\nend\n",
+            "put sjst j 0\nsp_bump\n"
+          ],
+          "why": "R: reservation survives cancel; sched_stat 29 == 0 code 94"
+        },
+        {
+          "case": "mut396-window-ignored",
+          "expect": 9,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "for i ulong win bound 64\n",
+            "for i ulong 64 bound 64\n"
+          ],
+          "why": "pt_step bound (exit 9): candidate reads <= events x db x (win+1); in W (win 4, db 2) one pick scanning 64 slots reads 65 > 2 x 5 = 10 per event: 9"
+        },
+        {
+          "case": "mut396-tickets-never-lapse",
+          "expect": 80,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "if lt add get stts t get scpol 7 get scst 2\n",
+            "if false\n"
+          ],
+          "why": "Q: stale ticket of 150050 blocks new caller 160050; ge 0 code 80"
+        },
+        {
+          "case": "mut396-cursor-by-one",
+          "expect": 15,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "put scpol 4 rem add cur win 64\n",
+            "put scpol 4 rem add cur 1 64\n"
+          ],
+          "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)"
+        },
+        {
+          "case": "mut396-holders-by-room",
+          "expect": 105,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "if eq t 0\nret true",
+            "if lt t room\nret true"
+          ],
+          "why": "T: second holder Y enters with two openings; 105"
+        },
+        {
+          "case": "mut396-room-ignores-slots",
+          "expect": 191,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "if lt fs room\nroom = fs\n",
+            "if false\nroom = fs\n"
+          ],
+          "why": "X: table full of review results, sched_room true; 191"
+        },
+        {
+          "case": "mut396-lease-early",
+          "expect": 83,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ge now d\n",
+            "if ge add now 100000000 d\n"
+          ],
+          "why": "L: overdue reported before the stored deadline; 83"
+        },
+        {
+          "case": "mut396-jn-room-before-dup",
+          "clean": [
+            "build/node/jt"
+          ],
+          "expect": 170,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/journal-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/journal.om",
+            "if ge jn_jfind id 0\nret neg long 4\nend\nif not sched_room id\nret neg long 2\nend\n",
+            "if not sched_room id\nret neg long 2\nend\nif ge jn_jfind id 0\nret neg long 4\nend\n"
+          ],
+          "why": "journal case 16: duplicate at the limit gets -2 and a ticket, not -4; 170"
+        },
+        {
+          "case": "mut396-jn-no-room-check",
+          "clean": [
+            "build/node/jt"
+          ],
+          "expect": 173,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/journal-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/journal.om",
+            "if not sched_room id\nret neg long 2\nend\nif ne jn_rec 2 id deps flags 0\n",
+            "if ne jn_rec 2 id deps flags 0\n"
+          ],
+          "why": "journal-gate case 16 runs before 17: jn_admit 7003 at the limit now journals ADMIT and sched_admit refuses (-2, 172 holds, ticket count 1 holds); after the cancel, jn_admit 7003 finds 7003 in the journal and returns -4, so jt_ok ge ... 173 fails: 173"
+        },
+        {
+          "case": "mut396-jn-no-room-check-c17",
+          "clean": [
+            "build/node/jt"
+          ],
+          "expect": 175,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/authority/action.om",
+            "seed/node/journal.om",
+            "seed/node/auth.om",
+            "seed/node/journal-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            [
+              "seed/node/journal.om",
+              "if not sched_room id\nret neg long 2\nend\nif ne jn_rec 2 id deps flags 0\n",
+              "if ne jn_rec 2 id deps flags 0\n"
+            ],
+            [
+              "seed/node/journal-test.om",
+              "jt_c16\njt_c17\n",
+              "jt_c17\n"
+            ]
+          ],
+          "why": "case 16 is not run (removed from main), so case 17 is the first to meet the missing room check: jn_admit 9001 journals ADMIT (jseq grows) and sched_admit refuses (-2, 174 holds; ticket count 1 holds); jt_ok eq get jseq 0 q 175 fails: 175"
+        },
+        {
+          "args": [
+            "fifo"
+          ],
+          "case": "mut396-fifo-overcount",
+          "expect": 9,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-396",
+          "mutate": [
+            "seed/node/sched.om",
+            "for j ulong 64\nput scst 3 add get scst 3 1\n",
+            "for j ulong 64\nput scst 3 add get scst 3 3\n"
+          ],
+          "timeout": 120,
+          "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"
+        },
+        {
+          "args": [
+            "goal"
+          ],
+          "case": "schedpol-gate-goal",
+          "compose": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "expect": 0,
+          "gate": "seed/node/schedpol-gate.om",
+          "issue": "DRA-397",
+          "repeat": 10,
+          "stdout_has": [
+            "PASS node schedpol"
+          ],
+          "timeout": 120
+        },
+        {
+          "case": "mut397-goal-off",
+          "expect": 151,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "fn sp_better goal bool a ulong b ulong to bool\nif goal\n",
+            "fn sp_better goal bool a ulong b ulong to bool\nif false\n"
+          ],
+          "why": "G first run: policy-1 order, x runs first, trace mismatch: 151"
+        },
+        {
+          "case": "mut397-depth2-removed",
+          "expect": 151,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne and get sjdep k p2 0\nn = add n 1",
+            "if false\nn = add n 1"
+          ],
+          "why": "G first run: a and z both value 1, equal estimates, z older runs second: 151"
+        },
+        {
+          "case": "mut397-always-rescore",
+          "expect": 162,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if eq get scgv 1 v\nret\nend\n",
+            ""
+          ],
+          "why": "H: completion with nothing published rescores at the next pick; stat 32 == 1 fails: 162"
+        },
+        {
+          "case": "mut397-ready-no-bump",
+          "expect": 151,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "put scst 1 add get scst 1 1\nsp_bump\n",
+            "put scst 1 add get scst 1 1\n"
+          ],
+          "why": "G first run: b readied by publication keeps value 0, x older runs fourth: 151"
+        },
+        {
+          "case": "mut397-waiting-no-bump",
+          "expect": 160,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "put sjst j 1\nsp_bump\n",
+            "put sjst j 1\n"
+          ],
+          "why": "H: only 2 bumps (r ready, sched_goal) before unpause; stat 34 == 4 fails: 160"
+        },
+        {
+          "case": "mut397-cancel-no-bump",
+          "expect": 165,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "put sjst j 0\nsp_bump\nif eq get scpol 5 add j 1",
+            "put sjst j 0\nif eq get scpol 5 add j 1"
+          ],
+          "why": "H: cancelling waiting w3 does not move stat 34: 165"
+        },
+        {
+          "case": "mut397-propose-unchecked",
+          "expect": 170,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne v get scgv 0\nput scgst 4",
+            "if false\nput scgst 4"
+          ],
+          "why": "P: stale proposal accepted, returns 0 not -9: 170"
+        },
+        {
+          "case": "mut397-use-unchecked",
+          "expect": 176,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if eq get scgv 3 get scgv 0\n",
+            "if true\n"
+          ],
+          "why": "P: p3 proposal made stale is used, p3 runs before p2; sjst p3 == 2 fails: 176"
+        },
+        {
+          "case": "mut397-est-ignored",
+          "expect": 181,
+          "fragments": [
+            "seed/node/transport.om",
+            "seed/node/pool.om",
+            "seed/node/super.om",
+            "seed/node/sched.om",
+            "seed/node/schedpol-test.om"
+          ],
+          "issue": "DRA-397",
+          "mutate": [
+            "seed/node/sched.om",
+            "if ne ea eb\nret lt ea eb",
+            "if false\nret lt ea eb"
+          ],
+          "why": "K: equal values, estimate 10 vs 90 not used, older b wins: 181"
+        }
+      ],
+      "issue": "DRA-397",
+      "statuses": {
+        "DRA-397": "IMPLEMENTED, EXERCISED on native host; not QUALIFIED; not MERGED; not DEPLOYED",
+        "expected_exits": "derived from the check site each mutant targets (field why), before the run; DRA-287/288 mutants carry their original derivations",
+        "gpu": "NOT_RUN (not involved)"
+      }
+    },
+    "cases_sha256": "5d9ac5270871cc617b84d8629f1993a5a2b343b450b28d0983ff1a10c20229dd",
+    "path": "~/handoffs/hive/sched/bin/receipt.py",
+    "sha256": "edf71900d19a79281e14d7ad3db0a7d3265fb74a8ce5b5cb72eb68a97d615b41",
+    "source": "#!/usr/bin/env python3\n\"\"\"Run a scheduler-policy case list against a clean omega-mv checkout and\nwrite a content-addressed receipt (evidence/<dir>/receipt.<sha256>.json).\n\nUsage: receipt.py CASES.json REPO OUTDIR_REL [--write]\nRun it under the queen pool lock, e.g.\n  flock -o ~/handoffs/hive/queen/pool-8-9.lock taskset -c 8-9 nice -n 10 receipt.py ...\n\nA case: {\"case\", \"issue\", \"fragments\": [paths] | \"gate\": path, \"om2\": bool,\n \"mutate\": [path, old, new] or a list of them (optional; each old must\n   occur exactly once in its fragment),\n \"args\": [..], \"expect\": int, \"timeout\": s, \"clean\": [rel dirs removed first],\n \"stdout_has\": [substrings every run must print] (optional),\n \"repeat\": N runs, each must pass (optional, default 1)}.\nThe receipt embeds this script's source and the case list for replay.\nMutants are applied to a disposable copy of the fragment; the checkout is\nnever modified. Verification tooling only: the implementation is the .om.\n\"\"\"\nimport hashlib, json, os, platform, shutil, subprocess, sys, tempfile, time, datetime\n\ndef sh(cmd, cwd, **kw):\n    return subprocess.run(cmd, cwd=cwd, capture_output=True, **kw)\n\ndef sha(path):\n    h = hashlib.sha256()\n    with open(path, 'rb') as f:\n        h.update(f.read())\n    return h.hexdigest()\n\ndef main():\n    cases_path, repo, outrel = sys.argv[1], os.path.abspath(sys.argv[2]), sys.argv[3]\n    write = '--write' in sys.argv\n    spec = json.load(open(cases_path))\n    dirty = sh(['git', 'status', '--porcelain', '--untracked-files=normal'], repo).stdout.decode()\n    dirty = [l for l in dirty.splitlines() if not l[3:].startswith('build/')]\n    if dirty:\n        print('REFUSED: dirty tree\\n' + '\\n'.join(dirty), file=sys.stderr)\n        sys.exit(3)\n    head = sh(['git', 'rev-parse', 'HEAD'], repo).stdout.decode().strip()\n    tree = sh(['git', 'rev-parse', 'HEAD^{tree}'], repo).stdout.decode().strip()\n    omc = os.path.join(repo, 'seed/out/omc')\n    work = tempfile.mkdtemp(prefix='schedrcpt-')\n    files = set()\n    results = []\n    for c in spec['cases']:\n        frags = c.get('fragments') or [c['gate']]\n        src = b'om2\\n' if c.get('om2') else b''\n        mut = c.get('mutate')\n        muts = (mut if mut and isinstance(mut[0], list) else [mut]) if mut else []\n        for m in muts:\n            if m[0] not in frags:\n                print(f'REFUSED: mutant {c[\"case\"]}: {m[0]} is not one of its fragments', file=sys.stderr)\n                sys.exit(4)\n        for fr in frags:\n            files.add(fr)\n            data = open(os.path.join(repo, fr), 'rb').read()\n            for m in muts:\n                if m[0] != fr:\n                    continue\n                old, new = m[1].encode(), m[2].encode()\n                n = data.count(old)\n                if n != 1:\n                    print(f'REFUSED: mutant {c[\"case\"]}: pattern occurs {n} times', file=sys.stderr)\n                    sys.exit(4)\n                data = data.replace(old, new)\n            src += data\n        if c.get('gate') and not mut and c.get('compose'):\n            composed = b''.join(open(os.path.join(repo, f), 'rb').read() for f in c['compose'])\n            if composed != src:\n                print(f'REFUSED: {c[\"gate\"]} is not the concatenation', file=sys.stderr)\n                sys.exit(5)\n        binp = os.path.join(work, c['case'])\n        p = subprocess.run([omc], input=src, capture_output=True)\n        with open(binp, 'wb') as f:\n            f.write(p.stdout)\n        os.chmod(binp, 0o755)\n        r = {'case': c['case'], 'issue': c.get('issue'), 'compile_exit': p.returncode,\n             'expected_exit': c['expect'], 'source_sha256': hashlib.sha256(src).hexdigest()}\n        if muts:\n            ms = [{'file': m[0], 'from': m[1], 'to': m[2]} for m in muts]\n            r['mutation'] = ms[0] if len(ms) == 1 else ms\n        if p.returncode != 0:\n            r.update(run_exit=None, verdict='FAIL', stderr=p.stderr.decode(errors='replace'))\n            results.append(r)\n            continue\n        runs, code, out, err = [], None, b'', b''\n        t0 = time.monotonic()\n        for n in range(c.get('repeat', 1)):\n            for d in c.get('clean', []):\n                shutil.rmtree(os.path.join(repo, d), ignore_errors=True)\n            try:\n                q = subprocess.run([binp] + c.get('args', []), cwd=repo, capture_output=True,\n                                   timeout=c.get('timeout', 120))\n                code, out, err = q.returncode, q.stdout, q.stderr\n            except subprocess.TimeoutExpired as e:\n                code, out, err = 'timeout', e.stdout or b'', e.stderr or b''\n            text = out.decode(errors='replace')\n            miss = [s for s in c.get('stdout_has', []) if s not in text]\n            runs.append({'exit': code, 'missing_stdout': miss})\n        ok = all(x['exit'] == c['expect'] and not x['missing_stdout'] for x in runs)\n        r.update(run_exit=code, wall_ms=int((time.monotonic() - t0) * 1000),\n                 stdout=out.decode(errors='replace')[-4000:],\n                 stderr=err.decode(errors='replace')[-2000:],\n                 binary_sha256=sha(binp),\n                 verdict='PASS' if ok else 'FAIL')\n        if c.get('stdout_has'):\n            r['stdout_has'] = c['stdout_has']\n        if len(runs) > 1:\n            hist = {}\n            for x in runs:\n                k = f\"{x['exit']}{'' if not x['missing_stdout'] else ' missing-stdout'}\"\n                hist[k] = hist.get(k, 0) + 1\n            r['repeat'] = {'runs': len(runs), 'outcomes': hist}\n        results.append(r)\n        print(f\"{r['verdict']} {c['case']} expect={c['expect']} got={code}\"\n              + (f\" runs={r['repeat']['outcomes']}\" if len(runs) > 1 else ''), flush=True)\n    shutil.rmtree(work, ignore_errors=True)\n    rec = {\n        'project': 'P-DRA-14', 'issue': spec['issue'], 'source_commit': head, 'source_tree': tree,\n        'platform': ' '.join([platform.system(), platform.release(), platform.machine(), platform.node()]),\n        'cpu_affinity': sorted(os.sched_getaffinity(0)),\n        'execution': 'NATIVE Linux AArch64 host CPU (DGX Spark host, no GPU opened)',\n        'timestamp_utc': datetime.datetime.now(datetime.timezone.utc).isoformat(),\n        'compiler': {'path': 'seed/out/omc', 'sha256': sha(omc)},\n        'hashes': {f: sha(os.path.join(repo, f)) for f in sorted(files)},\n        'script': {'path': '~/handoffs/hive/sched/bin/receipt.py', 'sha256': sha(__file__),\n                   'source': open(__file__).read(),\n                   'cases_sha256': sha(cases_path), 'cases': spec},\n        'statuses': spec.get('statuses', {}),\n        'checks': results,\n        'summary': {'pass': sum(r['verdict'] == 'PASS' for r in results),\n                    'fail': sum(r['verdict'] != 'PASS' for r in results)},\n    }\n    body = (json.dumps(rec, indent=2, sort_keys=True) + '\\n').encode()\n    digest = hashlib.sha256(body).hexdigest()\n    print(f\"summary pass={rec['summary']['pass']} fail={rec['summary']['fail']} receipt_sha256={digest}\")\n    if write:\n        d = os.path.join(repo, outrel)\n        os.makedirs(d, exist_ok=True)\n        path = os.path.join(d, f'receipt.{digest}.json')\n        with open(path, 'wb') as f:\n            f.write(body)\n        print(path)\n    else:\n        with open(os.path.join(tempfile.gettempdir(), f'sched-receipt-{digest}.json'), 'wb') as f:\n            f.write(body)\n    sys.exit(0 if rec['summary']['fail'] == 0 else 1)\n\nmain()\n"
+  },
+  "source_commit": "a4ae451bf161d929e5d0986c7402ed4545a1afff",
+  "source_tree": "f431cf5da52ef99ea6bbbad89cea1f697a0dda58",
+  "statuses": {
+    "DRA-397": "IMPLEMENTED, EXERCISED on native host; not QUALIFIED; not MERGED; not DEPLOYED",
+    "expected_exits": "derived from the check site each mutant targets (field why), before the run; DRA-287/288 mutants carry their original derivations",
+    "gpu": "NOT_RUN (not involved)"
+  },
+  "summary": {
+    "fail": 0,
+    "pass": 49
+  },
+  "timestamp_utc": "2026-11-07T06:51:31.483428+00:00"
+}
diff --git a/seed/node/.crumb b/seed/node/.crumb
index 79b222bc3..3a4db0440 100644
--- a/seed/node/.crumb
+++ b/seed/node/.crumb
@@ -3,14 +3,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-11-07T06:35:33Z",
+      "compiled_at": "2026-11-07T07:45:29Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:7a1dd62e99bd31f0013830fd41e8994e34e5a575171d88b513381a3d498c6479",
+      "digest": "sha256:ccae2a4cb8d54a7d7d0bfb044603f7770015690f074a7ea08104f2854f217e74",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 26,
-      "generated_at_commit": "d2bb69bc148eda7320f518319510b461775c7950",
-      "source_tree": "sha256:af5b39dc167a988522f90d1c8e33fbe25f536186b8849b6c7d5488b6e1d2d4ea"
+      "generated_at_commit": "599c8c73b85c91e19155a6295a2aa6378c6b0cf4",
+      "source_tree": "sha256:b7192e43b5355949a75518bbb153af7bd397187df9b2cf7bfc135b3916130cfb"
     },
     "owner_lane": "",
     "seed": {
diff --git a/seed/node/README.md b/seed/node/README.md
index 552246c72..f967412ff 100644
--- a/seed/node/README.md
+++ b/seed/node/README.md
@@ -376,8 +376,9 @@ dispatcher.
 Status: IMPLEMENTED: resource requests, capacity admission and policy 0, FIFO
 head-of-line, which reproduces the stop rule of the reference pump (DRA-395);
 policy 1, fair fitting with reservation, admission tickets and leases, the
-default (DRA-396). The head-of-line regression fails under policy 0 and
-passes under policy 1.
+default (DRA-396); policy 2, goal-aware ranking with coalesced rescoring and
+versioned proposals (DRA-397). The head-of-line regression fails under policy
+0 and passes under policies 1 and 2.
 
 ```sh
 cat seed/node/transport.om seed/node/pool.om seed/node/super.om seed/node/sched.om seed/node/schedpol-test.om > build/node/schedpol-composed.om
@@ -385,6 +386,7 @@ cmp build/node/schedpol-composed.om seed/node/schedpol-gate.om
 seed/out/omc < seed/node/schedpol-gate.om > build/node/schedpol-gate
 chmod +x build/node/schedpol-gate
 timeout 300 build/node/schedpol-gate            # policy 1: exit 0
+timeout 300 build/node/schedpol-gate goal       # policy 2: exit 0
 timeout 300 build/node/schedpol-gate fifo       # policy 0: exit 11, the blocked head
 timeout 300 build/node/schedpol-gate noreserve  # no reservation: exit 61, starvation
 ```
@@ -453,8 +455,8 @@ exclusion is therefore evidenced for Rust only.
 | --- | --- |
 | `sched_admitr id deps flags req` | `sched_admit` with a resource request; -8 when a kind exceeds its capacity (counted, never queued). |
 | `sched_cap caps` | Set every capacity; -8 and no change when a kind would fall below its use or below one admitted job's need. |
-| `sched_policy p win db by ttl` | Policy 0 or 1, candidate window 1..64 slots, dispatch budget 1..64 per event, bypass budget 1..65535, ticket lifetime 1..1000000 dispatch events; -7 out of range. |
-| `sched_stat i` | Counters 0..15 (10 tickets issued, 11 tickets lapsed, 12 leases overdue), capacity 16..19, use 20..23, policy words 24..31 (policy, window, budget, bypass budget, cursor, reserved slot + 1, tickets held, ticket lifetime). |
+| `sched_policy p win db by ttl` | Policy 0, 1 or 2, candidate window 1..64 slots, dispatch budget 1..64 per event, bypass budget 1..65535, ticket lifetime 1..1000000 dispatch events; -7 out of range. |
+| `sched_stat i` | Counters 0..15 (10 tickets issued, 11 tickets lapsed, 12 leases overdue), capacity 16..19, use 20..23, policy words 24..31 (policy, window, budget, bypass budget, cursor, reserved slot + 1, tickets held, ticket lifetime), goal counters 32..40 (DRA-397). |
 
 Admission order (`sjarr`) and ready order (`sjrdy`) are logical counters, so
 selection never reads the clock.
@@ -623,6 +625,113 @@ journaled once (174..177).
 | the same, with case 16 not run | 175 (`journal-gate`): case 17's refused admission grows the journal |
 | FIFO counts 3 per slot read (`sp_fifo`), run with `fifo` | 9: the first FIFO pick reads more than 64 per pick allows |
 
+### Policy 2: goal-aware ranking and replanning (DRA-397)
+
+Policy 2 is policy 1 with a different order among the examined jobs that
+fit. The reservation, the hold-back, feasibility and the bypass budget come
+first, unchanged, so ranking cannot starve old work: a job ranked low is
+bypassed, reaches the bypass budget and is reserved like under policy 1.
+Authority checks stay where they are (`sched_pause`, `auth.om`). Policy 1
+stays the default until DRA-399's matched comparison shows otherwise.
+
+Inputs: `sched_goal j pro est unc` declares, for a waiting or ready job, the
+topics its completion will publish (`pro`), its work estimate in ms (`est`,
+declared, or derived by the caller from its own measurements) and that
+estimate's uncertainty in ms (`unc`, recorded, not used to rank). They are
+estimates: they order ready jobs and nothing else. Nothing is learned.
+
+Key, in order: larger unblock value, smaller estimate, older admission
+(`sjarr`, unique, so there are no ties). The unblock value of a ready job,
+in jobs, is the number of waiting jobs whose deps meet its declared topics
+(depth 1) plus the waiting jobs whose deps meet the topics those declare
+(depth 2), each counted once. Lookahead stops at depth 2: at most 128 slot
+reads per job scored plus 64 per rescoring (the pass that finds ready
+jobs), counted in `sched_stat 38` and checked at every step (exit 8). A
+proposal adds one candidate read per pick, so under policy 2 a pick reads
+at most `win` + 2 slots (exit 9).
+
+Replanning. Every committed change that can alter a value bumps the graph
+version: a job becomes ready (admission, publication, rerun after a worker
+death), a waiting job is admitted, a waiting or ready job is cancelled, a
+declaration changes. While the version is not exhausted, values are
+recomputed only at a policy-2 ranking pass whose version differs from the
+last scoring, once however many bumps came before it. Bumps therefore
+coalesce and none is lost, because the version is a counter, not a flag. A
+pick that takes the reserved job ranks nothing and scores nothing.
+Completions, failures, resource releases and lease expiry replan without
+rescoring: every step collects, then dispatches with the current values, and
+none of those events changes a value. No step waits for other workers and no
+model is called.
+
+Proposals. `sched_propose id v` lets an outside planner or an operator put
+the ready job whose id is `id` first, computed at graph version `v`
+(`sched_version`). The proposal names the job, not its table slot. It is
+refused until the scheduler has an incarnation and once its version is
+exhausted (-6), when `v` is not current (-9, counted stale), when no ready
+job or more than one has that id (-3) or when the job does not fit beside
+the reservation (-8). It is used once, at the next pick, after the
+reservation, and only if the version is still `v` and not exhausted, the
+job is still ready and it still fits; otherwise it is dropped and counted
+stale. Within one scheduler every admission, cancellation of a waiting or
+ready job and readiness bumps the version, so a job that leaves the ready
+state and a new occupant of its slot are both seen. Across schedulers the
+version carries the incarnation: `sched_incarnate n` (once, after
+`sched_new`, n in 1..2^24 - 1, distinct per scheduler; DRA-398 uses the
+journal fence) makes the version n × 2^40 plus the bumps since. The last
+scoring stays below that, so jobs admitted or declared before a late
+incarnation are rescored at the next ranking pass.
+The bump that would reach 2^40 does not carry into the next incarnation's
+range: the version stays and is exhausted, proposals are refused for the
+rest of that scheduler and every ranking pass rescores, since the version no
+longer tells whether the inputs moved.
+
+| Function | Contract |
+| --- | --- |
+| `sched_goal j pro est unc` | Declare topics, estimate (ms) and its uncertainty (ms) for a waiting or ready job; 0 or -3. |
+| `sched_version` | The graph version. It moves on admission, a job becoming ready, cancellation and `sched_goal`, and on nothing else (not on completions, releases, lease expiry, `sched_cap` or `sched_policy`); it versions the inputs of ranking and proposals, not the whole scheduler state. |
+| `sched_incarnate n` | Set the incarnation (1..2^24 - 1), once: the version becomes n × 2^40, a pending proposal is dropped, values are rescored at the next ranking pass and proposals are accepted; 0, or -7 (out of range, already set, or exhausted). |
+| `sched_propose id v` | Propose the ready job with id `id` at version v; 0, -6 no incarnation or exhausted, -9 stale, -3 no ready job or more than one has that id, -8 does not fit beside the reservation, -7 not policy 2. |
+| `sched_stat 32..41` | Rescorings, jobs scored, version bumps, proposals accepted, stale, refused, value slot reads, proposals used; 40 the graph version; 41 the proposal state (0 no incarnation, 1 accepting, 2 exhausted). |
+
+`schedpol-gate goal` runs every phase under policy 2 (exit 0). Phases G, H,
+P, I, R2, X, L and K set policy 2 themselves and run after W in the default and
+`goal` modes; the `fifo` and `noreserve` controls stop at their earlier
+expected failures (11 and 61), so they never reach these phases. Every
+dispatch a phase causes outside a creator step (resume, publication) is
+bracketed by the same step bounds.
+
+| Phase | Scenario | Exit when it fails |
+| --- | --- | --- |
+| G | one worker, bypass budget 4, ten jobs admitted while paused: x (value 0), z (unblocks d: 1), a (unblocks b, which unblocks c: 2), f (unblocks g1..g3: 3); decisions made before each finished job publishes. Order f a z b x d c g1 g2 g3: useful work first, x reserved after four bypasses. Run twice: identical decisions | 150, 151 first run, 152 second |
+| H | four graph changes while paused, one rescoring at the first pick; a completion with nothing published, no rescoring; a publication readying two jobs, one rescoring; cancelling a waiting job is one change | 160..166 |
+| P | a stale proposal is refused and counted; one naming an id with no ready job is refused; a current one is used over a higher-ranked job; one made stale by a later change is rejected at use and counted; -7 outside policy 2 | 170..178 |
+| I | scheduler 1 (incarnation 1) hands out a version for job a in slot 0; scheduler 2 (incarnation 2) puts job b in slot 0 with as many bumps: the old version is stale, a's id names no job, b's proposal is accepted, incarnation 0 is refused | 184, 185 |
+| R2 | 5 CPU, bypass budget 1: with B (4 CPU) reserved, x (2 CPU) is refused beside it; cancelling B clears the reservation and x is accepted; an event with no idle worker reserves B2 and keeps the proposal; at the next pick x no longer fits beside B2, so the proposal is dropped and counted stale and x stays ready; once B2 fits, y (1 CPU) is accepted beside it and at the next event B2 runs first, then y is used, and x, bypassed by y, becomes the reservation | 186..189, 179 |
+| X | no incarnation: a proposal is refused; a second incarnation is refused; after the first a proposal is accepted and used. At the last revision of incarnation 5 a proposal is accepted, the next bump exhausts the version instead of reaching incarnation 6, proposals are refused, the pending one is dropped at use and every pick rescores. Two ready jobs sharing an id: a proposal naming it is refused | 120..127 |
+| L | one worker, paused: an older unrelated job, a younger producer declaring a topic and a job waiting on it are admitted and declared, then the scheduler incarnates; at resume the producer runs | 128 |
+| K | the key on two slots: value before estimate before age; outside policy 2 age only | 180..183 |
+
+| Change to `sched.om` | Expected exit (derived from the check it trips) |
+| --- | --- |
+| goal off (`if goal` to `if false` in `sp_better`) | 151: x runs first |
+| depth 2 ignored (its count never incremented in `sp_value`) | 151: a and z tie, z older runs second |
+| rescore every pick (version check removed in `sp_rescore`) | 162 |
+| becoming ready does not bump (`sp_bump` removed from `sp_ready`) | 151: b keeps value 0, x runs fourth |
+| waiting admission does not bump | 160 |
+| cancellation does not bump | 165 |
+| proposal version unchecked at `sched_propose` | 170 |
+| proposal version unchecked at use (`sp_proposal`) | 176 |
+| estimate ignored in the key | 181 |
+| incarnation ignored (`sched_incarnate` leaves the version at 0) | 184: both schedulers reach version 1, so the old version is current |
+| proposal fit not rechecked at use (`sp_proposal`) | 189: x is used beside B2 |
+| proposals accepted without an incarnation (state check removed in `sched_propose`) | 120 |
+| incarnation set twice (once check removed in `sched_incarnate`) | 121 |
+| version carries into the next incarnation (saturation removed in `sp_bump`) | 123: the version moves to 6 × 2^40 |
+| exhausted version not checked at use (`sp_proposal`) | 125: the pending proposal still names the stuck version and is used |
+| exhausted version trusted by `sp_rescore` | 126: the second pick does not rescore |
+| an id shared by two ready jobs accepted (`sched_propose` takes the last) | 127 |
+| incarnation marks the values scored (`sched_incarnate` sets the last scoring to the new version) | 128: the values stay 0, so the key falls to the estimate and the unrelated job (no estimate) runs |
+
 ## Proposals, authority and cancellation (DRA-288)
 
 Status: IMPLEMENTED in `auth.om`, exercised by `auth-gate.om` and the controls
diff --git a/seed/node/auth-gate.om b/seed/node/auth-gate.om
index 8a655a990..deedcb1f5 100644
--- a/seed/node/auth-gate.om
+++ b/seed/node/auth-gate.om
@@ -974,8 +974,23 @@ note lasts until dispatch resumes.
 note Leases: a running job with a lease is reported once by sched_overdue
 note after its lease passes; the authority then cancels or kills it, which
 note releases its resources.
+note
+note Policy 2, goal-aware fair fitting (DRA-397): policy 1 with a different
+note order among the examined jobs that fit: larger unblock value first (the
+note waiting jobs, to depth 2, that the job's declared topics would make
+note ready), then smaller declared estimate, then older admission. The
+note reservation, the hold-back, feasibility and the bypass budget are
+note those of policy 1 and come first, so ranking cannot starve old work.
+note Values are rescored only when the graph version moved (a job became
+note ready, a waiting job was admitted, a job was cancelled, a declaration
+note changed), once per pick however many changes came before it.
+note Completions, releases and lease expiry replan (every step dispatches)
+note without rescoring. A proposal names a job by id and the graph version
+note it was computed at, and is rejected when that version is no longer
+note current; the version carries the scheduler's incarnation, so a
+note proposal made for another scheduler is never current here.
 const SJCAP ulong 64
-const SPVER ulong 2
+const SPVER ulong 3
 global scmap long 2
 global sclim ulong 2
 global sjst ulong 64
@@ -1011,6 +1026,29 @@ note made, 7 impossible requests refused, 8 head-of-line stops, 9 reserved
 note jobs assigned, 10 tickets issued, 11 tickets lapsed, 12 leases overdue,
 note 13 maintenance slot reads, 14 window scans.
 global scst ulong 16
+note Goal-aware ranking (policy 2): sjpro the topics a job declares its
+note completion publishes, sjest its declared work estimate in ms, sjunc
+note that estimate's uncertainty in ms, sjval its unblock value in jobs as
+note last scored. scgv: 0 graph version, 1 version last scored, 2 proposed
+note job slot + 1 (0 none), 3 version the proposal named, 4 proposal state
+note (0 no incarnation yet: proposals refused; 1 accepting; 2 the version
+note is exhausted: proposals refused for the rest of this scheduler). The
+note graph version is the scheduler's incarnation (sched_incarnate, once)
+note times 2^40 plus the bumps since, never more than 2^40 - 1 of them: the
+note bump that would carry into the next incarnation's range exhausts the
+note version instead, so schedulers of different incarnations never share a
+note version. Within one scheduler every admission of a job, cancellation
+note of a waiting or ready one and readiness bumps it, so a proposal whose
+note version is current still names the job it was made for.
+global sjpro ulong 64
+global sjest ulong 64
+global sjunc ulong 64
+global sjval ulong 64
+global scgv ulong 5
+note Goal counters (sched_stat 32..39): 0 rescores, 1 jobs scored, 2 graph
+note version bumps, 3 proposals accepted, 4 proposals stale, 5 proposals
+note refused, 6 slots read by value traversal, 7 proposals used.
+global scgst ulong 8
 
 fn sc_cell w ulong off ulong to ulong
 ret mapget get scmap 0 add mul w 128 off 8
@@ -1051,6 +1089,10 @@ put sjst j 0
 put sjheld j 0
 put sjlse j 0
 put sjdue j 0
+put sjpro j 0
+put sjest j 0
+put sjunc j 0
+put sjval j 0
 put scbusy j 0
 put scseq j 0
 end
@@ -1061,6 +1103,12 @@ end
 for i ulong 16
 put scst i 0
 end
+for i ulong 8
+put scgst i 0
+end
+for i ulong 5
+put scgv i 0
+end
 put scpol 0 1
 put scpol 1 64
 put scpol 2 64
@@ -1137,10 +1185,13 @@ fn sp_ready j ulong to void
 put sjst j 2
 put sjrdy j get scst 1
 put scst 1 add get scst 1 1
+sp_bump
 end
 
 note Creator: counter i of scst, capacity (i 16..19) or use (i 20..23) of a
-note kind, or policy word (i 24..31).
+note kind, policy word (i 24..31), goal counter (i 32..39), graph version
+note (i 40), proposal state (i 41: 0 no incarnation, 1 accepting, 2
+note exhausted).
 fn sched_stat i ulong to ulong
 if lt i 16
 ret get scst i
@@ -1154,6 +1205,15 @@ end
 if lt i 32
 ret get scpol sub i 24
 end
+if lt i 40
+ret get scgst sub i 32
+end
+if eq i 40
+ret get scgv 0
+end
+if eq i 41
+ret get scgv 4
+end
 ret 0
 end
 
@@ -1183,12 +1243,13 @@ end
 ret 0
 end
 
-note Creator: policy p (0 FIFO head-of-line, 1 fair fitting), candidate
-note window win slots (1..64), dispatch budget db jobs per event (1..64),
-note bypass budget by (1..65535), ticket lifetime ttl dispatch events
-note (1..1000000). The cursor and any reservation are kept. 0 or -7.
+note Creator: policy p (0 FIFO head-of-line, 1 fair fitting, 2 goal-aware
+note fair fitting), candidate window win slots (1..64), dispatch budget db
+note jobs per event (1..64), bypass budget by (1..65535), ticket lifetime
+note ttl dispatch events (1..1000000). The cursor and any reservation are
+note kept. 0 or -7.
 fn sched_policy p ulong win ulong db ulong by ulong ttl ulong to long
-if gt p 1
+if gt p 2
 ret neg long 7
 end
 if or eq win 0 gt win 64
@@ -1349,10 +1410,15 @@ put sjlse j 0
 put sjdue j 0
 put sjarr j get scst 0
 put scst 0 add get scst 0 1
+put sjpro j 0
+put sjest j 0
+put sjunc j 0
+put sjval j 0
 if eq deps 0
 sp_ready j
 else
 put sjst j 1
+sp_bump
 end
 ret long j
 end
@@ -1513,6 +1579,14 @@ else
 put scpol 5 0
 end
 end
+goal = eq get scpol 0 2
+if goal
+sp_rescore
+pj = sp_proposal rq
+if lt pj 64
+ret pj
+end
+end
 win = get scpol 1
 cur = get scpol 4
 b = ulong 64
@@ -1525,7 +1599,7 @@ if sp_fits get sjneed j rq
 if eq b 64
 b = j
 else
-if lt get sjarr j get sjarr b
+if sp_better goal j b
 b = j
 end
 end
@@ -1536,6 +1610,215 @@ put scpol 4 rem add cur win 64
 ret b
 end
 
+note Ranking key, both of ready jobs a and b: is a better? Policy 1: older
+note admission. Policy 2: larger unblock value, then smaller declared
+note estimate, then older admission (admission orders are unique, so there
+note is never a tie).
+fn sp_better goal bool a ulong b ulong to bool
+if goal
+va = get sjval a
+vb = get sjval b
+if ne va vb
+ret gt va vb
+end
+ea = get sjest a
+eb = get sjest b
+if ne ea eb
+ret lt ea eb
+end
+end
+ret lt get sjarr a get sjarr b
+end
+
+note A committed change that can alter an unblock value: a job becomes
+note ready, a waiting job is admitted, a waiting or ready job is cancelled,
+note or a declaration changes. Bumps the graph version, which makes any
+note proposal stale (rejected when next used). Nothing is rescored here:
+note the next policy-2 pick rescores once, however many bumps came before
+note it (coalesced). At 2^40 - 1 bumps the version stays and is exhausted
+note (scgv 4 = 2): from then on proposals are refused and every pick
+note rescores.
+fn sp_bump to void
+put scgst 2 add get scgst 2 1
+if eq and get scgv 0 1099511627775 1099511627775
+put scgv 4 2
+ret
+end
+put scgv 0 add get scgv 0 1
+end
+
+note Unblock value of ready job j, in jobs: the waiting jobs whose deps meet
+note the topics j declares it unblocks (depth 1), plus the waiting jobs whose
+note deps meet the topics those declare (depth 2), each counted once. Reads
+note at most 128 slots.
+fn sp_value j ulong to ulong
+pro = get sjpro j
+if eq pro 0
+ret 0
+end
+n = ulong 0
+m = ulong 0
+p2 = ulong 0
+for k ulong 64
+if eq get sjst k 1
+if ne and get sjdep k pro 0
+m = or m shl ulong 1 k
+p2 = or p2 get sjpro k
+n = add n 1
+end
+end
+end
+put scgst 6 add get scgst 6 64
+if eq p2 0
+ret n
+end
+for k ulong 64
+if eq get sjst k 1
+if eq and shr m k 1 0
+if ne and get sjdep k p2 0
+n = add n 1
+end
+end
+end
+end
+put scgst 6 add get scgst 6 64
+ret n
+end
+
+note Recompute the unblock value of every ready job when the graph version
+note moved since the last scoring, or always once it is exhausted;
+note otherwise nothing.
+fn sp_rescore to void
+v = get scgv 0
+if and eq get scgv 1 v ne get scgv 4 2
+ret
+end
+for j ulong 64
+if eq get sjst j 2
+put sjval j sp_value j
+put scgst 1 add get scgst 1 1
+end
+end
+put scgv 1 v
+put scgst 0 add get scgst 0 1
+put scgst 6 add get scgst 6 64
+end
+
+note The proposed job, when the proposal is for the current graph version
+note (and that version is not exhausted) and the job is still ready and fits
+note beside the reservation (rq); it is used once. Otherwise the proposal
+note is dropped as stale: 64.
+fn sp_proposal rq ulong to ulong
+p = get scgv 2
+if eq p 0
+ret 64
+end
+put scgv 2 0
+put scst 3 add get scst 3 1
+j = sub p 1
+if and eq get scgv 3 get scgv 0 eq get scgv 4 1
+if eq get sjst j 2
+if sp_fits get sjneed j rq
+put scgst 7 add get scgst 7 1
+ret j
+end
+end
+end
+put scgst 4 add get scgst 4 1
+ret 64
+end
+
+note Creator: declare what job j (waiting or ready) is expected to unblock
+note and cost: pro, the topics its completion will publish; est, the work
+note estimate in ms (declared, or derived by the caller from measurements);
+note unc, its uncertainty in ms (recorded, not used to rank). 0, or -3.
+fn sched_goal j ulong pro ulong est ulong unc ulong to long
+if ge j 64
+ret neg long 3
+end
+s = get sjst j
+if or eq s 0 gt s 2
+ret neg long 3
+end
+put sjpro j pro
+put sjest j est
+put sjunc j unc
+sp_bump
+ret 0
+end
+
+note Creator: the graph version that proposals must name.
+fn sched_version to ulong
+ret get scgv 0
+end
+
+note Creator, after sched_new: incarnation n (1..2^24 - 1), distinct
+note for every scheduler that may receive proposals meant for another (the
+note journal fence, DRA-398). The graph version becomes n * 2^40, which no
+note scheduler of another incarnation reaches, any proposal is dropped and
+note proposals are accepted from now on. The last scoring stays below n *
+note 2^40, so the next ranking pass rescores whatever was admitted or
+note declared before, whenever the incarnation comes. Once per
+note scheduler: 0, or -7 (n out of range, or already set or exhausted).
+fn sched_incarnate n ulong to long
+if or eq n 0 ge n 16777216
+ret neg long 7
+end
+if ne get scgv 4 0
+ret neg long 7
+end
+put scgv 0 shl n 40
+put scgv 2 0
+put scgv 4 1
+ret 0
+end
+
+note Creator, policy 2: propose the ready job whose id is id for the next
+note pick, computed at graph version v (an outside planner, or an
+note operator). The proposal names the job, not its slot. Reservations and
+note feasibility still come first: it is checked again when used. 0; -6 no
+note incarnation set or the version exhausted; -9 stale (v is not the
+note current version); -3 no ready job, or more than one, has that id; -8
+note it does not fit beside the reservation; -7 not policy 2.
+fn sched_propose id ulong v ulong to long
+if ne get scpol 0 2
+ret neg long 7
+end
+if ne get scgv 4 1
+put scgst 5 add get scgst 5 1
+ret neg long 6
+end
+if ne v get scgv 0
+put scgst 4 add get scgst 4 1
+ret neg long 9
+end
+j = ulong 64
+n = ulong 0
+for k ulong 64
+if and eq get sjst k 2 eq get sjid k id
+j = k
+n = add n 1
+end
+end
+if ne n 1
+put scgst 5 add get scgst 5 1
+ret neg long 3
+end
+rq = ulong 0
+r = get scpol 5
+if gt r 0
+rq = get sjneed sub r 1
+end
+if not sp_fits get sjneed j rq
+put scgst 5 add get scgst 5 1
+ret neg long 8
+end
+put scgv 2 add j 1
+put scgv 3 v
+put scgst 3 add get scgst 3 1
+ret 0
+end
+
 note After a fair dispatch event in which ya - 1 was the youngest admission
 note assigned (ya 0: none): every ready job admitted before it was bypassed
 note once; with no reservation, the oldest job at the bypass budget is
@@ -1580,7 +1863,7 @@ end
 n = mapget c 48 8
 k = ulong 0
 ya = ulong 0
-fair = eq get scpol 0 1
+fair = ge get scpol 0 1
 put scst 2 add get scst 2 1
 for i ulong get scpol 2 bound 64
 w = sp_idle n
@@ -1762,6 +2045,7 @@ end
 s = get sjst j
 if or eq s 1 eq s 2
 put sjst j 0
+sp_bump
 if eq get scpol 5 add j 1
 put scpol 5 0
 end
diff --git a/seed/node/journal-gate.om b/seed/node/journal-gate.om
index a8594a6a0..f45d3662c 100644
--- a/seed/node/journal-gate.om
+++ b/seed/node/journal-gate.om
@@ -974,8 +974,23 @@ note lasts until dispatch resumes.
 note Leases: a running job with a lease is reported once by sched_overdue
 note after its lease passes; the authority then cancels or kills it, which
 note releases its resources.
+note
+note Policy 2, goal-aware fair fitting (DRA-397): policy 1 with a different
+note order among the examined jobs that fit: larger unblock value first (the
+note waiting jobs, to depth 2, that the job's declared topics would make
+note ready), then smaller declared estimate, then older admission. The
+note reservation, the hold-back, feasibility and the bypass budget are
+note those of policy 1 and come first, so ranking cannot starve old work.
+note Values are rescored only when the graph version moved (a job became
+note ready, a waiting job was admitted, a job was cancelled, a declaration
+note changed), once per pick however many changes came before it.
+note Completions, releases and lease expiry replan (every step dispatches)
+note without rescoring. A proposal names a job by id and the graph version
+note it was computed at, and is rejected when that version is no longer
+note current; the version carries the scheduler's incarnation, so a
+note proposal made for another scheduler is never current here.
 const SJCAP ulong 64
-const SPVER ulong 2
+const SPVER ulong 3
 global scmap long 2
 global sclim ulong 2
 global sjst ulong 64
@@ -1011,6 +1026,29 @@ note made, 7 impossible requests refused, 8 head-of-line stops, 9 reserved
 note jobs assigned, 10 tickets issued, 11 tickets lapsed, 12 leases overdue,
 note 13 maintenance slot reads, 14 window scans.
 global scst ulong 16
+note Goal-aware ranking (policy 2): sjpro the topics a job declares its
+note completion publishes, sjest its declared work estimate in ms, sjunc
+note that estimate's uncertainty in ms, sjval its unblock value in jobs as
+note last scored. scgv: 0 graph version, 1 version last scored, 2 proposed
+note job slot + 1 (0 none), 3 version the proposal named, 4 proposal state
+note (0 no incarnation yet: proposals refused; 1 accepting; 2 the version
+note is exhausted: proposals refused for the rest of this scheduler). The
+note graph version is the scheduler's incarnation (sched_incarnate, once)
+note times 2^40 plus the bumps since, never more than 2^40 - 1 of them: the
+note bump that would carry into the next incarnation's range exhausts the
+note version instead, so schedulers of different incarnations never share a
+note version. Within one scheduler every admission of a job, cancellation
+note of a waiting or ready one and readiness bumps it, so a proposal whose
+note version is current still names the job it was made for.
+global sjpro ulong 64
+global sjest ulong 64
+global sjunc ulong 64
+global sjval ulong 64
+global scgv ulong 5
+note Goal counters (sched_stat 32..39): 0 rescores, 1 jobs scored, 2 graph
+note version bumps, 3 proposals accepted, 4 proposals stale, 5 proposals
+note refused, 6 slots read by value traversal, 7 proposals used.
+global scgst ulong 8
 
 fn sc_cell w ulong off ulong to ulong
 ret mapget get scmap 0 add mul w 128 off 8
@@ -1051,6 +1089,10 @@ put sjst j 0
 put sjheld j 0
 put sjlse j 0
 put sjdue j 0
+put sjpro j 0
+put sjest j 0
+put sjunc j 0
+put sjval j 0
 put scbusy j 0
 put scseq j 0
 end
@@ -1061,6 +1103,12 @@ end
 for i ulong 16
 put scst i 0
 end
+for i ulong 8
+put scgst i 0
+end
+for i ulong 5
+put scgv i 0
+end
 put scpol 0 1
 put scpol 1 64
 put scpol 2 64
@@ -1137,10 +1185,13 @@ fn sp_ready j ulong to void
 put sjst j 2
 put sjrdy j get scst 1
 put scst 1 add get scst 1 1
+sp_bump
 end
 
 note Creator: counter i of scst, capacity (i 16..19) or use (i 20..23) of a
-note kind, or policy word (i 24..31).
+note kind, policy word (i 24..31), goal counter (i 32..39), graph version
+note (i 40), proposal state (i 41: 0 no incarnation, 1 accepting, 2
+note exhausted).
 fn sched_stat i ulong to ulong
 if lt i 16
 ret get scst i
@@ -1154,6 +1205,15 @@ end
 if lt i 32
 ret get scpol sub i 24
 end
+if lt i 40
+ret get scgst sub i 32
+end
+if eq i 40
+ret get scgv 0
+end
+if eq i 41
+ret get scgv 4
+end
 ret 0
 end
 
@@ -1183,12 +1243,13 @@ end
 ret 0
 end
 
-note Creator: policy p (0 FIFO head-of-line, 1 fair fitting), candidate
-note window win slots (1..64), dispatch budget db jobs per event (1..64),
-note bypass budget by (1..65535), ticket lifetime ttl dispatch events
-note (1..1000000). The cursor and any reservation are kept. 0 or -7.
+note Creator: policy p (0 FIFO head-of-line, 1 fair fitting, 2 goal-aware
+note fair fitting), candidate window win slots (1..64), dispatch budget db
+note jobs per event (1..64), bypass budget by (1..65535), ticket lifetime
+note ttl dispatch events (1..1000000). The cursor and any reservation are
+note kept. 0 or -7.
 fn sched_policy p ulong win ulong db ulong by ulong ttl ulong to long
-if gt p 1
+if gt p 2
 ret neg long 7
 end
 if or eq win 0 gt win 64
@@ -1349,10 +1410,15 @@ put sjlse j 0
 put sjdue j 0
 put sjarr j get scst 0
 put scst 0 add get scst 0 1
+put sjpro j 0
+put sjest j 0
+put sjunc j 0
+put sjval j 0
 if eq deps 0
 sp_ready j
 else
 put sjst j 1
+sp_bump
 end
 ret long j
 end
@@ -1513,6 +1579,14 @@ else
 put scpol 5 0
 end
 end
+goal = eq get scpol 0 2
+if goal
+sp_rescore
+pj = sp_proposal rq
+if lt pj 64
+ret pj
+end
+end
 win = get scpol 1
 cur = get scpol 4
 b = ulong 64
@@ -1525,7 +1599,7 @@ if sp_fits get sjneed j rq
 if eq b 64
 b = j
 else
-if lt get sjarr j get sjarr b
+if sp_better goal j b
 b = j
 end
 end
@@ -1536,6 +1610,215 @@ put scpol 4 rem add cur win 64
 ret b
 end
 
+note Ranking key, both of ready jobs a and b: is a better? Policy 1: older
+note admission. Policy 2: larger unblock value, then smaller declared
+note estimate, then older admission (admission orders are unique, so there
+note is never a tie).
+fn sp_better goal bool a ulong b ulong to bool
+if goal
+va = get sjval a
+vb = get sjval b
+if ne va vb
+ret gt va vb
+end
+ea = get sjest a
+eb = get sjest b
+if ne ea eb
+ret lt ea eb
+end
+end
+ret lt get sjarr a get sjarr b
+end
+
+note A committed change that can alter an unblock value: a job becomes
+note ready, a waiting job is admitted, a waiting or ready job is cancelled,
+note or a declaration changes. Bumps the graph version, which makes any
+note proposal stale (rejected when next used). Nothing is rescored here:
+note the next policy-2 pick rescores once, however many bumps came before
+note it (coalesced). At 2^40 - 1 bumps the version stays and is exhausted
+note (scgv 4 = 2): from then on proposals are refused and every pick
+note rescores.
+fn sp_bump to void
+put scgst 2 add get scgst 2 1
+if eq and get scgv 0 1099511627775 1099511627775
+put scgv 4 2
+ret
+end
+put scgv 0 add get scgv 0 1
+end
+
+note Unblock value of ready job j, in jobs: the waiting jobs whose deps meet
+note the topics j declares it unblocks (depth 1), plus the waiting jobs whose
+note deps meet the topics those declare (depth 2), each counted once. Reads
+note at most 128 slots.
+fn sp_value j ulong to ulong
+pro = get sjpro j
+if eq pro 0
+ret 0
+end
+n = ulong 0
+m = ulong 0
+p2 = ulong 0
+for k ulong 64
+if eq get sjst k 1
+if ne and get sjdep k pro 0
+m = or m shl ulong 1 k
+p2 = or p2 get sjpro k
+n = add n 1
+end
+end
+end
+put scgst 6 add get scgst 6 64
+if eq p2 0
+ret n
+end
+for k ulong 64
+if eq get sjst k 1
+if eq and shr m k 1 0
+if ne and get sjdep k p2 0
+n = add n 1
+end
+end
+end
+end
+put scgst 6 add get scgst 6 64
+ret n
+end
+
+note Recompute the unblock value of every ready job when the graph version
+note moved since the last scoring, or always once it is exhausted;
+note otherwise nothing.
+fn sp_rescore to void
+v = get scgv 0
+if and eq get scgv 1 v ne get scgv 4 2
+ret
+end
+for j ulong 64
+if eq get sjst j 2
+put sjval j sp_value j
+put scgst 1 add get scgst 1 1
+end
+end
+put scgv 1 v
+put scgst 0 add get scgst 0 1
+put scgst 6 add get scgst 6 64
+end
+
+note The proposed job, when the proposal is for the current graph version
+note (and that version is not exhausted) and the job is still ready and fits
+note beside the reservation (rq); it is used once. Otherwise the proposal
+note is dropped as stale: 64.
+fn sp_proposal rq ulong to ulong
+p = get scgv 2
+if eq p 0
+ret 64
+end
+put scgv 2 0
+put scst 3 add get scst 3 1
+j = sub p 1
+if and eq get scgv 3 get scgv 0 eq get scgv 4 1
+if eq get sjst j 2
+if sp_fits get sjneed j rq
+put scgst 7 add get scgst 7 1
+ret j
+end
+end
+end
+put scgst 4 add get scgst 4 1
+ret 64
+end
+
+note Creator: declare what job j (waiting or ready) is expected to unblock
+note and cost: pro, the topics its completion will publish; est, the work
+note estimate in ms (declared, or derived by the caller from measurements);
+note unc, its uncertainty in ms (recorded, not used to rank). 0, or -3.
+fn sched_goal j ulong pro ulong est ulong unc ulong to long
+if ge j 64
+ret neg long 3
+end
+s = get sjst j
+if or eq s 0 gt s 2
+ret neg long 3
+end
+put sjpro j pro
+put sjest j est
+put sjunc j unc
+sp_bump
+ret 0
+end
+
+note Creator: the graph version that proposals must name.
+fn sched_version to ulong
+ret get scgv 0
+end
+
+note Creator, after sched_new: incarnation n (1..2^24 - 1), distinct
+note for every scheduler that may receive proposals meant for another (the
+note journal fence, DRA-398). The graph version becomes n * 2^40, which no
+note scheduler of another incarnation reaches, any proposal is dropped and
+note proposals are accepted from now on. The last scoring stays below n *
+note 2^40, so the next ranking pass rescores whatever was admitted or
+note declared before, whenever the incarnation comes. Once per
+note scheduler: 0, or -7 (n out of range, or already set or exhausted).
+fn sched_incarnate n ulong to long
+if or eq n 0 ge n 16777216
+ret neg long 7
+end
+if ne get scgv 4 0
+ret neg long 7
+end
+put scgv 0 shl n 40
+put scgv 2 0
+put scgv 4 1
+ret 0
+end
+
+note Creator, policy 2: propose the ready job whose id is id for the next
+note pick, computed at graph version v (an outside planner, or an
+note operator). The proposal names the job, not its slot. Reservations and
+note feasibility still come first: it is checked again when used. 0; -6 no
+note incarnation set or the version exhausted; -9 stale (v is not the
+note current version); -3 no ready job, or more than one, has that id; -8
+note it does not fit beside the reservation; -7 not policy 2.
+fn sched_propose id ulong v ulong to long
+if ne get scpol 0 2
+ret neg long 7
+end
+if ne get scgv 4 1
+put scgst 5 add get scgst 5 1
+ret neg long 6
+end
+if ne v get scgv 0
+put scgst 4 add get scgst 4 1
+ret neg long 9
+end
+j = ulong 64
+n = ulong 0
+for k ulong 64
+if and eq get sjst k 2 eq get sjid k id
+j = k
+n = add n 1
+end
+end
+if ne n 1
+put scgst 5 add get scgst 5 1
+ret neg long 3
+end
+rq = ulong 0
+r = get scpol 5
+if gt r 0
+rq = get sjneed sub r 1
+end
+if not sp_fits get sjneed j rq
+put scgst 5 add get scgst 5 1
+ret neg long 8
+end
+put scgv 2 add j 1
+put scgv 3 v
+put scgst 3 add get scgst 3 1
+ret 0
+end
+
 note After a fair dispatch event in which ya - 1 was the youngest admission
 note assigned (ya 0: none): every ready job admitted before it was bypassed
 note once; with no reservation, the oldest job at the bypass budget is
@@ -1580,7 +1863,7 @@ end
 n = mapget c 48 8
 k = ulong 0
 ya = ulong 0
-fair = eq get scpol 0 1
+fair = ge get scpol 0 1
 put scst 2 add get scst 2 1
 for i ulong get scpol 2 bound 64
 w = sp_idle n
@@ -1762,6 +2045,7 @@ end
 s = get sjst j
 if or eq s 1 eq s 2
 put sjst j 0
+sp_bump
 if eq get scpol 5 add j 1
 put scpol 5 0
 end
diff --git a/seed/node/sched-gate.om b/seed/node/sched-gate.om
index 18b014d66..58bbf398a 100644
--- a/seed/node/sched-gate.om
+++ b/seed/node/sched-gate.om
@@ -974,8 +974,23 @@ note lasts until dispatch resumes.
 note Leases: a running job with a lease is reported once by sched_overdue
 note after its lease passes; the authority then cancels or kills it, which
 note releases its resources.
+note
+note Policy 2, goal-aware fair fitting (DRA-397): policy 1 with a different
+note order among the examined jobs that fit: larger unblock value first (the
+note waiting jobs, to depth 2, that the job's declared topics would make
+note ready), then smaller declared estimate, then older admission. The
+note reservation, the hold-back, feasibility and the bypass budget are
+note those of policy 1 and come first, so ranking cannot starve old work.
+note Values are rescored only when the graph version moved (a job became
+note ready, a waiting job was admitted, a job was cancelled, a declaration
+note changed), once per pick however many changes came before it.
+note Completions, releases and lease expiry replan (every step dispatches)
+note without rescoring. A proposal names a job by id and the graph version
+note it was computed at, and is rejected when that version is no longer
+note current; the version carries the scheduler's incarnation, so a
+note proposal made for another scheduler is never current here.
 const SJCAP ulong 64
-const SPVER ulong 2
+const SPVER ulong 3
 global scmap long 2
 global sclim ulong 2
 global sjst ulong 64
@@ -1011,6 +1026,29 @@ note made, 7 impossible requests refused, 8 head-of-line stops, 9 reserved
 note jobs assigned, 10 tickets issued, 11 tickets lapsed, 12 leases overdue,
 note 13 maintenance slot reads, 14 window scans.
 global scst ulong 16
+note Goal-aware ranking (policy 2): sjpro the topics a job declares its
+note completion publishes, sjest its declared work estimate in ms, sjunc
+note that estimate's uncertainty in ms, sjval its unblock value in jobs as
+note last scored. scgv: 0 graph version, 1 version last scored, 2 proposed
+note job slot + 1 (0 none), 3 version the proposal named, 4 proposal state
+note (0 no incarnation yet: proposals refused; 1 accepting; 2 the version
+note is exhausted: proposals refused for the rest of this scheduler). The
+note graph version is the scheduler's incarnation (sched_incarnate, once)
+note times 2^40 plus the bumps since, never more than 2^40 - 1 of them: the
+note bump that would carry into the next incarnation's range exhausts the
+note version instead, so schedulers of different incarnations never share a
+note version. Within one scheduler every admission of a job, cancellation
+note of a waiting or ready one and readiness bumps it, so a proposal whose
+note version is current still names the job it was made for.
+global sjpro ulong 64
+global sjest ulong 64
+global sjunc ulong 64
+global sjval ulong 64
+global scgv ulong 5
+note Goal counters (sched_stat 32..39): 0 rescores, 1 jobs scored, 2 graph
+note version bumps, 3 proposals accepted, 4 proposals stale, 5 proposals
+note refused, 6 slots read by value traversal, 7 proposals used.
+global scgst ulong 8
 
 fn sc_cell w ulong off ulong to ulong
 ret mapget get scmap 0 add mul w 128 off 8
@@ -1051,6 +1089,10 @@ put sjst j 0
 put sjheld j 0
 put sjlse j 0
 put sjdue j 0
+put sjpro j 0
+put sjest j 0
+put sjunc j 0
+put sjval j 0
 put scbusy j 0
 put scseq j 0
 end
@@ -1061,6 +1103,12 @@ end
 for i ulong 16
 put scst i 0
 end
+for i ulong 8
+put scgst i 0
+end
+for i ulong 5
+put scgv i 0
+end
 put scpol 0 1
 put scpol 1 64
 put scpol 2 64
@@ -1137,10 +1185,13 @@ fn sp_ready j ulong to void
 put sjst j 2
 put sjrdy j get scst 1
 put scst 1 add get scst 1 1
+sp_bump
 end
 
 note Creator: counter i of scst, capacity (i 16..19) or use (i 20..23) of a
-note kind, or policy word (i 24..31).
+note kind, policy word (i 24..31), goal counter (i 32..39), graph version
+note (i 40), proposal state (i 41: 0 no incarnation, 1 accepting, 2
+note exhausted).
 fn sched_stat i ulong to ulong
 if lt i 16
 ret get scst i
@@ -1154,6 +1205,15 @@ end
 if lt i 32
 ret get scpol sub i 24
 end
+if lt i 40
+ret get scgst sub i 32
+end
+if eq i 40
+ret get scgv 0
+end
+if eq i 41
+ret get scgv 4
+end
 ret 0
 end
 
@@ -1183,12 +1243,13 @@ end
 ret 0
 end
 
-note Creator: policy p (0 FIFO head-of-line, 1 fair fitting), candidate
-note window win slots (1..64), dispatch budget db jobs per event (1..64),
-note bypass budget by (1..65535), ticket lifetime ttl dispatch events
-note (1..1000000). The cursor and any reservation are kept. 0 or -7.
+note Creator: policy p (0 FIFO head-of-line, 1 fair fitting, 2 goal-aware
+note fair fitting), candidate window win slots (1..64), dispatch budget db
+note jobs per event (1..64), bypass budget by (1..65535), ticket lifetime
+note ttl dispatch events (1..1000000). The cursor and any reservation are
+note kept. 0 or -7.
 fn sched_policy p ulong win ulong db ulong by ulong ttl ulong to long
-if gt p 1
+if gt p 2
 ret neg long 7
 end
 if or eq win 0 gt win 64
@@ -1349,10 +1410,15 @@ put sjlse j 0
 put sjdue j 0
 put sjarr j get scst 0
 put scst 0 add get scst 0 1
+put sjpro j 0
+put sjest j 0
+put sjunc j 0
+put sjval j 0
 if eq deps 0
 sp_ready j
 else
 put sjst j 1
+sp_bump
 end
 ret long j
 end
@@ -1513,6 +1579,14 @@ else
 put scpol 5 0
 end
 end
+goal = eq get scpol 0 2
+if goal
+sp_rescore
+pj = sp_proposal rq
+if lt pj 64
+ret pj
+end
+end
 win = get scpol 1
 cur = get scpol 4
 b = ulong 64
@@ -1525,7 +1599,7 @@ if sp_fits get sjneed j rq
 if eq b 64
 b = j
 else
-if lt get sjarr j get sjarr b
+if sp_better goal j b
 b = j
 end
 end
@@ -1536,6 +1610,215 @@ put scpol 4 rem add cur win 64
 ret b
 end
 
+note Ranking key, both of ready jobs a and b: is a better? Policy 1: older
+note admission. Policy 2: larger unblock value, then smaller declared
+note estimate, then older admission (admission orders are unique, so there
+note is never a tie).
+fn sp_better goal bool a ulong b ulong to bool
+if goal
+va = get sjval a
+vb = get sjval b
+if ne va vb
+ret gt va vb
+end
+ea = get sjest a
+eb = get sjest b
+if ne ea eb
+ret lt ea eb
+end
+end
+ret lt get sjarr a get sjarr b
+end
+
+note A committed change that can alter an unblock value: a job becomes
+note ready, a waiting job is admitted, a waiting or ready job is cancelled,
+note or a declaration changes. Bumps the graph version, which makes any
+note proposal stale (rejected when next used). Nothing is rescored here:
+note the next policy-2 pick rescores once, however many bumps came before
+note it (coalesced). At 2^40 - 1 bumps the version stays and is exhausted
+note (scgv 4 = 2): from then on proposals are refused and every pick
+note rescores.
+fn sp_bump to void
+put scgst 2 add get scgst 2 1
+if eq and get scgv 0 1099511627775 1099511627775
+put scgv 4 2
+ret
+end
+put scgv 0 add get scgv 0 1
+end
+
+note Unblock value of ready job j, in jobs: the waiting jobs whose deps meet
+note the topics j declares it unblocks (depth 1), plus the waiting jobs whose
+note deps meet the topics those declare (depth 2), each counted once. Reads
+note at most 128 slots.
+fn sp_value j ulong to ulong
+pro = get sjpro j
+if eq pro 0
+ret 0
+end
+n = ulong 0
+m = ulong 0
+p2 = ulong 0
+for k ulong 64
+if eq get sjst k 1
+if ne and get sjdep k pro 0
+m = or m shl ulong 1 k
+p2 = or p2 get sjpro k
+n = add n 1
+end
+end
+end
+put scgst 6 add get scgst 6 64
+if eq p2 0
+ret n
+end
+for k ulong 64
+if eq get sjst k 1
+if eq and shr m k 1 0
+if ne and get sjdep k p2 0
+n = add n 1
+end
+end
+end
+end
+put scgst 6 add get scgst 6 64
+ret n
+end
+
+note Recompute the unblock value of every ready job when the graph version
+note moved since the last scoring, or always once it is exhausted;
+note otherwise nothing.
+fn sp_rescore to void
+v = get scgv 0
+if and eq get scgv 1 v ne get scgv 4 2
+ret
+end
+for j ulong 64
+if eq get sjst j 2
+put sjval j sp_value j
+put scgst 1 add get scgst 1 1
+end
+end
+put scgv 1 v
+put scgst 0 add get scgst 0 1
+put scgst 6 add get scgst 6 64
+end
+
+note The proposed job, when the proposal is for the current graph version
+note (and that version is not exhausted) and the job is still ready and fits
+note beside the reservation (rq); it is used once. Otherwise the proposal
+note is dropped as stale: 64.
+fn sp_proposal rq ulong to ulong
+p = get scgv 2
+if eq p 0
+ret 64
+end
+put scgv 2 0
+put scst 3 add get scst 3 1
+j = sub p 1
+if and eq get scgv 3 get scgv 0 eq get scgv 4 1
+if eq get sjst j 2
+if sp_fits get sjneed j rq
+put scgst 7 add get scgst 7 1
+ret j
+end
+end
+end
+put scgst 4 add get scgst 4 1
+ret 64
+end
+
+note Creator: declare what job j (waiting or ready) is expected to unblock
+note and cost: pro, the topics its completion will publish; est, the work
+note estimate in ms (declared, or derived by the caller from measurements);
+note unc, its uncertainty in ms (recorded, not used to rank). 0, or -3.
+fn sched_goal j ulong pro ulong est ulong unc ulong to long
+if ge j 64
+ret neg long 3
+end
+s = get sjst j
+if or eq s 0 gt s 2
+ret neg long 3
+end
+put sjpro j pro
+put sjest j est
+put sjunc j unc
+sp_bump
+ret 0
+end
+
+note Creator: the graph version that proposals must name.
+fn sched_version to ulong
+ret get scgv 0
+end
+
+note Creator, after sched_new: incarnation n (1..2^24 - 1), distinct
+note for every scheduler that may receive proposals meant for another (the
+note journal fence, DRA-398). The graph version becomes n * 2^40, which no
+note scheduler of another incarnation reaches, any proposal is dropped and
+note proposals are accepted from now on. The last scoring stays below n *
+note 2^40, so the next ranking pass rescores whatever was admitted or
+note declared before, whenever the incarnation comes. Once per
+note scheduler: 0, or -7 (n out of range, or already set or exhausted).
+fn sched_incarnate n ulong to long
+if or eq n 0 ge n 16777216
+ret neg long 7
+end
+if ne get scgv 4 0
+ret neg long 7
+end
+put scgv 0 shl n 40
+put scgv 2 0
+put scgv 4 1
+ret 0
+end
+
+note Creator, policy 2: propose the ready job whose id is id for the next
+note pick, computed at graph version v (an outside planner, or an
+note operator). The proposal names the job, not its slot. Reservations and
+note feasibility still come first: it is checked again when used. 0; -6 no
+note incarnation set or the version exhausted; -9 stale (v is not the
+note current version); -3 no ready job, or more than one, has that id; -8
+note it does not fit beside the reservation; -7 not policy 2.
+fn sched_propose id ulong v ulong to long
+if ne get scpol 0 2
+ret neg long 7
+end
+if ne get scgv 4 1
+put scgst 5 add get scgst 5 1
+ret neg long 6
+end
+if ne v get scgv 0
+put scgst 4 add get scgst 4 1
+ret neg long 9
+end
+j = ulong 64
+n = ulong 0
+for k ulong 64
+if and eq get sjst k 2 eq get sjid k id
+j = k
+n = add n 1
+end
+end
+if ne n 1
+put scgst 5 add get scgst 5 1
+ret neg long 3
+end
+rq = ulong 0
+r = get scpol 5
+if gt r 0
+rq = get sjneed sub r 1
+end
+if not sp_fits get sjneed j rq
+put scgst 5 add get scgst 5 1
+ret neg long 8
+end
+put scgv 2 add j 1
+put scgv 3 v
+put scgst 3 add get scgst 3 1
+ret 0
+end
+
 note After a fair dispatch event in which ya - 1 was the youngest admission
 note assigned (ya 0: none): every ready job admitted before it was bypassed
 note once; with no reservation, the oldest job at the bypass budget is
@@ -1580,7 +1863,7 @@ end
 n = mapget c 48 8
 k = ulong 0
 ya = ulong 0
-fair = eq get scpol 0 1
+fair = ge get scpol 0 1
 put scst 2 add get scst 2 1
 for i ulong get scpol 2 bound 64
 w = sp_idle n
@@ -1762,6 +2045,7 @@ end
 s = get sjst j
 if or eq s 1 eq s 2
 put sjst j 0
+sp_bump
 if eq get scpol 5 add j 1
 put scpol 5 0
 end
diff --git a/seed/node/sched.om b/seed/node/sched.om
index ba0111df8..1cce53f11 100644
--- a/seed/node/sched.om
+++ b/seed/node/sched.om
@@ -48,8 +48,23 @@ note lasts until dispatch resumes.
 note Leases: a running job with a lease is reported once by sched_overdue
 note after its lease passes; the authority then cancels or kills it, which
 note releases its resources.
+note
+note Policy 2, goal-aware fair fitting (DRA-397): policy 1 with a different
+note order among the examined jobs that fit: larger unblock value first (the
+note waiting jobs, to depth 2, that the job's declared topics would make
+note ready), then smaller declared estimate, then older admission. The
+note reservation, the hold-back, feasibility and the bypass budget are
+note those of policy 1 and come first, so ranking cannot starve old work.
+note Values are rescored only when the graph version moved (a job became
+note ready, a waiting job was admitted, a job was cancelled, a declaration
+note changed), once per pick however many changes came before it.
+note Completions, releases and lease expiry replan (every step dispatches)
+note without rescoring. A proposal names a job by id and the graph version
+note it was computed at, and is rejected when that version is no longer
+note current; the version carries the scheduler's incarnation, so a
+note proposal made for another scheduler is never current here.
 const SJCAP ulong 64
-const SPVER ulong 2
+const SPVER ulong 3
 global scmap long 2
 global sclim ulong 2
 global sjst ulong 64
@@ -85,6 +100,29 @@ note made, 7 impossible requests refused, 8 head-of-line stops, 9 reserved
 note jobs assigned, 10 tickets issued, 11 tickets lapsed, 12 leases overdue,
 note 13 maintenance slot reads, 14 window scans.
 global scst ulong 16
+note Goal-aware ranking (policy 2): sjpro the topics a job declares its
+note completion publishes, sjest its declared work estimate in ms, sjunc
+note that estimate's uncertainty in ms, sjval its unblock value in jobs as
+note last scored. scgv: 0 graph version, 1 version last scored, 2 proposed
+note job slot + 1 (0 none), 3 version the proposal named, 4 proposal state
+note (0 no incarnation yet: proposals refused; 1 accepting; 2 the version
+note is exhausted: proposals refused for the rest of this scheduler). The
+note graph version is the scheduler's incarnation (sched_incarnate, once)
+note times 2^40 plus the bumps since, never more than 2^40 - 1 of them: the
+note bump that would carry into the next incarnation's range exhausts the
+note version instead, so schedulers of different incarnations never share a
+note version. Within one scheduler every admission of a job, cancellation
+note of a waiting or ready one and readiness bumps it, so a proposal whose
+note version is current still names the job it was made for.
+global sjpro ulong 64
+global sjest ulong 64
+global sjunc ulong 64
+global sjval ulong 64
+global scgv ulong 5
+note Goal counters (sched_stat 32..39): 0 rescores, 1 jobs scored, 2 graph
+note version bumps, 3 proposals accepted, 4 proposals stale, 5 proposals
+note refused, 6 slots read by value traversal, 7 proposals used.
+global scgst ulong 8
 
 fn sc_cell w ulong off ulong to ulong
 ret mapget get scmap 0 add mul w 128 off 8
@@ -125,6 +163,10 @@ put sjst j 0
 put sjheld j 0
 put sjlse j 0
 put sjdue j 0
+put sjpro j 0
+put sjest j 0
+put sjunc j 0
+put sjval j 0
 put scbusy j 0
 put scseq j 0
 end
@@ -135,6 +177,12 @@ end
 for i ulong 16
 put scst i 0
 end
+for i ulong 8
+put scgst i 0
+end
+for i ulong 5
+put scgv i 0
+end
 put scpol 0 1
 put scpol 1 64
 put scpol 2 64
@@ -211,10 +259,13 @@ fn sp_ready j ulong to void
 put sjst j 2
 put sjrdy j get scst 1
 put scst 1 add get scst 1 1
+sp_bump
 end
 
 note Creator: counter i of scst, capacity (i 16..19) or use (i 20..23) of a
-note kind, or policy word (i 24..31).
+note kind, policy word (i 24..31), goal counter (i 32..39), graph version
+note (i 40), proposal state (i 41: 0 no incarnation, 1 accepting, 2
+note exhausted).
 fn sched_stat i ulong to ulong
 if lt i 16
 ret get scst i
@@ -228,6 +279,15 @@ end
 if lt i 32
 ret get scpol sub i 24
 end
+if lt i 40
+ret get scgst sub i 32
+end
+if eq i 40
+ret get scgv 0
+end
+if eq i 41
+ret get scgv 4
+end
 ret 0
 end
 
@@ -257,12 +317,13 @@ end
 ret 0
 end
 
-note Creator: policy p (0 FIFO head-of-line, 1 fair fitting), candidate
-note window win slots (1..64), dispatch budget db jobs per event (1..64),
-note bypass budget by (1..65535), ticket lifetime ttl dispatch events
-note (1..1000000). The cursor and any reservation are kept. 0 or -7.
+note Creator: policy p (0 FIFO head-of-line, 1 fair fitting, 2 goal-aware
+note fair fitting), candidate window win slots (1..64), dispatch budget db
+note jobs per event (1..64), bypass budget by (1..65535), ticket lifetime
+note ttl dispatch events (1..1000000). The cursor and any reservation are
+note kept. 0 or -7.
 fn sched_policy p ulong win ulong db ulong by ulong ttl ulong to long
-if gt p 1
+if gt p 2
 ret neg long 7
 end
 if or eq win 0 gt win 64
@@ -423,10 +484,15 @@ put sjlse j 0
 put sjdue j 0
 put sjarr j get scst 0
 put scst 0 add get scst 0 1
+put sjpro j 0
+put sjest j 0
+put sjunc j 0
+put sjval j 0
 if eq deps 0
 sp_ready j
 else
 put sjst j 1
+sp_bump
 end
 ret long j
 end
@@ -587,6 +653,14 @@ else
 put scpol 5 0
 end
 end
+goal = eq get scpol 0 2
+if goal
+sp_rescore
+pj = sp_proposal rq
+if lt pj 64
+ret pj
+end
+end
 win = get scpol 1
 cur = get scpol 4
 b = ulong 64
@@ -599,7 +673,7 @@ if sp_fits get sjneed j rq
 if eq b 64
 b = j
 else
-if lt get sjarr j get sjarr b
+if sp_better goal j b
 b = j
 end
 end
@@ -610,6 +684,215 @@ put scpol 4 rem add cur win 64
 ret b
 end
 
+note Ranking key, both of ready jobs a and b: is a better? Policy 1: older
+note admission. Policy 2: larger unblock value, then smaller declared
+note estimate, then older admission (admission orders are unique, so there
+note is never a tie).
+fn sp_better goal bool a ulong b ulong to bool
+if goal
+va = get sjval a
+vb = get sjval b
+if ne va vb
+ret gt va vb
+end
+ea = get sjest a
+eb = get sjest b
+if ne ea eb
+ret lt ea eb
+end
+end
+ret lt get sjarr a get sjarr b
+end
+
+note A committed change that can alter an unblock value: a job becomes
+note ready, a waiting job is admitted, a waiting or ready job is cancelled,
+note or a declaration changes. Bumps the graph version, which makes any
+note proposal stale (rejected when next used). Nothing is rescored here:
+note the next policy-2 pick rescores once, however many bumps came before
+note it (coalesced). At 2^40 - 1 bumps the version stays and is exhausted
+note (scgv 4 = 2): from then on proposals are refused and every pick
+note rescores.
+fn sp_bump to void
+put scgst 2 add get scgst 2 1
+if eq and get scgv 0 1099511627775 1099511627775
+put scgv 4 2
+ret
+end
+put scgv 0 add get scgv 0 1
+end
+
+note Unblock value of ready job j, in jobs: the waiting jobs whose deps meet
+note the topics j declares it unblocks (depth 1), plus the waiting jobs whose
+note deps meet the topics those declare (depth 2), each counted once. Reads
+note at most 128 slots.
+fn sp_value j ulong to ulong
+pro = get sjpro j
+if eq pro 0
+ret 0
+end
+n = ulong 0
+m = ulong 0
+p2 = ulong 0
+for k ulong 64
+if eq get sjst k 1
+if ne and get sjdep k pro 0
+m = or m shl ulong 1 k
+p2 = or p2 get sjpro k
+n = add n 1
+end
+end
+end
+put scgst 6 add get scgst 6 64
+if eq p2 0
+ret n
+end
+for k ulong 64
+if eq get sjst k 1
+if eq and shr m k 1 0
+if ne and get sjdep k p2 0
+n = add n 1
+end
+end
+end
+end
+put scgst 6 add get scgst 6 64
+ret n
+end
+
+note Recompute the unblock value of every ready job when the graph version
+note moved since the last scoring, or always once it is exhausted;
+note otherwise nothing.
+fn sp_rescore to void
+v = get scgv 0
+if and eq get scgv 1 v ne get scgv 4 2
+ret
+end
+for j ulong 64
+if eq get sjst j 2
+put sjval j sp_value j
+put scgst 1 add get scgst 1 1
+end
+end
+put scgv 1 v
+put scgst 0 add get scgst 0 1
+put scgst 6 add get scgst 6 64
+end
+
+note The proposed job, when the proposal is for the current graph version
+note (and that version is not exhausted) and the job is still ready and fits
+note beside the reservation (rq); it is used once. Otherwise the proposal
+note is dropped as stale: 64.
+fn sp_proposal rq ulong to ulong
+p = get scgv 2
+if eq p 0
+ret 64
+end
+put scgv 2 0
+put scst 3 add get scst 3 1
+j = sub p 1
+if and eq get scgv 3 get scgv 0 eq get scgv 4 1
+if eq get sjst j 2
+if sp_fits get sjneed j rq
+put scgst 7 add get scgst 7 1
+ret j
+end
+end
+end
+put scgst 4 add get scgst 4 1
+ret 64
+end
+
+note Creator: declare what job j (waiting or ready) is expected to unblock
+note and cost: pro, the topics its completion will publish; est, the work
+note estimate in ms (declared, or derived by the caller from measurements);
+note unc, its uncertainty in ms (recorded, not used to rank). 0, or -3.
+fn sched_goal j ulong pro ulong est ulong unc ulong to long
+if ge j 64
+ret neg long 3
+end
+s = get sjst j
+if or eq s 0 gt s 2
+ret neg long 3
+end
+put sjpro j pro
+put sjest j est
+put sjunc j unc
+sp_bump
+ret 0
+end
+
+note Creator: the graph version that proposals must name.
+fn sched_version to ulong
+ret get scgv 0
+end
+
+note Creator, after sched_new: incarnation n (1..2^24 - 1), distinct
+note for every scheduler that may receive proposals meant for another (the
+note journal fence, DRA-398). The graph version becomes n * 2^40, which no
+note scheduler of another incarnation reaches, any proposal is dropped and
+note proposals are accepted from now on. The last scoring stays below n *
+note 2^40, so the next ranking pass rescores whatever was admitted or
+note declared before, whenever the incarnation comes. Once per
+note scheduler: 0, or -7 (n out of range, or already set or exhausted).
+fn sched_incarnate n ulong to long
+if or eq n 0 ge n 16777216
+ret neg long 7
+end
+if ne get scgv 4 0
+ret neg long 7
+end
+put scgv 0 shl n 40
+put scgv 2 0
+put scgv 4 1
+ret 0
+end
+
+note Creator, policy 2: propose the ready job whose id is id for the next
+note pick, computed at graph version v (an outside planner, or an
+note operator). The proposal names the job, not its slot. Reservations and
+note feasibility still come first: it is checked again when used. 0; -6 no
+note incarnation set or the version exhausted; -9 stale (v is not the
+note current version); -3 no ready job, or more than one, has that id; -8
+note it does not fit beside the reservation; -7 not policy 2.
+fn sched_propose id ulong v ulong to long
+if ne get scpol 0 2
+ret neg long 7
+end
+if ne get scgv 4 1
+put scgst 5 add get scgst 5 1
+ret neg long 6
+end
+if ne v get scgv 0
+put scgst 4 add get scgst 4 1
+ret neg long 9
+end
+j = ulong 64
+n = ulong 0
+for k ulong 64
+if and eq get sjst k 2 eq get sjid k id
+j = k
+n = add n 1
+end
+end
+if ne n 1
+put scgst 5 add get scgst 5 1
+ret neg long 3
+end
+rq = ulong 0
+r = get scpol 5
+if gt r 0
+rq = get sjneed sub r 1
+end
+if not sp_fits get sjneed j rq
+put scgst 5 add get scgst 5 1
+ret neg long 8
+end
+put scgv 2 add j 1
+put scgv 3 v
+put scgst 3 add get scgst 3 1
+ret 0
+end
+
 note After a fair dispatch event in which ya - 1 was the youngest admission
 note assigned (ya 0: none): every ready job admitted before it was bypassed
 note once; with no reservation, the oldest job at the bypass budget is
@@ -654,7 +937,7 @@ end
 n = mapget c 48 8
 k = ulong 0
 ya = ulong 0
-fair = eq get scpol 0 1
+fair = ge get scpol 0 1
 put scst 2 add get scst 2 1
 for i ulong get scpol 2 bound 64
 w = sp_idle n
@@ -836,6 +1119,7 @@ end
 s = get sjst j
 if or eq s 1 eq s 2
 put sjst j 0
+sp_bump
 if eq get scpol 5 add j 1
 put scpol 5 0
 end
diff --git a/seed/node/schedpol-gate.om b/seed/node/schedpol-gate.om
index f924ba320..8f9f12f58 100644
--- a/seed/node/schedpol-gate.om
+++ b/seed/node/schedpol-gate.om
@@ -974,8 +974,23 @@ note lasts until dispatch resumes.
 note Leases: a running job with a lease is reported once by sched_overdue
 note after its lease passes; the authority then cancels or kills it, which
 note releases its resources.
+note
+note Policy 2, goal-aware fair fitting (DRA-397): policy 1 with a different
+note order among the examined jobs that fit: larger unblock value first (the
+note waiting jobs, to depth 2, that the job's declared topics would make
+note ready), then smaller declared estimate, then older admission. The
+note reservation, the hold-back, feasibility and the bypass budget are
+note those of policy 1 and come first, so ranking cannot starve old work.
+note Values are rescored only when the graph version moved (a job became
+note ready, a waiting job was admitted, a job was cancelled, a declaration
+note changed), once per pick however many changes came before it.
+note Completions, releases and lease expiry replan (every step dispatches)
+note without rescoring. A proposal names a job by id and the graph version
+note it was computed at, and is rejected when that version is no longer
+note current; the version carries the scheduler's incarnation, so a
+note proposal made for another scheduler is never current here.
 const SJCAP ulong 64
-const SPVER ulong 2
+const SPVER ulong 3
 global scmap long 2
 global sclim ulong 2
 global sjst ulong 64
@@ -1011,6 +1026,29 @@ note made, 7 impossible requests refused, 8 head-of-line stops, 9 reserved
 note jobs assigned, 10 tickets issued, 11 tickets lapsed, 12 leases overdue,
 note 13 maintenance slot reads, 14 window scans.
 global scst ulong 16
+note Goal-aware ranking (policy 2): sjpro the topics a job declares its
+note completion publishes, sjest its declared work estimate in ms, sjunc
+note that estimate's uncertainty in ms, sjval its unblock value in jobs as
+note last scored. scgv: 0 graph version, 1 version last scored, 2 proposed
+note job slot + 1 (0 none), 3 version the proposal named, 4 proposal state
+note (0 no incarnation yet: proposals refused; 1 accepting; 2 the version
+note is exhausted: proposals refused for the rest of this scheduler). The
+note graph version is the scheduler's incarnation (sched_incarnate, once)
+note times 2^40 plus the bumps since, never more than 2^40 - 1 of them: the
+note bump that would carry into the next incarnation's range exhausts the
+note version instead, so schedulers of different incarnations never share a
+note version. Within one scheduler every admission of a job, cancellation
+note of a waiting or ready one and readiness bumps it, so a proposal whose
+note version is current still names the job it was made for.
+global sjpro ulong 64
+global sjest ulong 64
+global sjunc ulong 64
+global sjval ulong 64
+global scgv ulong 5
+note Goal counters (sched_stat 32..39): 0 rescores, 1 jobs scored, 2 graph
+note version bumps, 3 proposals accepted, 4 proposals stale, 5 proposals
+note refused, 6 slots read by value traversal, 7 proposals used.
+global scgst ulong 8
 
 fn sc_cell w ulong off ulong to ulong
 ret mapget get scmap 0 add mul w 128 off 8
@@ -1051,6 +1089,10 @@ put sjst j 0
 put sjheld j 0
 put sjlse j 0
 put sjdue j 0
+put sjpro j 0
+put sjest j 0
+put sjunc j 0
+put sjval j 0
 put scbusy j 0
 put scseq j 0
 end
@@ -1061,6 +1103,12 @@ end
 for i ulong 16
 put scst i 0
 end
+for i ulong 8
+put scgst i 0
+end
+for i ulong 5
+put scgv i 0
+end
 put scpol 0 1
 put scpol 1 64
 put scpol 2 64
@@ -1137,10 +1185,13 @@ fn sp_ready j ulong to void
 put sjst j 2
 put sjrdy j get scst 1
 put scst 1 add get scst 1 1
+sp_bump
 end
 
 note Creator: counter i of scst, capacity (i 16..19) or use (i 20..23) of a
-note kind, or policy word (i 24..31).
+note kind, policy word (i 24..31), goal counter (i 32..39), graph version
+note (i 40), proposal state (i 41: 0 no incarnation, 1 accepting, 2
+note exhausted).
 fn sched_stat i ulong to ulong
 if lt i 16
 ret get scst i
@@ -1154,6 +1205,15 @@ end
 if lt i 32
 ret get scpol sub i 24
 end
+if lt i 40
+ret get scgst sub i 32
+end
+if eq i 40
+ret get scgv 0
+end
+if eq i 41
+ret get scgv 4
+end
 ret 0
 end
 
@@ -1183,12 +1243,13 @@ end
 ret 0
 end
 
-note Creator: policy p (0 FIFO head-of-line, 1 fair fitting), candidate
-note window win slots (1..64), dispatch budget db jobs per event (1..64),
-note bypass budget by (1..65535), ticket lifetime ttl dispatch events
-note (1..1000000). The cursor and any reservation are kept. 0 or -7.
+note Creator: policy p (0 FIFO head-of-line, 1 fair fitting, 2 goal-aware
+note fair fitting), candidate window win slots (1..64), dispatch budget db
+note jobs per event (1..64), bypass budget by (1..65535), ticket lifetime
+note ttl dispatch events (1..1000000). The cursor and any reservation are
+note kept. 0 or -7.
 fn sched_policy p ulong win ulong db ulong by ulong ttl ulong to long
-if gt p 1
+if gt p 2
 ret neg long 7
 end
 if or eq win 0 gt win 64
@@ -1349,10 +1410,15 @@ put sjlse j 0
 put sjdue j 0
 put sjarr j get scst 0
 put scst 0 add get scst 0 1
+put sjpro j 0
+put sjest j 0
+put sjunc j 0
+put sjval j 0
 if eq deps 0
 sp_ready j
 else
 put sjst j 1
+sp_bump
 end
 ret long j
 end
@@ -1513,6 +1579,14 @@ else
 put scpol 5 0
 end
 end
+goal = eq get scpol 0 2
+if goal
+sp_rescore
+pj = sp_proposal rq
+if lt pj 64
+ret pj
+end
+end
 win = get scpol 1
 cur = get scpol 4
 b = ulong 64
@@ -1525,7 +1599,7 @@ if sp_fits get sjneed j rq
 if eq b 64
 b = j
 else
-if lt get sjarr j get sjarr b
+if sp_better goal j b
 b = j
 end
 end
@@ -1536,6 +1610,215 @@ put scpol 4 rem add cur win 64
 ret b
 end
 
+note Ranking key, both of ready jobs a and b: is a better? Policy 1: older
+note admission. Policy 2: larger unblock value, then smaller declared
+note estimate, then older admission (admission orders are unique, so there
+note is never a tie).
+fn sp_better goal bool a ulong b ulong to bool
+if goal
+va = get sjval a
+vb = get sjval b
+if ne va vb
+ret gt va vb
+end
+ea = get sjest a
+eb = get sjest b
+if ne ea eb
+ret lt ea eb
+end
+end
+ret lt get sjarr a get sjarr b
+end
+
+note A committed change that can alter an unblock value: a job becomes
+note ready, a waiting job is admitted, a waiting or ready job is cancelled,
+note or a declaration changes. Bumps the graph version, which makes any
+note proposal stale (rejected when next used). Nothing is rescored here:
+note the next policy-2 pick rescores once, however many bumps came before
+note it (coalesced). At 2^40 - 1 bumps the version stays and is exhausted
+note (scgv 4 = 2): from then on proposals are refused and every pick
+note rescores.
+fn sp_bump to void
+put scgst 2 add get scgst 2 1
+if eq and get scgv 0 1099511627775 1099511627775
+put scgv 4 2
+ret
+end
+put scgv 0 add get scgv 0 1
+end
+
+note Unblock value of ready job j, in jobs: the waiting jobs whose deps meet
+note the topics j declares it unblocks (depth 1), plus the waiting jobs whose
+note deps meet the topics those declare (depth 2), each counted once. Reads
+note at most 128 slots.
+fn sp_value j ulong to ulong
+pro = get sjpro j
+if eq pro 0
+ret 0
+end
+n = ulong 0
+m = ulong 0
+p2 = ulong 0
+for k ulong 64
+if eq get sjst k 1
+if ne and get sjdep k pro 0
+m = or m shl ulong 1 k
+p2 = or p2 get sjpro k
+n = add n 1
+end
+end
+end
+put scgst 6 add get scgst 6 64
+if eq p2 0
+ret n
+end
+for k ulong 64
+if eq get sjst k 1
+if eq and shr m k 1 0
+if ne and get sjdep k p2 0
+n = add n 1
+end
+end
+end
+end
+put scgst 6 add get scgst 6 64
+ret n
+end
+
+note Recompute the unblock value of every ready job when the graph version
+note moved since the last scoring, or always once it is exhausted;
+note otherwise nothing.
+fn sp_rescore to void
+v = get scgv 0
+if and eq get scgv 1 v ne get scgv 4 2
+ret
+end
+for j ulong 64
+if eq get sjst j 2
+put sjval j sp_value j
+put scgst 1 add get scgst 1 1
+end
+end
+put scgv 1 v
+put scgst 0 add get scgst 0 1
+put scgst 6 add get scgst 6 64
+end
+
+note The proposed job, when the proposal is for the current graph version
+note (and that version is not exhausted) and the job is still ready and fits
+note beside the reservation (rq); it is used once. Otherwise the proposal
+note is dropped as stale: 64.
+fn sp_proposal rq ulong to ulong
+p = get scgv 2
+if eq p 0
+ret 64
+end
+put scgv 2 0
+put scst 3 add get scst 3 1
+j = sub p 1
+if and eq get scgv 3 get scgv 0 eq get scgv 4 1
+if eq get sjst j 2
+if sp_fits get sjneed j rq
+put scgst 7 add get scgst 7 1
+ret j
+end
+end
+end
+put scgst 4 add get scgst 4 1
+ret 64
+end
+
+note Creator: declare what job j (waiting or ready) is expected to unblock
+note and cost: pro, the topics its completion will publish; est, the work
+note estimate in ms (declared, or derived by the caller from measurements);
+note unc, its uncertainty in ms (recorded, not used to rank). 0, or -3.
+fn sched_goal j ulong pro ulong est ulong unc ulong to long
+if ge j 64
+ret neg long 3
+end
+s = get sjst j
+if or eq s 0 gt s 2
+ret neg long 3
+end
+put sjpro j pro
+put sjest j est
+put sjunc j unc
+sp_bump
+ret 0
+end
+
+note Creator: the graph version that proposals must name.
+fn sched_version to ulong
+ret get scgv 0
+end
+
+note Creator, after sched_new: incarnation n (1..2^24 - 1), distinct
+note for every scheduler that may receive proposals meant for another (the
+note journal fence, DRA-398). The graph version becomes n * 2^40, which no
+note scheduler of another incarnation reaches, any proposal is dropped and
+note proposals are accepted from now on. The last scoring stays below n *
+note 2^40, so the next ranking pass rescores whatever was admitted or
+note declared before, whenever the incarnation comes. Once per
+note scheduler: 0, or -7 (n out of range, or already set or exhausted).
+fn sched_incarnate n ulong to long
+if or eq n 0 ge n 16777216
+ret neg long 7
+end
+if ne get scgv 4 0
+ret neg long 7
+end
+put scgv 0 shl n 40
+put scgv 2 0
+put scgv 4 1
+ret 0
+end
+
+note Creator, policy 2: propose the ready job whose id is id for the next
+note pick, computed at graph version v (an outside planner, or an
+note operator). The proposal names the job, not its slot. Reservations and
+note feasibility still come first: it is checked again when used. 0; -6 no
+note incarnation set or the version exhausted; -9 stale (v is not the
+note current version); -3 no ready job, or more than one, has that id; -8
+note it does not fit beside the reservation; -7 not policy 2.
+fn sched_propose id ulong v ulong to long
+if ne get scpol 0 2
+ret neg long 7
+end
+if ne get scgv 4 1
+put scgst 5 add get scgst 5 1
+ret neg long 6
+end
+if ne v get scgv 0
+put scgst 4 add get scgst 4 1
+ret neg long 9
+end
+j = ulong 64
+n = ulong 0
+for k ulong 64
+if and eq get sjst k 2 eq get sjid k id
+j = k
+n = add n 1
+end
+end
+if ne n 1
+put scgst 5 add get scgst 5 1
+ret neg long 3
+end
+rq = ulong 0
+r = get scpol 5
+if gt r 0
+rq = get sjneed sub r 1
+end
+if not sp_fits get sjneed j rq
+put scgst 5 add get scgst 5 1
+ret neg long 8
+end
+put scgv 2 add j 1
+put scgv 3 v
+put scgst 3 add get scgst 3 1
+ret 0
+end
+
 note After a fair dispatch event in which ya - 1 was the youngest admission
 note assigned (ya 0: none): every ready job admitted before it was bypassed
 note once; with no reservation, the oldest job at the bypass budget is
@@ -1580,7 +1863,7 @@ end
 n = mapget c 48 8
 k = ulong 0
 ya = ulong 0
-fair = eq get scpol 0 1
+fair = ge get scpol 0 1
 put scst 2 add get scst 2 1
 for i ulong get scpol 2 bound 64
 w = sp_idle n
@@ -1762,6 +2045,7 @@ end
 s = get sjst j
 if or eq s 1 eq s 2
 put sjst j 0
+sp_bump
 if eq get scpol 5 add j 1
 put scpol 5 0
 end
@@ -1897,16 +2181,23 @@ text phol " hol_stops="
 text pbyp " bypasses="
 text pres " reservations="
 text pnl "\n"
+text ptr "schedpol goal trace "
+text psp " "
 text pw1 "schedpol hol witness head="
 text pw2 " fits_behind="
 text pw3 " free_cpu="
 text pw4 " idle_worker="
 global ptc long 1
-note Mode: 0 default policy, 1 fifo, 2 noreserve.
+note Mode: 0 default policy, 1 fifo, 2 noreserve, 3 goal (policy 2).
 global ptm ulong 1
-note pt_step snapshot: event count, candidate reads, maintenance reads,
-note assigned, before the step.
-global ptb ulong 4
+note Step-bound snapshot (pt_snap): event count, candidate reads,
+note maintenance reads, assigned, cursor, window scans.
+global ptb ulong 6
+note Phase G trace: ids in review order.
+global ptt ulong 16
+global ptn ulong 1
+note Value-read bound baseline: stats 38, 32, 33 at the last check.
+global ptv ulong 3
 
 fn pt_ok ok bool code int to void
 if not ok
@@ -2008,12 +2299,18 @@ put ptc 0 c
 pt_ok eq sup_init c 0 code
 pt_ok eq sched_new c a rl 0 code
 pt_ok eq sched_cap caps 0 code
+put ptv 0 sched_stat 38
+put ptv 1 sched_stat 32
+put ptv 2 sched_stat 33
 if eq get ptm 0 1
 pt_ok eq sched_policy 0 64 64 4 1000 0 code
 end
 if eq get ptm 0 2
 pt_ok eq sched_policy 1 64 64 65535 1000 0 code
 end
+if eq get ptm 0 3
+pt_ok eq sched_policy 2 64 64 4 1000 0 code
+end
 for i ulong w bound 64
 pt_ok pt_spawn c i code
 end
@@ -2056,30 +2353,52 @@ end
 note One creator step of up to 10 ms, then the invariant and the scan
 note bounds since the last step. An event makes at most one pick more than
 note it assigns, so candidate reads are at most (assigned + events) x
-note (window + 1), the reserved probe included, or x 64 under FIFO (policy
-note 0), 9; maintenance reads at most 64 per event, 14; the cursor moved by
-note exactly the window per window scan, mod 64, 15. The last is the
-note traversal witness: window scans cover consecutive windows, so
-note ceil(64/win) of them examine every slot.
+note (window + 1), the reserved probe included, plus one proposal probe per
+note pick under policy 2, or x 64 under FIFO (policy 0), 9; maintenance reads
+note at most 64 per event, 14; the cursor moved by exactly the window per
+note window scan, mod 64, 15 (the traversal witness: window scans cover
+note consecutive windows, so ceil(64/win) of them examine every slot); value
+note reads at most 64 per rescoring plus 128 per job scored, 8.
 fn pt_step c long code int to void
+pt_snap
+r = sched_step c 10000000
+pt_ok ge r 0 code
+pt_inv code
+pt_check
+end
+
+note Snapshot the counters the step bounds compare against (ptb).
+fn pt_snap to void
 put ptb 0 sched_stat 2
 put ptb 1 sched_stat 3
 put ptb 2 sched_stat 13
 put ptb 3 sched_stat 4
-u0 = sched_stat 28
-s0 = sched_stat 14
-r = sched_step c 10000000
-pt_ok ge r 0 code
-pt_inv code
+put ptb 4 sched_stat 28
+put ptb 5 sched_stat 14
+end
+
+note The bounds since pt_snap (exits 9, 14, 15, 8).
+fn pt_check to void
 w = add sched_stat 25 1
 if eq sched_stat 24 0
 w = ulong 64
 end
+if eq sched_stat 24 2
+w = add w 1
+end
 ev = sub sched_stat 2 get ptb 0
 lim = mul add sub sched_stat 4 get ptb 3 ev w
 pt_ok le sub sched_stat 3 get ptb 1 lim 9
 pt_ok le sub sched_stat 13 get ptb 2 mul ev 64 14
-pt_cursor u0 s0
+pt_cursor get ptb 4 get ptb 5
+pt_vbound
+end
+
+note Resume dispatch (it dispatches at once) inside the step bounds.
+fn pt_resume c long to void
+pt_snap
+k = sched_pause c false
+pt_check
 end
 
 note The cursor moved by the window once per window scan since (u0, s0).
@@ -2088,6 +2407,16 @@ d = mul sched_stat 25 sub sched_stat 14 s0
 pt_ok eq sched_stat 28 rem add u0 d 64 15
 end
 
+note The value-read bound since the last call (phase checks, exit 8).
+fn pt_vbound to void
+v = sched_stat 38
+lim = add mul sub sched_stat 32 get ptv 1 64 mul sub sched_stat 33 get ptv 2 128
+pt_ok le sub v get ptv 0 lim 8
+put ptv 0 v
+put ptv 1 sched_stat 32
+put ptv 2 sched_stat 33
+end
+
 note Step until job j is in a state in lo..hi, up to ms. True when reached.
 fn pt_until c long j ulong lo ulong hi ulong ms ulong code int to bool
 dl = add ulong monons mul ms 1000000
@@ -2238,10 +2567,9 @@ buf = new uchar 4096 0
 c = pt_setup 1 8 8 pt_req 4 1024 1 8 50
 x = pt_admit 60050 8 0 51
 y = pt_admit 70050 0 0 52
-u0 = sched_stat 28
-s0 = sched_stat 14
+pt_snap
 pt_ok gt sched_publish c 8 buf 16 0 53
-pt_cursor u0 s0
+pt_check
 if eq sched_stat 24 0
 pt_ok eq get sjst y 3 54
 pt_ok eq get sjst x 2 55
@@ -2590,10 +2918,7 @@ k = sched_pause c true
 a = pt_admit 480050 0 pt_req 1 0 0 0 195
 b = pt_admit 490050 0 pt_req 2 0 0 0 195
 x = pt_admit 510050 0 pt_req 1 0 0 0 195
-u0 = sched_stat 28
-s0 = sched_stat 14
-k = sched_pause c false
-pt_cursor u0 s0
+pt_resume c
 pt_ok eq sched_stat 29 add b 1 196
 dl = add ulong monons 600000000
 for t ulong 1000000
@@ -2617,13 +2942,328 @@ ret
 end
 n = argread 1 a 0 16
 if eq n 4
+if eq get a 0 102
 put ptm 0 1
 end
+if eq get a 0 103
+put ptm 0 3
+end
+end
 if eq n 9
 put ptm 0 2
 end
 end
 
+note Step, then review every job in review in slot order, appending its id
+note to the trace and publishing the topics it declared (as the workflow
+note does after accepting a result).
+fn pt_gstep c long buf edit uchar 4096 code int to void
+pt_step c code
+for j ulong 64
+if eq get sjst j 4
+p = get sjpro j
+n = get ptn 0
+if lt n 16
+put ptt n get sjid j
+end
+put ptn 0 add n 1
+pt_ok eq sched_review j long add get sjid j 1 code
+if ne p 0
+pt_snap
+pt_ok gt sched_publish c p buf 16 0 code
+pt_check
+end
+end
+end
+end
+
+fn pt_gadmit id ulong deps ulong pro ulong code int to ulong
+j = pt_admit id deps pt_req 1 0 0 0 code
+if ne pro 0
+pt_ok eq sched_goal j pro 50 10 0 code
+end
+ret j
+end
+
+note One run of the goal workload, one worker, policy 2, bypass budget 4,
+note admitted while paused: x (no value), z (unblocks d: value 1), a
+note (unblocks b, which unblocks c: value 2), f (unblocks g1..g3: value 3).
+note A decision is made when the worker frees, before the finished job's
+note topics are published. Order: f a z b x d c g1 g2 g3. f and a first
+note (useful work); x, bypassed in 4 events, is reserved and runs 5th.
+fn pt_grun code int to void
+buf = new uchar 4096 0
+c = pt_setup 1 16 16 pt_req 1 1024 1 8 code
+pt_ok eq sched_policy 2 64 64 4 1000 0 code
+k = sched_pause c true
+put ptn 0 0
+j = pt_gadmit 220050 0 0 code
+j = pt_gadmit 230050 0 128 code
+j = pt_gadmit 240050 128 0 code
+j = pt_gadmit 250050 0 32 code
+j = pt_gadmit 260050 32 64 code
+j = pt_gadmit 270050 64 0 code
+j = pt_gadmit 280050 0 256 code
+for i ulong 3
+j = pt_gadmit add 290050 mul i 10000 256 0 code
+end
+pt_resume c
+dl = add ulong monons 5000000000
+for t ulong 1000000
+if ge get ptn 0 10
+break
+end
+pt_ok lt ulong monons dl code
+pt_gstep c buf code
+end
+pt_down c code
+end
+
+note Phase G: goal-aware ranking. The goal workload runs twice; both traces
+note must equal the expected order (151 first run, 152 second): repeated
+note identical inputs, identical decisions.
+fn pt_goal to void
+ex = new ulong 10 0
+put ex 0 280050
+put ex 1 250050
+put ex 2 230050
+put ex 3 260050
+put ex 4 220050
+put ex 5 240050
+put ex 6 270050
+put ex 7 290050
+put ex 8 300050
+put ex 9 310050
+for r ulong 2
+code = int add 151 r
+pt_grun 150
+pt_ok eq get ptn 0 10 code
+for i ulong 10
+if ne get ptt i get ex i
+pt_trace
+exit code
+end
+end
+end
+end
+
+fn pt_trace to void
+r = write 1 ptr 0 len ptr
+for i ulong get ptn 0 bound 16
+pt_num get ptt i
+r = write 1 psp 0 1
+end
+r = write 1 pnl 0 1
+end
+
+note Phase H: rescoring. Policy 2, paused: one ready job r and two jobs
+note waiting on topic 512, then r declares topic 512: four graph changes,
+note no rescoring (160). The first pick rescores once for all four (161).
+note r completing and being reviewed with nothing published changes no
+note value: no rescoring (162). Publishing 512 readies both waiting jobs:
+note two changes, one more rescoring at the next pick (163). The work of
+note every rescoring is bounded (checked at each step, exit 8). Cancelling
+note a waiting job is one more change (165).
+fn pt_rescores to void
+buf = new uchar 4096 0
+c = pt_setup 1 8 8 pt_req 4 1024 1 8 160
+pt_ok eq sched_policy 2 64 64 4 1000 0 160
+k = sched_pause c true
+r = pt_admit 320050 0 pt_req 1 0 0 0 160
+w1 = pt_admit 330050 512 pt_req 1 0 0 0 160
+w2 = pt_admit 340050 512 pt_req 1 0 0 0 160
+pt_ok eq sched_goal r 512 50 10 0 160
+pt_ok eq sched_stat 34 4 160
+pt_ok eq sched_stat 32 0 160
+pt_resume c
+pt_ok eq sched_stat 32 1 161
+pt_ok eq get sjval r 2 161
+pt_drain c 1 2000 162
+pt_ok eq sched_stat 32 1 162
+pt_ok eq sched_stat 34 4 162
+pt_snap
+pt_ok gt sched_publish c 512 buf 16 0 163
+pt_check
+pt_ok eq sched_stat 34 6 163
+pt_ok eq sched_stat 32 2 163
+pt_drain c 2 2000 164
+pt_ok eq sched_stat 32 2 165
+w3 = pt_admit 345050 4096 pt_req 1 0 0 0 165
+b0 = sched_stat 34
+pt_ok eq sched_cancel w3 1 165
+pt_ok eq sched_stat 34 add b0 1 165
+pt_down c 166
+end
+
+note Phase K: the policy-2 key on two free slots, a and b. Larger unblock
+note value first, even when b is older and cheaper (180); equal values:
+note smaller estimate first, even when b is older (181); equal values and
+note estimates: older admission first (182); outside policy 2 only the
+note admission age counts (183).
+fn pt_key to void
+a = ulong 60
+b = ulong 61
+put sjval a 2
+put sjval b 1
+put sjest a 90
+put sjest b 10
+put sjarr a 9
+put sjarr b 8
+pt_ok sp_better true a b 180
+pt_ok not sp_better true b a 180
+put sjval b 2
+put sjest a 10
+put sjest b 90
+pt_ok sp_better true a b 181
+pt_ok not sp_better true b a 181
+put sjest b 10
+pt_ok sp_better true b a 182
+pt_ok not sp_better true a b 182
+put sjval a 5
+put sjest b 1
+pt_ok sp_better false b a 183
+pt_ok not sp_better false a b 183
+for i ulong 2
+put sjval add a i 0
+put sjest add a i 0
+put sjarr add a i 0
+end
+end
+
+note Phase P: proposals. Policy 2, paused. p1 (value 0) and p2 (value 1)
+note are ready. A proposal naming an older graph version is refused (170)
+note and counted (171); one naming an id with no ready job is refused
+note (172); p1 at the current version is accepted (173) and used over the
+note higher ranked p2 (174). A proposal made stale by a later change is
+note rejected when next used and counted: p3 runs by rank, after p2 (175,
+note 176). Outside policy 2: -7 (177).
+fn pt_proposals to void
+c = pt_setup 1 8 8 pt_req 4 1024 1 8 170
+pt_ok eq sched_incarnate 1 0 170
+pt_ok eq sched_policy 2 64 64 4 1000 0 170
+k = sched_pause c true
+p1 = pt_admit 350050 0 pt_req 1 0 0 0 170
+p2 = pt_admit 360050 0 pt_req 1 0 0 0 170
+q = pt_admit 370050 1024 pt_req 1 0 0 0 170
+pt_ok eq sched_goal p2 1024 50 10 0 170
+v = sched_version
+p3 = pt_admit 380050 0 pt_req 1 0 0 0 170
+pt_ok eq sched_propose 350050 v neg long 9 170
+pt_ok eq sched_stat 36 1 171
+v = sched_version
+pt_ok eq sched_propose 999999 v neg long 3 172
+pt_ok eq sched_propose 350050 v 0 173
+pt_resume c
+pt_ok eq get sjst p1 3 174
+pt_ok eq sched_stat 39 1 174
+k = sched_pause c true
+v = sched_version
+pt_ok eq sched_propose 380050 v 0 175
+p4 = pt_admit 390050 2048 pt_req 1 0 0 0 175
+pt_ok eq sched_goal p3 0 10 1 0 175
+pt_resume c
+pt_ok pt_until c p2 3 4 2000 175 175
+pt_ok eq get sjst p3 2 176
+pt_ok eq sched_stat 39 1 176
+pt_ok eq sched_stat 36 2 176
+pt_ok eq sched_cancel p4 1 176
+pt_ok eq sched_cancel q 1 176
+pt_drain c 3 3000 176
+pt_ok eq sched_policy 1 64 64 4 1000 0 177
+pt_ok eq sched_propose 350050 sched_version neg long 7 177
+pt_down c 178
+end
+
+note Phase I: a proposal from an earlier scheduler. Scheduler 1
+note (incarnation 1) admits a into slot 0 and hands out the version;
+note scheduler 2 (incarnation 2) admits b into slot 0 with as many bumps.
+note There the old version is stale (184); a's id names no job even at the
+note current version, b's is accepted, and incarnation 0 is refused (185).
+fn pt_incarn to void
+c = pt_setup 1 8 8 pt_req 4 1024 1 8 184
+pt_ok eq sched_incarnate 1 0 184
+pt_ok eq sched_policy 2 64 64 4 1000 0 184
+k = sched_pause c true
+a = pt_admit 670050 0 pt_req 1 0 0 0 184
+pt_ok eq a 0 184
+v1 = sched_version
+pt_ok eq sched_cancel a 1 184
+pt_down c 184
+c = pt_setup 1 8 8 pt_req 4 1024 1 8 184
+pt_ok eq sched_incarnate 2 0 184
+pt_ok eq sched_policy 2 64 64 4 1000 0 184
+k = sched_pause c true
+b = pt_admit 680050 0 pt_req 1 0 0 0 184
+pt_ok eq b 0 184
+pt_ok eq sched_propose 670050 v1 neg long 9 184
+pt_ok eq sched_propose 670050 sched_version neg long 3 185
+pt_ok eq sched_propose 680050 sched_version 0 185
+pt_ok eq sched_incarnate 0 neg long 7 185
+pt_ok eq sched_cancel b 1 185
+pt_down c 185
+end
+
+note Phase R2: a proposal beside a reservation. Policy 2, bypass budget 1,
+note two workers, 5 CPU. h (2 CPU, 5 s) runs; then B and B2 (4 CPU each)
+note and s1 (1 CPU, 1.5 s) are admitted: s1 runs, B and B2 are bypassed and
+note B, the older, is reserved. x (2 CPU) is refused beside it and counted
+note (186). Cancelling B clears the reservation and x is accepted (187).
+note An event with no idle worker reserves B2 and leaves the proposal
+note pending (188). Once s1 is done, the next pick finds x no longer fits
+note beside B2: the proposal is dropped and counted stale, and x does not
+note run (189). Once h is done B2 fits; y (1 CPU) is accepted beside it,
+note and at the next event B2 runs first, then y is used; x (2 CPU, 0
+note left) stays ready and, bypassed by y, is now the reservation (179).
+fn pt_propres to void
+c = pt_setup 2 8 8 pt_req 5 1024 2 8 186
+pt_ok eq sched_incarnate 1 0 186
+pt_ok eq sched_policy 2 64 64 1 1000 0 186
+k = sched_pause c true
+h = pt_admit 625000 0 pt_req 2 0 0 0 186
+pt_resume c
+k = sched_pause c true
+pt_ok eq get sjst h 3 186
+b = pt_admit 630050 0 pt_req 4 0 0 0 186
+b2 = pt_admit 640050 0 pt_req 4 0 0 0 186
+s1 = pt_admit 651500 0 pt_req 1 0 0 0 186
+pt_resume c
+k = sched_pause c true
+pt_ok eq get sjst s1 3 186
+pt_ok eq sched_stat 29 add b 1 186
+x = pt_admit 660050 0 pt_req 2 0 0 0 186
+r0 = sched_stat 37
+pt_ok eq sched_propose 660050 sched_version neg long 8 186
+pt_ok eq sched_stat 37 add r0 1 186
+pt_ok eq sched_cancel b 1 187
+pt_ok eq sched_stat 29 0 187
+pt_ok eq sched_propose 660050 sched_version 0 187
+pt_resume c
+k = sched_pause c true
+pt_ok eq sched_stat 29 add b2 1 188
+pt_ok gt get scgv 2 0 188
+pt_ok pt_until c s1 4 4 3000 188 188
+s0 = sched_stat 36
+pt_resume c
+k = sched_pause c true
+pt_ok eq sched_stat 36 add s0 1 189
+pt_ok eq get sjst x 2 189
+pt_ok eq get scgv 2 0 189
+y = pt_admit 690050 0 pt_req 1 0 0 0 179
+pt_ok pt_until c h 4 4 6000 179 179
+pt_ok eq sched_propose 690050 sched_version 0 179
+s0 = sched_stat 39
+pt_resume c
+k = sched_pause c true
+pt_ok eq get sjst b2 3 179
+pt_ok eq get sjst y 3 179
+pt_ok eq sched_stat 39 add s0 1 179
+pt_ok eq sched_stat 29 add x 1 179
+pt_ok eq get sjst x 2 179
+pt_ok eq sched_cancel x 1 179
+pt_drain c 4 8000 179
+pt_down c 189
+end
+
 fn pt_stats to void
 r = write 1 pst 0 len pst
 pt_num sched_stat 2
@@ -2640,6 +3280,78 @@ pt_num sched_stat 6
 r = write 1 pnl 0 1
 end
 
+note Phase X: proposal guards. Without an incarnation a proposal is refused
+note (120); a second incarnation is refused (121); after the first one a
+note proposal is accepted and used (122). The version is then set to the
+note last revision of incarnation 5 (2^40 - 1 bumps): a proposal made there
+note is accepted, and the next bump exhausts the version instead of
+note carrying it into incarnation 6's range (123); proposals are refused
+note (124), the pending one is dropped at use (125) and every pick rescores
+note (126). In a new scheduler, two ready jobs share an id: a proposal
+note naming it is refused (127).
+fn pt_incx to void
+c = pt_setup 1 8 8 pt_req 4 1024 1 8 120
+pt_ok eq sched_policy 2 64 64 4 1000 0 120
+k = sched_pause c true
+a = pt_admit 710050 0 pt_req 1 0 0 0 120
+pt_ok eq sched_propose 710050 sched_version neg long 6 120
+pt_ok eq sched_stat 41 0 120
+pt_ok eq sched_incarnate 5 0 121
+pt_ok eq sched_incarnate 6 neg long 7 121
+pt_ok eq sched_propose 710050 sched_version 0 122
+pt_ok eq sp_proposal 0 a 122
+put scgv 0 add shl ulong 5 40 1099511627775
+v = sched_version
+pt_ok eq sched_propose 710050 v 0 123
+pt_ok eq sched_goal a 0 10 1 0 123
+pt_ok eq sched_version v 123
+pt_ok eq shr sched_version 40 5 123
+pt_ok eq sched_stat 41 2 123
+pt_ok eq sched_propose 710050 v neg long 6 124
+pt_ok eq sp_proposal 0 64 125
+r0 = sched_stat 32
+sp_rescore
+sp_rescore
+pt_ok eq sched_stat 32 add r0 2 126
+pt_ok eq sched_cancel a 1 126
+pt_down c 126
+c = pt_setup 1 8 8 pt_req 4 1024 1 8 127
+pt_ok eq sched_incarnate 7 0 127
+pt_ok eq sched_policy 2 64 64 4 1000 0 127
+k = sched_pause c true
+b1 = pt_admit 720050 0 pt_req 1 0 0 0 127
+b2 = pt_admit 720050 0 pt_req 1 0 0 0 127
+pt_ok ne b1 b2 127
+pt_ok eq sched_propose 720050 sched_version neg long 3 127
+pt_ok eq sched_cancel b1 1 127
+pt_ok eq sched_cancel b2 1 127
+pt_down c 127
+end
+
+note Phase L: a late first incarnation must not mark stale values current.
+note Paused, one worker, policy 2: an older unrelated job u, a younger
+note producer p declaring topic 64 and a job d waiting on it are admitted
+note and declared, then the scheduler incarnates. At resume the one pick
+note rescores and takes p (value 1); with the values left unscored they all
+note read 0 and u (older, no estimate) would run instead (128).
+fn pt_incl to void
+c = pt_setup 1 8 8 pt_req 4 1024 1 8 128
+pt_ok eq sched_policy 2 64 64 4 1000 0 128
+k = sched_pause c true
+u = pt_admit 730300 0 pt_req 1 0 0 0 128
+p = pt_admit 740300 0 pt_req 1 0 0 0 128
+d = pt_admit 750300 64 pt_req 1 0 0 0 128
+pt_ok eq sched_goal p 64 300 0 0 128
+pt_ok eq sched_incarnate 8 0 128
+pt_resume c
+pt_ok eq get sjst p 3 128
+pt_ok eq get sjst u 2 128
+pt_ok eq sched_cancel u 1 128
+pt_ok eq sched_cancel d 1 128
+pt_drain c 1 3000 128
+pt_down c 128
+end
+
 note The regression phases A and B return their verdict, so both run and
 note print their witness; the first failing one is the exit status.
 fn main to int
@@ -2664,6 +3376,14 @@ pt_window
 pt_torder
 pt_slots
 pt_live
+pt_goal
+pt_rescores
+pt_proposals
+pt_incarn
+pt_propres
+pt_incx
+pt_incl
+pt_key
 if ne write 1 pok 0 len pok long len pok
 ret 100
 end
diff --git a/seed/node/schedpol-test.om b/seed/node/schedpol-test.om
index afb20776d..d33d398a7 100644
--- a/seed/node/schedpol-test.om
+++ b/seed/node/schedpol-test.om
@@ -17,16 +17,23 @@ text phol " hol_stops="
 text pbyp " bypasses="
 text pres " reservations="
 text pnl "\n"
+text ptr "schedpol goal trace "
+text psp " "
 text pw1 "schedpol hol witness head="
 text pw2 " fits_behind="
 text pw3 " free_cpu="
 text pw4 " idle_worker="
 global ptc long 1
-note Mode: 0 default policy, 1 fifo, 2 noreserve.
+note Mode: 0 default policy, 1 fifo, 2 noreserve, 3 goal (policy 2).
 global ptm ulong 1
-note pt_step snapshot: event count, candidate reads, maintenance reads,
-note assigned, before the step.
-global ptb ulong 4
+note Step-bound snapshot (pt_snap): event count, candidate reads,
+note maintenance reads, assigned, cursor, window scans.
+global ptb ulong 6
+note Phase G trace: ids in review order.
+global ptt ulong 16
+global ptn ulong 1
+note Value-read bound baseline: stats 38, 32, 33 at the last check.
+global ptv ulong 3
 
 fn pt_ok ok bool code int to void
 if not ok
@@ -128,12 +135,18 @@ put ptc 0 c
 pt_ok eq sup_init c 0 code
 pt_ok eq sched_new c a rl 0 code
 pt_ok eq sched_cap caps 0 code
+put ptv 0 sched_stat 38
+put ptv 1 sched_stat 32
+put ptv 2 sched_stat 33
 if eq get ptm 0 1
 pt_ok eq sched_policy 0 64 64 4 1000 0 code
 end
 if eq get ptm 0 2
 pt_ok eq sched_policy 1 64 64 65535 1000 0 code
 end
+if eq get ptm 0 3
+pt_ok eq sched_policy 2 64 64 4 1000 0 code
+end
 for i ulong w bound 64
 pt_ok pt_spawn c i code
 end
@@ -176,30 +189,52 @@ end
 note One creator step of up to 10 ms, then the invariant and the scan
 note bounds since the last step. An event makes at most one pick more than
 note it assigns, so candidate reads are at most (assigned + events) x
-note (window + 1), the reserved probe included, or x 64 under FIFO (policy
-note 0), 9; maintenance reads at most 64 per event, 14; the cursor moved by
-note exactly the window per window scan, mod 64, 15. The last is the
-note traversal witness: window scans cover consecutive windows, so
-note ceil(64/win) of them examine every slot.
+note (window + 1), the reserved probe included, plus one proposal probe per
+note pick under policy 2, or x 64 under FIFO (policy 0), 9; maintenance reads
+note at most 64 per event, 14; the cursor moved by exactly the window per
+note window scan, mod 64, 15 (the traversal witness: window scans cover
+note consecutive windows, so ceil(64/win) of them examine every slot); value
+note reads at most 64 per rescoring plus 128 per job scored, 8.
 fn pt_step c long code int to void
+pt_snap
+r = sched_step c 10000000
+pt_ok ge r 0 code
+pt_inv code
+pt_check
+end
+
+note Snapshot the counters the step bounds compare against (ptb).
+fn pt_snap to void
 put ptb 0 sched_stat 2
 put ptb 1 sched_stat 3
 put ptb 2 sched_stat 13
 put ptb 3 sched_stat 4
-u0 = sched_stat 28
-s0 = sched_stat 14
-r = sched_step c 10000000
-pt_ok ge r 0 code
-pt_inv code
+put ptb 4 sched_stat 28
+put ptb 5 sched_stat 14
+end
+
+note The bounds since pt_snap (exits 9, 14, 15, 8).
+fn pt_check to void
 w = add sched_stat 25 1
 if eq sched_stat 24 0
 w = ulong 64
 end
+if eq sched_stat 24 2
+w = add w 1
+end
 ev = sub sched_stat 2 get ptb 0
 lim = mul add sub sched_stat 4 get ptb 3 ev w
 pt_ok le sub sched_stat 3 get ptb 1 lim 9
 pt_ok le sub sched_stat 13 get ptb 2 mul ev 64 14
-pt_cursor u0 s0
+pt_cursor get ptb 4 get ptb 5
+pt_vbound
+end
+
+note Resume dispatch (it dispatches at once) inside the step bounds.
+fn pt_resume c long to void
+pt_snap
+k = sched_pause c false
+pt_check
 end
 
 note The cursor moved by the window once per window scan since (u0, s0).
@@ -208,6 +243,16 @@ d = mul sched_stat 25 sub sched_stat 14 s0
 pt_ok eq sched_stat 28 rem add u0 d 64 15
 end
 
+note The value-read bound since the last call (phase checks, exit 8).
+fn pt_vbound to void
+v = sched_stat 38
+lim = add mul sub sched_stat 32 get ptv 1 64 mul sub sched_stat 33 get ptv 2 128
+pt_ok le sub v get ptv 0 lim 8
+put ptv 0 v
+put ptv 1 sched_stat 32
+put ptv 2 sched_stat 33
+end
+
 note Step until job j is in a state in lo..hi, up to ms. True when reached.
 fn pt_until c long j ulong lo ulong hi ulong ms ulong code int to bool
 dl = add ulong monons mul ms 1000000
@@ -358,10 +403,9 @@ buf = new uchar 4096 0
 c = pt_setup 1 8 8 pt_req 4 1024 1 8 50
 x = pt_admit 60050 8 0 51
 y = pt_admit 70050 0 0 52
-u0 = sched_stat 28
-s0 = sched_stat 14
+pt_snap
 pt_ok gt sched_publish c 8 buf 16 0 53
-pt_cursor u0 s0
+pt_check
 if eq sched_stat 24 0
 pt_ok eq get sjst y 3 54
 pt_ok eq get sjst x 2 55
@@ -710,10 +754,7 @@ k = sched_pause c true
 a = pt_admit 480050 0 pt_req 1 0 0 0 195
 b = pt_admit 490050 0 pt_req 2 0 0 0 195
 x = pt_admit 510050 0 pt_req 1 0 0 0 195
-u0 = sched_stat 28
-s0 = sched_stat 14
-k = sched_pause c false
-pt_cursor u0 s0
+pt_resume c
 pt_ok eq sched_stat 29 add b 1 196
 dl = add ulong monons 600000000
 for t ulong 1000000
@@ -737,13 +778,328 @@ ret
 end
 n = argread 1 a 0 16
 if eq n 4
+if eq get a 0 102
 put ptm 0 1
 end
+if eq get a 0 103
+put ptm 0 3
+end
+end
 if eq n 9
 put ptm 0 2
 end
 end
 
+note Step, then review every job in review in slot order, appending its id
+note to the trace and publishing the topics it declared (as the workflow
+note does after accepting a result).
+fn pt_gstep c long buf edit uchar 4096 code int to void
+pt_step c code
+for j ulong 64
+if eq get sjst j 4
+p = get sjpro j
+n = get ptn 0
+if lt n 16
+put ptt n get sjid j
+end
+put ptn 0 add n 1
+pt_ok eq sched_review j long add get sjid j 1 code
+if ne p 0
+pt_snap
+pt_ok gt sched_publish c p buf 16 0 code
+pt_check
+end
+end
+end
+end
+
+fn pt_gadmit id ulong deps ulong pro ulong code int to ulong
+j = pt_admit id deps pt_req 1 0 0 0 code
+if ne pro 0
+pt_ok eq sched_goal j pro 50 10 0 code
+end
+ret j
+end
+
+note One run of the goal workload, one worker, policy 2, bypass budget 4,
+note admitted while paused: x (no value), z (unblocks d: value 1), a
+note (unblocks b, which unblocks c: value 2), f (unblocks g1..g3: value 3).
+note A decision is made when the worker frees, before the finished job's
+note topics are published. Order: f a z b x d c g1 g2 g3. f and a first
+note (useful work); x, bypassed in 4 events, is reserved and runs 5th.
+fn pt_grun code int to void
+buf = new uchar 4096 0
+c = pt_setup 1 16 16 pt_req 1 1024 1 8 code
+pt_ok eq sched_policy 2 64 64 4 1000 0 code
+k = sched_pause c true
+put ptn 0 0
+j = pt_gadmit 220050 0 0 code
+j = pt_gadmit 230050 0 128 code
+j = pt_gadmit 240050 128 0 code
+j = pt_gadmit 250050 0 32 code
+j = pt_gadmit 260050 32 64 code
+j = pt_gadmit 270050 64 0 code
+j = pt_gadmit 280050 0 256 code
+for i ulong 3
+j = pt_gadmit add 290050 mul i 10000 256 0 code
+end
+pt_resume c
+dl = add ulong monons 5000000000
+for t ulong 1000000
+if ge get ptn 0 10
+break
+end
+pt_ok lt ulong monons dl code
+pt_gstep c buf code
+end
+pt_down c code
+end
+
+note Phase G: goal-aware ranking. The goal workload runs twice; both traces
+note must equal the expected order (151 first run, 152 second): repeated
+note identical inputs, identical decisions.
+fn pt_goal to void
+ex = new ulong 10 0
+put ex 0 280050
+put ex 1 250050
+put ex 2 230050
+put ex 3 260050
+put ex 4 220050
+put ex 5 240050
+put ex 6 270050
+put ex 7 290050
+put ex 8 300050
+put ex 9 310050
+for r ulong 2
+code = int add 151 r
+pt_grun 150
+pt_ok eq get ptn 0 10 code
+for i ulong 10
+if ne get ptt i get ex i
+pt_trace
+exit code
+end
+end
+end
+end
+
+fn pt_trace to void
+r = write 1 ptr 0 len ptr
+for i ulong get ptn 0 bound 16
+pt_num get ptt i
+r = write 1 psp 0 1
+end
+r = write 1 pnl 0 1
+end
+
+note Phase H: rescoring. Policy 2, paused: one ready job r and two jobs
+note waiting on topic 512, then r declares topic 512: four graph changes,
+note no rescoring (160). The first pick rescores once for all four (161).
+note r completing and being reviewed with nothing published changes no
+note value: no rescoring (162). Publishing 512 readies both waiting jobs:
+note two changes, one more rescoring at the next pick (163). The work of
+note every rescoring is bounded (checked at each step, exit 8). Cancelling
+note a waiting job is one more change (165).
+fn pt_rescores to void
+buf = new uchar 4096 0
+c = pt_setup 1 8 8 pt_req 4 1024 1 8 160
+pt_ok eq sched_policy 2 64 64 4 1000 0 160
+k = sched_pause c true
+r = pt_admit 320050 0 pt_req 1 0 0 0 160
+w1 = pt_admit 330050 512 pt_req 1 0 0 0 160
+w2 = pt_admit 340050 512 pt_req 1 0 0 0 160
+pt_ok eq sched_goal r 512 50 10 0 160
+pt_ok eq sched_stat 34 4 160
+pt_ok eq sched_stat 32 0 160
+pt_resume c
+pt_ok eq sched_stat 32 1 161
+pt_ok eq get sjval r 2 161
+pt_drain c 1 2000 162
+pt_ok eq sched_stat 32 1 162
+pt_ok eq sched_stat 34 4 162
+pt_snap
+pt_ok gt sched_publish c 512 buf 16 0 163
+pt_check
+pt_ok eq sched_stat 34 6 163
+pt_ok eq sched_stat 32 2 163
+pt_drain c 2 2000 164
+pt_ok eq sched_stat 32 2 165
+w3 = pt_admit 345050 4096 pt_req 1 0 0 0 165
+b0 = sched_stat 34
+pt_ok eq sched_cancel w3 1 165
+pt_ok eq sched_stat 34 add b0 1 165
+pt_down c 166
+end
+
+note Phase K: the policy-2 key on two free slots, a and b. Larger unblock
+note value first, even when b is older and cheaper (180); equal values:
+note smaller estimate first, even when b is older (181); equal values and
+note estimates: older admission first (182); outside policy 2 only the
+note admission age counts (183).
+fn pt_key to void
+a = ulong 60
+b = ulong 61
+put sjval a 2
+put sjval b 1
+put sjest a 90
+put sjest b 10
+put sjarr a 9
+put sjarr b 8
+pt_ok sp_better true a b 180
+pt_ok not sp_better true b a 180
+put sjval b 2
+put sjest a 10
+put sjest b 90
+pt_ok sp_better true a b 181
+pt_ok not sp_better true b a 181
+put sjest b 10
+pt_ok sp_better true b a 182
+pt_ok not sp_better true a b 182
+put sjval a 5
+put sjest b 1
+pt_ok sp_better false b a 183
+pt_ok not sp_better false a b 183
+for i ulong 2
+put sjval add a i 0
+put sjest add a i 0
+put sjarr add a i 0
+end
+end
+
+note Phase P: proposals. Policy 2, paused. p1 (value 0) and p2 (value 1)
+note are ready. A proposal naming an older graph version is refused (170)
+note and counted (171); one naming an id with no ready job is refused
+note (172); p1 at the current version is accepted (173) and used over the
+note higher ranked p2 (174). A proposal made stale by a later change is
+note rejected when next used and counted: p3 runs by rank, after p2 (175,
+note 176). Outside policy 2: -7 (177).
+fn pt_proposals to void
+c = pt_setup 1 8 8 pt_req 4 1024 1 8 170
+pt_ok eq sched_incarnate 1 0 170
+pt_ok eq sched_policy 2 64 64 4 1000 0 170
+k = sched_pause c true
+p1 = pt_admit 350050 0 pt_req 1 0 0 0 170
+p2 = pt_admit 360050 0 pt_req 1 0 0 0 170
+q = pt_admit 370050 1024 pt_req 1 0 0 0 170
+pt_ok eq sched_goal p2 1024 50 10 0 170
+v = sched_version
+p3 = pt_admit 380050 0 pt_req 1 0 0 0 170
+pt_ok eq sched_propose 350050 v neg long 9 170
+pt_ok eq sched_stat 36 1 171
+v = sched_version
+pt_ok eq sched_propose 999999 v neg long 3 172
+pt_ok eq sched_propose 350050 v 0 173
+pt_resume c
+pt_ok eq get sjst p1 3 174
+pt_ok eq sched_stat 39 1 174
+k = sched_pause c true
+v = sched_version
+pt_ok eq sched_propose 380050 v 0 175
+p4 = pt_admit 390050 2048 pt_req 1 0 0 0 175
+pt_ok eq sched_goal p3 0 10 1 0 175
+pt_resume c
+pt_ok pt_until c p2 3 4 2000 175 175
+pt_ok eq get sjst p3 2 176
+pt_ok eq sched_stat 39 1 176
+pt_ok eq sched_stat 36 2 176
+pt_ok eq sched_cancel p4 1 176
+pt_ok eq sched_cancel q 1 176
+pt_drain c 3 3000 176
+pt_ok eq sched_policy 1 64 64 4 1000 0 177
+pt_ok eq sched_propose 350050 sched_version neg long 7 177
+pt_down c 178
+end
+
+note Phase I: a proposal from an earlier scheduler. Scheduler 1
+note (incarnation 1) admits a into slot 0 and hands out the version;
+note scheduler 2 (incarnation 2) admits b into slot 0 with as many bumps.
+note There the old version is stale (184); a's id names no job even at the
+note current version, b's is accepted, and incarnation 0 is refused (185).
+fn pt_incarn to void
+c = pt_setup 1 8 8 pt_req 4 1024 1 8 184
+pt_ok eq sched_incarnate 1 0 184
+pt_ok eq sched_policy 2 64 64 4 1000 0 184
+k = sched_pause c true
+a = pt_admit 670050 0 pt_req 1 0 0 0 184
+pt_ok eq a 0 184
+v1 = sched_version
+pt_ok eq sched_cancel a 1 184
+pt_down c 184
+c = pt_setup 1 8 8 pt_req 4 1024 1 8 184
+pt_ok eq sched_incarnate 2 0 184
+pt_ok eq sched_policy 2 64 64 4 1000 0 184
+k = sched_pause c true
+b = pt_admit 680050 0 pt_req 1 0 0 0 184
+pt_ok eq b 0 184
+pt_ok eq sched_propose 670050 v1 neg long 9 184
+pt_ok eq sched_propose 670050 sched_version neg long 3 185
+pt_ok eq sched_propose 680050 sched_version 0 185
+pt_ok eq sched_incarnate 0 neg long 7 185
+pt_ok eq sched_cancel b 1 185
+pt_down c 185
+end
+
+note Phase R2: a proposal beside a reservation. Policy 2, bypass budget 1,
+note two workers, 5 CPU. h (2 CPU, 5 s) runs; then B and B2 (4 CPU each)
+note and s1 (1 CPU, 1.5 s) are admitted: s1 runs, B and B2 are bypassed and
+note B, the older, is reserved. x (2 CPU) is refused beside it and counted
+note (186). Cancelling B clears the reservation and x is accepted (187).
+note An event with no idle worker reserves B2 and leaves the proposal
+note pending (188). Once s1 is done, the next pick finds x no longer fits
+note beside B2: the proposal is dropped and counted stale, and x does not
+note run (189). Once h is done B2 fits; y (1 CPU) is accepted beside it,
+note and at the next event B2 runs first, then y is used; x (2 CPU, 0
+note left) stays ready and, bypassed by y, is now the reservation (179).
+fn pt_propres to void
+c = pt_setup 2 8 8 pt_req 5 1024 2 8 186
+pt_ok eq sched_incarnate 1 0 186
+pt_ok eq sched_policy 2 64 64 1 1000 0 186
+k = sched_pause c true
+h = pt_admit 625000 0 pt_req 2 0 0 0 186
+pt_resume c
+k = sched_pause c true
+pt_ok eq get sjst h 3 186
+b = pt_admit 630050 0 pt_req 4 0 0 0 186
+b2 = pt_admit 640050 0 pt_req 4 0 0 0 186
+s1 = pt_admit 651500 0 pt_req 1 0 0 0 186
+pt_resume c
+k = sched_pause c true
+pt_ok eq get sjst s1 3 186
+pt_ok eq sched_stat 29 add b 1 186
+x = pt_admit 660050 0 pt_req 2 0 0 0 186
+r0 = sched_stat 37
+pt_ok eq sched_propose 660050 sched_version neg long 8 186
+pt_ok eq sched_stat 37 add r0 1 186
+pt_ok eq sched_cancel b 1 187
+pt_ok eq sched_stat 29 0 187
+pt_ok eq sched_propose 660050 sched_version 0 187
+pt_resume c
+k = sched_pause c true
+pt_ok eq sched_stat 29 add b2 1 188
+pt_ok gt get scgv 2 0 188
+pt_ok pt_until c s1 4 4 3000 188 188
+s0 = sched_stat 36
+pt_resume c
+k = sched_pause c true
+pt_ok eq sched_stat 36 add s0 1 189
+pt_ok eq get sjst x 2 189
+pt_ok eq get scgv 2 0 189
+y = pt_admit 690050 0 pt_req 1 0 0 0 179
+pt_ok pt_until c h 4 4 6000 179 179
+pt_ok eq sched_propose 690050 sched_version 0 179
+s0 = sched_stat 39
+pt_resume c
+k = sched_pause c true
+pt_ok eq get sjst b2 3 179
+pt_ok eq get sjst y 3 179
+pt_ok eq sched_stat 39 add s0 1 179
+pt_ok eq sched_stat 29 add x 1 179
+pt_ok eq get sjst x 2 179
+pt_ok eq sched_cancel x 1 179
+pt_drain c 4 8000 179
+pt_down c 189
+end
+
 fn pt_stats to void
 r = write 1 pst 0 len pst
 pt_num sched_stat 2
@@ -760,6 +1116,78 @@ pt_num sched_stat 6
 r = write 1 pnl 0 1
 end
 
+note Phase X: proposal guards. Without an incarnation a proposal is refused
+note (120); a second incarnation is refused (121); after the first one a
+note proposal is accepted and used (122). The version is then set to the
+note last revision of incarnation 5 (2^40 - 1 bumps): a proposal made there
+note is accepted, and the next bump exhausts the version instead of
+note carrying it into incarnation 6's range (123); proposals are refused
+note (124), the pending one is dropped at use (125) and every pick rescores
+note (126). In a new scheduler, two ready jobs share an id: a proposal
+note naming it is refused (127).
+fn pt_incx to void
+c = pt_setup 1 8 8 pt_req 4 1024 1 8 120
+pt_ok eq sched_policy 2 64 64 4 1000 0 120
+k = sched_pause c true
+a = pt_admit 710050 0 pt_req 1 0 0 0 120
+pt_ok eq sched_propose 710050 sched_version neg long 6 120
+pt_ok eq sched_stat 41 0 120
+pt_ok eq sched_incarnate 5 0 121
+pt_ok eq sched_incarnate 6 neg long 7 121
+pt_ok eq sched_propose 710050 sched_version 0 122
+pt_ok eq sp_proposal 0 a 122
+put scgv 0 add shl ulong 5 40 1099511627775
+v = sched_version
+pt_ok eq sched_propose 710050 v 0 123
+pt_ok eq sched_goal a 0 10 1 0 123
+pt_ok eq sched_version v 123
+pt_ok eq shr sched_version 40 5 123
+pt_ok eq sched_stat 41 2 123
+pt_ok eq sched_propose 710050 v neg long 6 124
+pt_ok eq sp_proposal 0 64 125
+r0 = sched_stat 32
+sp_rescore
+sp_rescore
+pt_ok eq sched_stat 32 add r0 2 126
+pt_ok eq sched_cancel a 1 126
+pt_down c 126
+c = pt_setup 1 8 8 pt_req 4 1024 1 8 127
+pt_ok eq sched_incarnate 7 0 127
+pt_ok eq sched_policy 2 64 64 4 1000 0 127
+k = sched_pause c true
+b1 = pt_admit 720050 0 pt_req 1 0 0 0 127
+b2 = pt_admit 720050 0 pt_req 1 0 0 0 127
+pt_ok ne b1 b2 127
+pt_ok eq sched_propose 720050 sched_version neg long 3 127
+pt_ok eq sched_cancel b1 1 127
+pt_ok eq sched_cancel b2 1 127
+pt_down c 127
+end
+
+note Phase L: a late first incarnation must not mark stale values current.
+note Paused, one worker, policy 2: an older unrelated job u, a younger
+note producer p declaring topic 64 and a job d waiting on it are admitted
+note and declared, then the scheduler incarnates. At resume the one pick
+note rescores and takes p (value 1); with the values left unscored they all
+note read 0 and u (older, no estimate) would run instead (128).
+fn pt_incl to void
+c = pt_setup 1 8 8 pt_req 4 1024 1 8 128
+pt_ok eq sched_policy 2 64 64 4 1000 0 128
+k = sched_pause c true
+u = pt_admit 730300 0 pt_req 1 0 0 0 128
+p = pt_admit 740300 0 pt_req 1 0 0 0 128
+d = pt_admit 750300 64 pt_req 1 0 0 0 128
+pt_ok eq sched_goal p 64 300 0 0 128
+pt_ok eq sched_incarnate 8 0 128
+pt_resume c
+pt_ok eq get sjst p 3 128
+pt_ok eq get sjst u 2 128
+pt_ok eq sched_cancel u 1 128
+pt_ok eq sched_cancel d 1 128
+pt_drain c 1 3000 128
+pt_down c 128
+end
+
 note The regression phases A and B return their verdict, so both run and
 note print their witness; the first failing one is the exit status.
 fn main to int
@@ -784,6 +1212,14 @@ pt_window
 pt_torder
 pt_slots
 pt_live
+pt_goal
+pt_rescores
+pt_proposals
+pt_incarn
+pt_propres
+pt_incx
+pt_incl
+pt_key
 if ne write 1 pok 0 len pok long len pok
 ret 100
 end