martha#147: an engine member's row is beaten while it runs, so martha ls reads it running #148
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "pluto/147-engine-member-beats-its-row"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (fix): an engine member's row is beaten while it works, so
martha lsreads 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 main5a2b91b9the pilot's engine member, alive with no ask open, readwith 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.ts27/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 afterstopit does not move again. Its mutant, the launcher's beat dropped, fails that test by name. Live, from this branch'sbin/marthaon the same pilot workspace:martha lsreadPluto runningat 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 readofflinefrom 31 s after the row's last write on. Typecheck and eslint clean;check:restated-values,check:no-import-cycleandcheck:privateclean.Refs macula-io/martha#147, #142, #102.
Landed as
ee35c556(--no-ff onto951f20be), 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 main951f20be(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.