Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
R13: print why a mode failed on stdout; root cause of #527 (two pre-goal dead ends, not GPU)
merged5a0a72f139551783 #567 · opened 2026-10-18 21:53 UTC · closed 2026-11-02 00:28 UTC · merged 2026-11-02 00:28 UTC
Imported from GitHub aien-dev/omega-mv#567, by drakestapleton
Base 62d1d0d668f897386a0e311374f8dbcc5c32dde8 · Head 76e4659c002acb7b5020075fef82e2295ac109ef
Merged on GitHub as f9a9a40b598928fc6f92d7ffa6ff386941182663; reachable from main c7acd2607139eedfabeac16b6042cefe8ede431f (observed 2026-11-18T16:35:54Z)
drakestapleton wrote on 2026-10-18 21:53 UTC
Refs #527. Part 1 of the issue (surface the reason) is done; this PR also states the root cause of the intermittent failure. The fix for the cause is NOT in this PR (see "What is left").
What changes
tests/runtime/rx_r13_living.c: when a mode fails, these lines go to stdout (and stderr). The judge receipt keeps stdout:
R13 first failure: ... (same text as the receipt's first_failure)
the FAILED counts line (it was stderr only before)
AIEN: prediction, belief, hypothesis, plan, goal
Omega: search and selection epochs, the selected realization, the realization production actually uses, the in-force record
GPU: claims, seat activations, whether the seat transport was started, transport error, and a plain reason why there is no GPU result
diagnosis: printed when the mode is stuck in one of the two dead ends below
These lines only read the world. The episode, the checks and the verdict do not change. rx_r13_first_failure_test.sh gets 4 new checks. Crumbs recompiled with the pinned tool (crumb.lock d0f0b95d); crumb verify is OK.
Root cause (observed)
"GPU 0" is not a GPU failure. The check that fails (AIEN never confirmed the incumbent cost) runs before the goal. The seat transport (acceptor thread) only starts with the goal, so no GPU experiment can run that early. Wall-clock jitter starts one of two dead ends. Neither one can recover before the goal, so the 60 s wait just runs out:
A. Omega's first search picks a candidate that production never uses. On A725 the quad4 candidate is about 2% faster than the reference (ratio 0.977 to 0.981 in passing runs), and the margin is 10%. Sometimes the reference is measured about 13% slow in all 7 rounds of that slot (ref 7.03 to 7.10 ms against 6.2 ms elsewhere). The ratio then drops to 0.867 to 0.873, and selection 1 becomes realization 3f6db775476a4f99. In R13, production serves the in-force record (rx_omega_serve_from). Before the goal that record is empty, so production uses the reference (0). Nothing can be promoted before the goal, so fn_observe drops every interval as "production has not switched yet" (dem[6] != real): 0 intervals, no prediction, never confirmed. In the judge receipts this is the plan 0 search 1 form (255f9de5, d1606d85).
B. AIEN's pre-goal prediction fails and its drift research cannot finish. One example: the baseline was 9894 ns, but steady intervals were 6848 to 7184 ns, so there were 130 misses (tolerance ±20%). The prediction FAILS, a drift hypothesis and plan follow, and Omega opens search 2. In R13, any selection after epoch 1 waits for GPU experiment evidence (rx_omega_require_evidence), and the seat transport is not running yet. The hypothesis stays TESTING, so the failure is never "settled" and the prediction is never relearned. In the judge receipts this is the plan 1 search 2 form (1d9a7ab2, 815f56c0, 850d7ca1, 95008319, 9ba5b614, bf87fb02, e7f1a98b).
Relation to #523: the one run that overlapped a kernel NV_ERR_NO_MEMORY refusal (95008319) is the same form B as the others. Its counts show no GPU work started, so the refusal did not cause that failure.
Repro and results actually observed
Host test build, no GPU needed: rx_r13_living_testbuild_host --state-dir <dir>, 2 runs in parallel, on the shared Spark (load 11 to 14):
main plus diagnostics, earlier sample: 1 fail in 6, then 3 in 10 (2 form A, 1 form B, each confirmed with state dumps)
this branch: 2 fails in 12, both print the form A diagnosis
silicon test build (under flock /tmp/aien-gb10.lock): 1 fail in 3. It printed the form A diagnosis on stdout: selection 3f6db775476a4f99, production on 0, in force epoch 0, transport not started
make test-r13-first-failure: red on main (3 of 12 checks fail: the stdout lines are missing), green on this branch (0 failures). These programs build with -Werror: testbuild host, testbuild silicon, production host, cortex episode.
What is left (needs a design decision, so it is not in this PR)
The test file itself (omega #313 note) says measurement changes in src/runtime are a separate, declared change. Fix options:
A: when a world serves from an in-force record, epoch 1 has nothing to promote, so the first selection should record what production serves (the reference). Or make Omega's measurement robust to a slow reference sample (median, or a re-check of a narrow win). Why the reference is slow in all 7 rounds of one slot is not verified (one guess is a buffer layout or aliasing effect).
B: a sturdier AIEN baseline (more intervals, or drop outliers), or no drift plan before the goal in R13, or start the seat transport before the goal (this changes the episode).
drakestapleton reviewed (COMMENTED) on 2026-10-30 11:34 UTC
R13 diagnostics only (the root-cause fix is not included). The stdout-receipt checks in rx_r13_first_failure_test.sh (L48-52) are fine. It's currently dirty (mergeable false), probably from tests/.crumb, which also overlaps #509. Please rebase and regenerate, and link the follow-up root-cause fix.
— Grokbot
Fetch it
A git bundle of the pull request's head, 12994 bytes.