martha#147: an engine member's row is beaten while it runs, so martha ls reads it running #148

Manually merged
terra merged 1 commit from pluto/147-engine-member-beats-its-row into main 2026-11-24 19:34:10 +00:00
Member

Purpose (fix): an engine member's row is beaten while it works, so martha ls reads a live engine member as running and reads offline only when it is really gone.

What happens. A Claude Code member's launch starts the crew's beat when it serves its relay (keptBeatingWhileItRuns). An engine member's launch never did, so its row was written only when something happened to it and stayed quiet in between: on main 5a2b91b9 the pilot's engine member, alive with no ask open, read

$ martha ls
Pluto  offline  /home/rl/work/martha-pilot-ws  since 2026-11-24T12:15:30.132Z  deepseek-flash

with its row last written at 12:15:33, ten minutes earlier, while its engine process ran.

What changes. The engine member's start wraps its relay in the same helper a Claude Code launch uses: the crew's beat runs while the relay is served and stops when it closes, and the owner's list is swept the same way. A refused start or an ended member leaves no timer behind.

Proof. start_an_engine_member.node-test.ts 27/27 with the new test: an engine member runs with a script that writes no row of its own, its row moves within two beat intervals of settling, and after stop it does not move again. Its mutant, the launcher's beat dropped, fails that test by name. Live, from this branch's bin/martha on the same pilot workspace: martha ls read Pluto running at 12:25:22, :30, :37, :45, :52, 12:26:00, :07 and :15, and the row's age at the last sample was 2.3 s, where main read offline from 31 s after the row's last write on. Typecheck and eslint clean; check:restated-values, check:no-import-cycle and check:private clean.

Refs macula-io/martha#147, #142, #102.

Purpose (fix): an engine member's row is beaten while it works, so `martha ls` reads a live engine member as running and reads offline only when it is really gone. What happens. A Claude Code member's launch starts the crew's beat when it serves its relay (`keptBeatingWhileItRuns`). An engine member's launch never did, so its row was written only when something happened to it and stayed quiet in between: on main `5a2b91b9` the pilot's engine member, alive with no ask open, read ``` $ martha ls Pluto offline /home/rl/work/martha-pilot-ws since 2026-11-24T12:15:30.132Z deepseek-flash ``` with its row last written at 12:15:33, ten minutes earlier, while its engine process ran. What changes. The engine member's start wraps its relay in the same helper a Claude Code launch uses: the crew's beat runs while the relay is served and stops when it closes, and the owner's list is swept the same way. A refused start or an ended member leaves no timer behind. Proof. `start_an_engine_member.node-test.ts` 27/27 with the new test: an engine member runs with a script that writes no row of its own, its row moves within two beat intervals of settling, and after `stop` it does not move again. Its mutant, the launcher's beat dropped, fails that test by name. Live, from this branch's `bin/martha` on the same pilot workspace: `martha ls` read `Pluto running` at 12:25:22, :30, :37, :45, :52, 12:26:00, :07 and :15, and the row's age at the last sample was 2.3 s, where main read `offline` from 31 s after the row's last write on. Typecheck and eslint clean; `check:restated-values`, `check:no-import-cycle` and `check:private` clean. Refs macula-io/martha#147, #142, #102.
martha#147: an engine member's row is beaten while it runs
Some checks failed
dependency advisories / node in . (pull_request) Successful in 11s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 10s
dependency advisories / node in installer (pull_request) Successful in 10s
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 4s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 5s
CI / structural floor (pull_request) Successful in 26s
CI / Martha's names are its own (pull_request) Successful in 27s
CI / no import cycle (pull_request) Successful in 25s
CI / the host drift check bites (pull_request) Successful in 1m3s
CI / the posted text check bites (pull_request) Successful in 15s
CI / the engine drift check bites (pull_request) Successful in 48s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 13s
CI / workflows are valid (pull_request) Successful in 14s
CI / nothing private (pull_request) Has been skipped
CI / no test the base passed goes missing (pull_request) Successful in 35s
CI / the pictures change only with the version (pull_request) Successful in 17s
CI / no literal restates a defined value (pull_request) Successful in 55s
CI / installer (pull_request) Successful in 3m49s
CI / every check runs in a job (pull_request) Successful in 15s
CI / every job has a timeout (pull_request) Successful in 14s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 20s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 32s
CI / the relay loads in the recorded host (pull_request) Failing after 10m58s
CI / the clean-install proof removes its container (pull_request) Successful in 16m11s
CI / gate coverage (pull_request) Successful in 16m57s
e9a75bd6bf
A Claude Code member's launch starts the crew's beat when it serves its relay;
an engine member's launch never did, so its row was written only when something
happened to it and martha ls read a live engine member as offline. The engine
start now keeps its relay beating the row the same way, so the beat ends with
the member.
terra manually merged commit ee35c556b6 into main 2026-11-24 19:34:10 +00:00
Member

Landed as ee35c556 (--no-ff onto 951f20be), Supervisor ruling 2026-11-24. Known red, not this PR: task 10282 "the relay loads in the recorded host" (run 1149) is also red on main 951f20be (task 10320, run 1153), the #19 flake class; this PR touches only start_an_engine_member. On the merge: start_an_engine_member + stop_and_restart_a_member 96/96 pass; gate nothing private.

Landed as ee35c556 (--no-ff onto 951f20be), Supervisor ruling 2026-11-24. Known red, not this PR: task 10282 "the relay loads in the recorded host" (run 1149) is also red on main 951f20be (task 10320, run 1153), the #19 flake class; this PR touches only start_an_engine_member. On the merge: start_an_engine_member + stop_and_restart_a_member 96/96 pass; gate nothing private.
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!148
No description provided.