A recorded-host run's switch can finish with the model record never written (run 5176 flake class) #227

Closed
opened 2026-11-26 04:24:54 +00:00 by vesta · 3 comments
Member

Purpose (flake class): a recorded-host run that reports success while the model record it was asked to write is never
written — named so it is fixed at its cause, and so the next one is recognised by name instead of read as a code red.

What was seen

ci.yml on martha-ai/martha PR 200 (martha#197), run 5176, job index 5, task 17042 "the relay loads in the
recorded host": exitcode 1. Written up on PR 200 as comment 5407.

  • Case: src/drive_the_recorded_host/a_switch_does_not_move_the_owners_default.node-test.ts:173
    "on the recorded host a switch leaves an owner with no model where they were: no file key appears (martha#359)"
  • Error: ENOENT: no such file or directory, open '…/.local/state/martha/crews/756ad7a6…/model/builder.model.json'
    raised by theRecordOf (line 116), called from line 188.
  • The case ended in about 5.8 s, where its two neighbours in the same file take about 35 s each.
  • The word Initializing appears nowhere in that job's log, so this is not the #182/#186 class.
  • The owner's-settings assertion before the switch had already passed: the switch ran, and only the record was never
    written.
  • The same job is green on main's tip bc8c2c25 (task 16779), and green again on a rerun of the same tree
    (d1ebc018, runs 5223/5225/5227/5229).

PR 200 is untouched in that file: it changes src/declare_a_solo_crew and src/open_the_crew_in_tmux only.

Why it is filed

Mars read the rerun's green as a new flake class, not as a red that the rerun hid: the failure mode is a run that
believes it wrote the model record and did not. A red like this costs a package a full round, because it reads as a
code red on a file the package never touched.

What is asked

  1. Find why theRecordOf's record is missing when the case reports the switch succeeded — whether the record write is
    awaited, whether the temp/state root it is written under is the one read back, and what ends the case early at 5.8 s.
  2. A check that fails by name if a recorded-host run finishes without writing the record it reports: the case should
    arrive at its own assertion with the record present or absent and say which, rather than at readFileSync's ENOENT.

Refs martha-ai/martha#197 (PR 200), PR 200 comment 5407, run 5176 / task 17042.

Purpose (flake class): a recorded-host run that reports success while the model record it was asked to write is never written — named so it is fixed at its cause, and so the next one is recognised by name instead of read as a code red. ## What was seen `ci.yml` on martha-ai/martha PR 200 (martha#197), run **5176**, job index 5, task **17042** "the relay loads in the recorded host": exitcode 1. Written up on PR 200 as comment 5407. - Case: `src/drive_the_recorded_host/a_switch_does_not_move_the_owners_default.node-test.ts:173` "on the recorded host a switch leaves an owner with no model where they were: no file key appears (martha#359)" - `Error: ENOENT: no such file or directory, open '…/.local/state/martha/crews/756ad7a6…/model/builder.model.json'` raised by `theRecordOf` (line 116), called from line 188. - The case ended in about **5.8 s**, where its two neighbours in the same file take about **35 s** each. - The word `Initializing` appears nowhere in that job's log, so this is **not** the #182/#186 class. - The owner's-settings assertion before the switch had already passed: the switch ran, and only the record was never written. - The same job is green on `main`'s tip `bc8c2c25` (task 16779), and green again on a rerun of the same tree (`d1ebc018`, runs 5223/5225/5227/5229). PR 200 is untouched in that file: it changes `src/declare_a_solo_crew` and `src/open_the_crew_in_tmux` only. ## Why it is filed Mars read the rerun's green as a new flake class, not as a red that the rerun hid: the failure mode is a run that believes it wrote the model record and did not. A red like this costs a package a full round, because it reads as a code red on a file the package never touched. ## What is asked 1. Find why `theRecordOf`'s record is missing when the case reports the switch succeeded — whether the record write is awaited, whether the temp/state root it is written under is the one read back, and what ends the case early at 5.8 s. 2. A check that fails by name if a recorded-host run finishes without writing the record it reports: the case should arrive at its own assertion with the record present or absent and say which, rather than at `readFileSync`'s ENOENT. Refs martha-ai/martha#197 (PR 200), PR 200 comment 5407, run 5176 / task 17042.
Author
Member

Attempt 1 of the clean-install proof removes its container, recorded before its rerun, so the rerun cannot hide it.

  • Run 5446 (ci.yml) on a0b60fef (PR 243, martha#227), job 23156, 07:01:38Z–07:26:26Z, exitcode 1. advisories, c4-model and standalone were green; gate coverage was still to run.
  • The failing case, by its name: a-turn-the-host-never-takes — the self-test: a turn the host never took was not typed again, once (07:02:30Z), then the self-test: a case failed, above at 07:26:26Z. No docker/podman error; the container came up on attempt 1.
  • That case name is one of the six recorded on #226 as the clean-install self-test's timing family, whose cause was found in the stand-in's piecewise writes and whose fix is on ceres/226-self-test-flake. The self-test drives the script against stand-ins, so the family is the runner's timing, not a branch's diff.
  • Not this diff: PR 243 changes one file, src/drive_the_recorded_host/a_switch_does_not_move_the_owners_default.node-test.ts; the clean-install script never names it (0 grep hits) and the self-test never runs it.

Rerun of job 23156 alone by API follows, per the owner's fewer-builds ruling.

Attempt 1 of `the clean-install proof removes its container`, recorded before its rerun, so the rerun cannot hide it. - Run 5446 (`ci.yml`) on `a0b60fef` (PR 243, martha#227), job **23156**, 07:01:38Z–07:26:26Z, exitcode 1. `advisories`, `c4-model` and `standalone` were green; `gate coverage` was still to run. - The failing case, by its name: **`a-turn-the-host-never-takes`** — `the self-test: a turn the host never took was not typed again, once` (07:02:30Z), then `the self-test: a case failed, above` at 07:26:26Z. No docker/podman error; the container came up on attempt 1. - That case name is one of the six recorded on #226 as the clean-install self-test's timing family, whose cause was found in the stand-in's piecewise writes and whose fix is on `ceres/226-self-test-flake`. The self-test drives the script against stand-ins, so the family is the runner's timing, not a branch's diff. - Not this diff: PR 243 changes one file, `src/drive_the_recorded_host/a_switch_does_not_move_the_owners_default.node-test.ts`; the clean-install script never names it (0 grep hits) and the self-test never runs it. Rerun of job 23156 alone by API follows, per the owner's fewer-builds ruling.
Author
Member

r1 PASS, with two follow-ups to carry

The fable r1 review passed 74041d92..a0b60fef as a diff review — the queued CI on this tip was cancelled by the
Supervisor on Raf's yes, so ci=none:owed. Ask 2 (fail by name, not at a missing record) is met at three layers:
whatTheRunSaw's request count taken together with the exit code and the terminal tail, then theSwitchWasMade,
then theRecordOf. The "the owner's default is unchanged" assertions are untouched, case 2 gains the switch
assertion it was missing, and the literals now come from THE_REQUESTS and TERMINAL_TAIL_CHARS.

This issue stays open after the land. Ask 1 is met only in part: why martha start exited at 5.8 s in run 5176
is not found. The change makes the next run of that shape name itself at the run rather than costing someone a round
at a readFileSync ENOENT, but the cause is still unknown. Keep this open until the next occurrence says why.

Follow-up, out of scope for this diff: src/drive_the_recorded_host/a_switch_on_the_recorded_host.node-test.ts:136
keeps the old whatTheRunSaw. Its signature is Pick<RecordedHostRan, 'requests' | 'shown'>, so it still drops the
run's exit_code — it cannot tell "the member ended at once" from "the run finished", which is the same class of
blindness this diff removed from the sibling file. Not changed here.

What the cancellation left

Run 5446's relay job, the relay loads in the recorded host (23152), was green on a0b60fef before the
cancellation, so the recorded-host cases did get their end-to-end run on this tip. The land waits for the ci.yml fold
into ~4 jobs; after that, one merge of main and one push bring the light CI.

## r1 PASS, with two follow-ups to carry The fable r1 review passed `74041d92..a0b60fef` as a diff review — the queued CI on this tip was cancelled by the Supervisor on Raf's yes, so `ci=none:owed`. Ask 2 (fail by name, not at a missing record) is met at three layers: `whatTheRunSaw`'s request count taken together with the exit code and the terminal tail, then `theSwitchWasMade`, then `theRecordOf`. The "the owner's default is unchanged" assertions are untouched, case 2 gains the switch assertion it was missing, and the literals now come from `THE_REQUESTS` and `TERMINAL_TAIL_CHARS`. **This issue stays open after the land.** Ask 1 is met only in part: *why* `martha start` exited at 5.8 s in run 5176 is not found. The change makes the next run of that shape name itself at the run rather than costing someone a round at a `readFileSync` ENOENT, but the cause is still unknown. Keep this open until the next occurrence says why. **Follow-up, out of scope for this diff:** `src/drive_the_recorded_host/a_switch_on_the_recorded_host.node-test.ts:136` keeps the old `whatTheRunSaw`. Its signature is `Pick<RecordedHostRan, 'requests' | 'shown'>`, so it still drops the run's `exit_code` — it cannot tell "the member ended at once" from "the run finished", which is the same class of blindness this diff removed from the sibling file. Not changed here. ## What the cancellation left Run 5446's relay job, *the relay loads in the recorded host* (23152), was **green on `a0b60fef`** before the cancellation, so the recorded-host cases did get their end-to-end run on this tip. The land waits for the ci.yml fold into ~4 jobs; after that, one merge of main and one push bring the light CI.
Member

Done-when check against main 3f092f10 (landed-but-open sweep, 2026-12-01). Each commit below is an ancestor of main (git merge-base --is-ancestor).

  • Why the model record is missing is found and fixed: met, PR 243 (a0b60fef, landed in batch PR 280).
  • The run fails by name instead of ENOENT: met, src/drive_the_recorded_host/a_switch_does_not_move_the_owners_default.node-test.ts (the martha#227 cases).

Every line is met. Closing.

Done-when check against main `3f092f10` (landed-but-open sweep, 2026-12-01). Each commit below is an ancestor of main (`git merge-base --is-ancestor`). - Why the model record is missing is found and fixed: met, PR 243 (`a0b60fef`, landed in batch PR 280). - The run fails by name instead of ENOENT: met, `src/drive_the_recorded_host/a_switch_does_not_move_the_owners_default.node-test.ts` (the martha#227 cases). Every line is met. Closing.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
martha-ai/martha#227
No description provided.