martha#254: martha up needs no terminal, so a crew of dead panes restarts itself #281
Loading…
Reference in a new issue
No description provided.
Delete branch "ceres/254-dead-panes"
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?
What it does
martha upno longer asks for the caller's terminal, so a crew whose start failed restarts itself from a script.A failed start leaves the crew's tmux session behind with a dead pane per member (#239: all three panes died at
status 1). The next
martha up, run from a script under tmux with no terminal, refused before it read anything:Nothing
upopens is typed on the caller's terminal: each member isnew-session -d/new-window -don Martha's owntmux, or a detached kitty. The dead-pane recovery was already there —
openAMembersWindowreadspane_deadon themember's own pane, closes the window, opens the member again in its place — it was simply unreachable for a caller with
no terminal.
The one thing
updoes ask is where the engine's key file is, when the crew names noengine_endpointand theprovider's variable is unset. Asked with no terminal,
readlinewould wait on a reading that never comes, so it isrefused instead, naming the field and the file it goes in.
The cost, stated plainly (the #619 speed bump)
Deleting the gate removes a speed bump: a member's shell can now run
martha upfor a tmux crew, as it could always runtmux -L martha new-windowitself. It still cannot runmartha start <member>, and the terminal gate was never a wall(martha#619 says so in its own comment). The Supervisor ruled this on 2026-11-26 under DECIDED 2026-11-24 "the team is
way too paranoid": no guard for a crew-insider scenario. The kitty path,
martha startandmartha attachkeep theirrefusals.
Evidence
run_the_martha_command.node-test.ts+bring_up_the_declared_crew.node-test.ts: 91/91.#254: martha up whose input is no terminal starts a tmux crew again, closing each window whose member ended— thesession is open with
1 Leadand1 flash-alisted (both panes ended) and the run's stdin is a pipe; it assertskill-windowthennew-windowthen the strip for each member, and no secondnew-session.EXIT_REFUSED), and so does#254: martha up whose input is no terminal and whose crew names no engine endpoint refuses, naming the field to write.5d3c4813merged once, automatically, nothing resolved by hand (Mars's ruling): tip875ae51d. The merge touchesneither of the two files this changes.
875ae51d:.github/workflowsdiff vs5d3c48130 bytes;run_the_martha_command.tsexactly 1105 lines,the lint cap, nothing net-added;
npm run verifygreen end to end (lint first, then 1224 files' names, 1163 sourceswith no cycle, 480 test files' titles, 48 restated-value sites with 0 findings, nothing private, 16 checks each in a
job, 19 jobs timed, posted-text bites, 17 recorded-host runs counted);
check:privateMARTHA_GITHUB_STOPPED=1nothing private ondf4ec408..and on5d3c4813..; wholenpm test5679 tests, 5641 pass, 0 fail, 38 skipped (stage 1's 17 recorded-host runs do not run locally, as its script says:
ci.yml's relay job runs them).
Drops-test:line in the commit message.Refs martha-ai/martha#254, martha-ai/martha#239, martha-ai/martha#223.
5d3c4813' into ceres/254-dead-panes 875ae51da0