The owner's turn waits for the relay's report of the session's start (martha#171) #178

Manually merged
terra merged 3 commits from saturnus/171-relay-under-load into main 2026-11-25 12:44:34 +00:00
Member

Refs #171

The relay job's red "the launcher wrote no line to the journal" was a host running its session without Martha's relay. Claude Code's hooks worker gives "no answer to a heartbeat within 5000ms" while martha is loading, so the host unloads martha and respawns the worker without it. No hook reaches the launcher and the journal stays empty.

  • The drive types the owner's turn only once a launch in the project has received the session's start (a condition, not a time). A member that ends first fails by name: "The host started its session without Martha's relay".
  • anyLaunchReceived (journal) and relayNeverReportedTheStart (drive), pinned by two cases in a_silent_host_fails_by_name. Mutants: any event counts, newest file only, never refuses: all killed.
  • Proven on msi00: own_writes 6/6 and every_turn 6/6 green. With register() slowed 8 s, the named red appears (~41 s, the launcher's 30 s deadline). Martha's own load: 55-77 ms on host00 at load 15.

🤖 Generated with Claude Code

Refs #171 The relay job's red "the launcher wrote no line to the journal" was a host running its session without Martha's relay. Claude Code's hooks worker gives "no answer to a heartbeat within 5000ms" while martha is loading, so the host unloads martha and respawns the worker without it. No hook reaches the launcher and the journal stays empty. - The drive types the owner's turn only once a launch in the project has received the session's start (a condition, not a time). A member that ends first fails by name: "The host started its session without Martha's relay". - `anyLaunchReceived` (journal) and `relayNeverReportedTheStart` (drive), pinned by two cases in a_silent_host_fails_by_name. Mutants: any event counts, newest file only, never refuses: all killed. - Proven on msi00: own_writes 6/6 and every_turn 6/6 green. With register() slowed 8 s, the named red appears (~41 s, the launcher's 30 s deadline). Martha's own load: 55-77 ms on host00 at load 15. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The owner's turn waits for the relay's report of the session's start (martha#171)
Some checks failed
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 carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 8s
dependency advisories / node in installer (pull_request) Successful in 8s
dependency advisories / node in installer (container) (pull_request) Has been skipped
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 6s
dependency advisories / node in . (pull_request) Successful in 16s
dependency advisories / advisories (pull_request) Successful in 0s
CI / no import cycle (pull_request) Successful in 21s
CI / the posted text check bites (pull_request) Successful in 7s
CI / structural floor (pull_request) Failing after 34s
CI / Martha's names are its own (pull_request) Successful in 22s
CI / the engine drift check bites (pull_request) Successful in 17s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 14s
CI / workflows are valid (pull_request) Successful in 10s
CI / nothing private (pull_request) Has been skipped
CI / no test the base passed goes missing (pull_request) Successful in 30s
CI / the pictures change only with the version (pull_request) Successful in 13s
CI / every check runs in a job (pull_request) Successful in 18s
CI / the host drift check bites (pull_request) Successful in 2m0s
CI / every job has a timeout (pull_request) Successful in 18s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 18s
CI / no literal restates a defined value (pull_request) Successful in 57s
CI / installer (pull_request) Successful in 2m18s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 1m6s
CI / the relay loads in the recorded host (pull_request) Has been cancelled
CI / gate coverage (pull_request) Has been cancelled
CI / the clean-install proof removes its container (pull_request) Has been cancelled
8da3ce07fc
The relay job's red "the launcher wrote no line to the journal" was a host that
ran its session without Martha's relay. Claude Code 2.1.332 loads every
plugin's hooks module in one worker and heartbeats it; when the worker gives
"no answer to a heartbeat within 5000ms" while martha is on its stack, the host
unloads martha ("it crashed the hooks worker") and respawns the worker for the
other plugins only. No session start, prompt or tool call reaches the launcher,
so the journal stays empty. A busy-wait of 8 s or more in register() gives the
same red and the same debug lines; 5 s passes. Martha's own load is 55-77 ms on
host00 at load 15, so the stall that trips it there is the host's, not ours.

The drive now types the owner's turn only once a launch in the project has
received the session's start, a condition rather than a time, and a member
that ends before that fails by name: "The host started its session without
Martha's relay". The launcher's own session-start deadline is what ends it.
The waits before the owner's turn in one function, so the drive stays within its lint bounds (martha#171)
Some checks failed
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 4s
CI / no import cycle (pull_request) Successful in 27s
CI / the relay loads in the recorded host (pull_request) Failing after 17m42s
CI / Martha's names are its own (pull_request) Successful in 26s
CI / structural floor (pull_request) Successful in 34s
CI / the posted text check bites (pull_request) Successful in 15s
CI / the engine drift check bites (pull_request) Successful in 24s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 17s
CI / the clean-install proof removes its container (pull_request) Successful in 21m44s
CI / nothing private (pull_request) Has been skipped
CI / workflows are valid (pull_request) Successful in 17s
CI / the pictures change only with the version (pull_request) Successful in 15s
CI / the host drift check bites (pull_request) Successful in 1m13s
CI / every check runs in a job (pull_request) Successful in 10s
CI / no test the base passed goes missing (pull_request) Successful in 42s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 11s
CI / every job has a timeout (pull_request) Successful in 10s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 28s
CI / no literal restates a defined value (pull_request) Successful in 55s
CI / installer (pull_request) Successful in 4m16s
CI / gate coverage (pull_request) Successful in 16m40s
dependency advisories / node in . (pull_request) Successful in 9s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 9s
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
c4 model / c4-model-1 (pull_request) Successful in 3s
dependency advisories / node in installer (pull_request) Successful in 12s
e9a8bc370c
The owner's turn counts only this run's relay start, and the refusal is tested without a host (martha#171 r=1)
All checks were successful
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
c4 model / c4-model-1 (pull_request) Successful in 4s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 24s
CI / no literal restates a defined value (pull_request) Successful in 53s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 6s
CI / structural floor (pull_request) Successful in 31s
CI / Martha's names are its own (pull_request) Successful in 26s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 35s
CI / no import cycle (pull_request) Successful in 29s
dependency advisories / node in installer (pull_request) Successful in 1m25s
dependency advisories / advisories (pull_request) Successful in 0s
CI / the posted text check bites (pull_request) Successful in 14s
CI / the engine drift check bites (pull_request) Successful in 48s
CI / nothing private (pull_request) Has been skipped
CI / workflows are valid (pull_request) Successful in 13s
CI / the host drift check bites (pull_request) Successful in 1m1s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 15s
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 29s
CI / installer (pull_request) Successful in 2m20s
CI / every check runs in a job (pull_request) Successful in 16s
CI / every job has a timeout (pull_request) Successful in 10s
dependency advisories / node in . (pull_request) Successful in 16s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 14s
dependency advisories / node in . (container) (pull_request) Has been skipped
CI / the relay loads in the recorded host (pull_request) Successful in 14m38s
CI / the clean-install proof removes its container (pull_request) Successful in 19m41s
CI / gate coverage (pull_request) Successful in 16m29s
80f499f76d
- anyLaunchReceived/relayNeverReportedTheStart take the run's start: a session_started an earlier launch's kept journal
  holds no longer lets a run whose host dropped the relay type its turn.
- untilTheOwnerMayType is exported and tested with an until that returns at once: refused by name with the terminal
  when the member ended first, let through once this run's relay reported, and the two waits asked in order.
- One helper, aLaunchThatStoppedBecause, builds the red with the terminal's end for both places that did it.
terra manually merged commit 740ed29518 into main 2026-11-25 12:44:34 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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!178
No description provided.