relay: the crew-state cases pace on the host's requests, never a numbered drawn reply (#19) #69

Closed
ceres wants to merge 0 commits from ceres/19-relay-frame into main
Member

Purpose (bug): the relay job's "the relay loads in the recorded host" gives the same answer for the same tree, so a red on a PR names a fault of that PR (martha#19). This is part one: it names one of the job's reds from a saved log and fixes it. The job's other red is a different cause, named below and left open with its own design.

What was red

From the saved log of task 807 (run 1255, tip 63f49e6a): the case
src/drive_the_recorded_host/the_crew_state_on_the_recorded_host.node-test.ts:125 — "a turn whose crew state did not change is handed no second copy" — waited 120 s for the host to draw Reply 3 done., while the terminal it printed showed replies 2, 4 and 5.

The cause

The stand-in's requests in that run show five tool-offering model requests for two owner turns, all answered within 496 ms. The run asked more requests than it had turns, and a reply number names the request that produced it: extra requests renumber the replies, so the Reply 3 this case waited for was never drawn. The wait was a screen scrape of that name, which a redraw can also beat.

The change

the_crew_state_on_the_recorded_host.node-test.ts now paces a turn on what the host took: the model request whose conversation carries the owner's words (requestsCarrying over hands.heard). The reply text stays only as what the screen shows; nothing asserts on it any more. The run also ends on the last turn being taken (completesWhen) instead of on a request count, so a run that asks extra requests cannot end the host before the last turn is in it.

Proof

The full relay proof on msi00 with the recorded host 2.1.330 (prove_the_relay_loads/prove_the_relay_loads.sh): the host loads the relay and refuses a copy with the #104 line planted, and all 16 recorded-host runs are whole — the crew-state file's 3 cases among them, in 112 s, where the saved log's red was this case at 189 s.

CI on this branch is added here as the runs finish.

Still red in the same job, a different cause

Task 3081 (build00) failed one case earlier, with no ALaunchThatStopped line and no requests array: an_end_on_the_recorded_host.node-test.ts:232 — "an end ordered while a long tool runs is carried after that tool's report" — after 184 s, on its own assertion that no end was ordered while the long tool ran. Nothing in it reads a reply number, so part one does not touch it. The design for it is on the issue, and it is the second half of this work.

The issue's other half — five runs in a row on one unchanged tip agreeing — is a CI fact, not a code change: it needs the runs the Dispatcher asks for once this lands.

Purpose (bug): the relay job's "the relay loads in the recorded host" gives the same answer for the same tree, so a red on a PR names a fault of that PR (martha#19). This is part one: it names one of the job's reds from a saved log and fixes it. The job's other red is a different cause, named below and left open with its own design. ## What was red From the saved log of task 807 (run 1255, tip 63f49e6a): the case `src/drive_the_recorded_host/the_crew_state_on_the_recorded_host.node-test.ts:125` — "a turn whose crew state did not change is handed no second copy" — waited 120 s for the host to draw `Reply 3 done.`, while the terminal it printed showed replies 2, 4 and 5. ## The cause The stand-in's requests in that run show five tool-offering model requests for two owner turns, all answered within 496 ms. The run asked more requests than it had turns, and a reply number names the request that produced it: extra requests renumber the replies, so the `Reply 3` this case waited for was never drawn. The wait was a screen scrape of that name, which a redraw can also beat. ## The change `the_crew_state_on_the_recorded_host.node-test.ts` now paces a turn on what the host took: the model request whose conversation carries the owner's words (`requestsCarrying` over `hands.heard`). The reply text stays only as what the screen shows; nothing asserts on it any more. The run also ends on the last turn being taken (`completesWhen`) instead of on a request count, so a run that asks extra requests cannot end the host before the last turn is in it. ## Proof The full relay proof on msi00 with the recorded host 2.1.330 (`prove_the_relay_loads/prove_the_relay_loads.sh`): the host loads the relay and refuses a copy with the #104 line planted, and all 16 recorded-host runs are whole — the crew-state file's 3 cases among them, in 112 s, where the saved log's red was this case at 189 s. CI on this branch is added here as the runs finish. ## Still red in the same job, a different cause Task 3081 (build00) failed one case earlier, with no `ALaunchThatStopped` line and no requests array: `an_end_on_the_recorded_host.node-test.ts:232` — "an end ordered while a long tool runs is carried after that tool's report" — after 184 s, on its own assertion that no end was ordered while the long tool ran. Nothing in it reads a reply number, so part one does not touch it. The design for it is on the issue, and it is the second half of this work. The issue's other half — five runs in a row on one unchanged tip agreeing — is a CI fact, not a code change: it needs the runs the Dispatcher asks for once this lands.
relay: the crew-state cases pace on the host's requests, never a numbered drawn reply (#19)
Some checks failed
dependency advisories / node in . (pull_request) Successful in 12s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 29s
dependency advisories / node in installer (pull_request) Successful in 31s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 9s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 46s
CI / structural floor (pull_request) Successful in 34s
CI / Martha's names are its own (pull_request) Successful in 28s
CI / no import cycle (pull_request) Successful in 28s
CI / the engine drift check bites (pull_request) Successful in 33s
CI / the posted text check bites (pull_request) Successful in 15s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 17s
CI / the host drift check bites (pull_request) Successful in 1m31s
CI / workflows are valid (pull_request) Successful in 28s
CI / nothing private (pull_request) Failing after 14s
CI / the pictures change only with the version (pull_request) Successful in 19s
CI / no test the base passed goes missing (pull_request) Successful in 32s
CI / every check runs in a job (pull_request) Successful in 16s
CI / every job has a timeout (pull_request) Successful in 17s
CI / no literal restates a defined value (pull_request) Successful in 52s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 29s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 14s
CI / installer (pull_request) Successful in 2m32s
CI / the relay loads in the recorded host (pull_request) Successful in 17m37s
CI / the clean-install proof removes its container (pull_request) Successful in 16m58s
CI / gate coverage (pull_request) Failing after 13m59s
d3ee23527b
The relay job's red was saved by Saturnus (task 807, run 1255, tip 63f49e6a): the case "a turn whose crew
state did not change is handed no second copy" waited 120 s for the host to draw `Reply 3 done.` while the
host drew replies 2, 4 and 5. Its requests show the cause: five tool-offering model requests for two owner
turns, all answered within 496 ms. The run asked more requests than the turns, so the reply numbered for
the turn the harness waited on was never drawn — a reply number is a name for the request that produced it,
and a run that asks extra requests renames it. The wait was a screen scrape of that name.

Now the turn is paced on what the host took: the model request whose conversation carries the owner's words.
The run also ends on the last turn being taken (`completesWhen`) instead of on a request count, so a run
with extra requests cannot end the host before the last turn is in it. The reply text stays only as what the
screen shows; nothing asserts on it.

Proven on msi00 with the recorded host 2.1.330: the file's three cases pass (3/3, 112 s), where the saved log's
red was this case at 189 s. The five-runs-agree half of the issue comes from CI on one unchanged tip.
Owner

Closed by the Supervisor for a clean slate (Raf 2026-11-24: "close the stale PRs we need to start from a slate as clean as possible"). Only the Martha pilot path stays open. The branch is kept; reopen if this work comes back.

Closed by the Supervisor for a clean slate (Raf 2026-11-24: "close the stale PRs we need to start from a slate as clean as possible"). Only the Martha pilot path stays open. The branch is kept; reopen if this work comes back.
supervisor closed this pull request 2026-11-24 06:33:24 +00:00
Some checks failed
dependency advisories / node in . (pull_request) Successful in 12s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 29s
dependency advisories / node in installer (pull_request) Successful in 31s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 9s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 46s
CI / structural floor (pull_request) Successful in 34s
CI / Martha's names are its own (pull_request) Successful in 28s
CI / no import cycle (pull_request) Successful in 28s
CI / the engine drift check bites (pull_request) Successful in 33s
CI / the posted text check bites (pull_request) Successful in 15s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 17s
CI / the host drift check bites (pull_request) Successful in 1m31s
CI / workflows are valid (pull_request) Successful in 28s
CI / nothing private (pull_request) Failing after 14s
CI / the pictures change only with the version (pull_request) Successful in 19s
CI / no test the base passed goes missing (pull_request) Successful in 32s
CI / every check runs in a job (pull_request) Successful in 16s
CI / every job has a timeout (pull_request) Successful in 17s
CI / no literal restates a defined value (pull_request) Successful in 52s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 29s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 14s
CI / installer (pull_request) Successful in 2m32s
CI / the relay loads in the recorded host (pull_request) Successful in 17m37s
CI / the clean-install proof removes its container (pull_request) Successful in 16m58s
CI / gate coverage (pull_request) Failing after 13m59s

Pull request closed

Sign in to join this conversation.
No reviewers
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!69
No description provided.