Batch 4: martha#254, martha#263 #286

Manually merged
terra merged 6 commits from terra/batch4 into main 2026-11-27 02:32:25 +00:00
Member

Batch landing (crew_land_batch) on main 7add9fe3 of martha-ai/martha#254 (PR 281 @8cf9f058, PASS r=2) and martha-ai/martha#263 (PR 285 @16f40503, PASS r=1). Refs #254, Refs #263.

Batch landing (crew_land_batch) on main 7add9fe3 of martha-ai/martha#254 (PR 281 @8cf9f058, PASS r=2) and martha-ai/martha#263 (PR 285 @16f40503, PASS r=1). Refs #254, Refs #263.
A start that failed leaves its crew's tmux session behind with a dead pane per member,
and `martha up` refused before reading anything: its caller was a script, its input no
terminal, and the refusal spoke of `martha start` on a terminal that caller does not have.
Every member `up` starts is opened detached — a window on Martha's own tmux, or kitty's
tabs — so nothing is typed on the caller's terminal and `up` asks for none; a crew now
restarts itself unattended, and a window whose member ended is closed and its member
opened again in its place, as it already was for an owner at a terminal.

The one thing `up` does ask is where the engine's key file is, when the crew names no
engine_endpoint and the provider's variable is unset. Asked with no terminal, that
question waits on a reading that never comes, so it is refused instead, naming the field
and the file it goes in. `martha start` and `martha attach`, which really do run on the
owner's terminal, keep their refusal.

The kitty path is unchanged: it still asks for the owner's terminal, and the test that
named the old refusal for `up` now pins that instead.

Drops-test: src/run_the_martha_command/run_the_martha_command.node-test.ts :: #511: martha up whose input is no terminal refuses, and writes nothing
Jupiter's three notes, folded in. (1) `up` read the crew, wrote the engine endpoint into the
declaration, kept the crew's realm key and wrote its roster, and only then refused for a kitty
crew whose caller has no terminal — the write-then-refuse order the old #511 test forbade. The
refusal now sits where the crew is read, in `theCrewUpOpens` (../bring_up_the_declared_crew),
which hands back either the crew or the caller's refusal line; the line is the caller's so that
module names no launcher's wording and imports none of it. A tmux crew still needs no terminal.
The test pins it: the declaration bytes unchanged, no file written anywhere under the home, no
kitty started — and it reds when the guard is taken out ("up wrote the endpoint before it refused").

(2) Two comments corrected: `up`'s doc block says a tmux crew needs no terminal and a kitty
crew's is asked for before anything is written, and the owner's-acts table no longer claims every
one of them asks for a terminal, since `up` is not.

(3) A row for NAME_THE_ENDPOINT_INSTEAD in getting-started's "What a refusal means" table.

`run_the_martha_command.ts` stays at its 1105-line cap: the guard is paid for by the comment it
replaces and by the crew read it folds into.
A spawned child shows its parent's command line until its execve, so the
immediate assert was a race the test itself had: 190 ms under a loaded
suite, and the reader rightly answered undefined. The wait is bounded and
fails by name when the child never becomes that process.
Land martha-ai/martha#263 (PASS r=1)
All checks were successful
dependency advisories / node in installer (container) (push) Has been skipped
dependency advisories / node in . (container) (push) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (push) Has been skipped
suite / gate coverage (push) Successful in 20m7s
dependency advisories / node in . (push) Successful in 14s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (push) Successful in 12s
dependency advisories / node in installer (push) Successful in 11s
dependency advisories / advisories (push) Successful in 0s
c4 model / c4-model-1 (push) Successful in 5s
c4 model / c4-model (push) Successful in 0s
CI / links resolve, workflows are valid (push) Successful in 11s
heavy / installer (push) Successful in 2m22s
standalone / standalone Martha runs alone (ubuntu-latest) (push) Successful in 34s
suite / the ring reaches the owner on the live run's tmux (push) Successful in 14s
CI / checks (push) Successful in 4m25s
heavy / the relay loads in the recorded host (push) Successful in 15m28s
heavy / the clean-install proof removes its container (push) Successful in 20m4s
530950313a
Collaborator

CI coordinator: round r=1: dispatched ci.yml on 530950313a, run 5785 (base 7add9fe3b7).

CI coordinator: round r=1: dispatched ci.yml on 530950313ae7f4b22cff4662e27e94ec4b7de563, run 5785 (base 7add9fe3b7848c79d6c5575cc6b2ebf02127de21).
Collaborator

CI coordinator: round r=1: dispatched suite.yml on 530950313a, run 5786 (base 7add9fe3b7).

CI coordinator: round r=1: dispatched suite.yml on 530950313ae7f4b22cff4662e27e94ec4b7de563, run 5786 (base 7add9fe3b7848c79d6c5575cc6b2ebf02127de21).
Collaborator

CI coordinator: round r=1: dispatched c4-model.yml on 530950313a, run 5787 (base 7add9fe3b7).

CI coordinator: round r=1: dispatched c4-model.yml on 530950313ae7f4b22cff4662e27e94ec4b7de563, run 5787 (base 7add9fe3b7848c79d6c5575cc6b2ebf02127de21).
Collaborator

CI coordinator: round r=1: dispatched standalone.yml on 530950313a, run 5788 (base 7add9fe3b7).

CI coordinator: round r=1: dispatched standalone.yml on 530950313ae7f4b22cff4662e27e94ec4b7de563, run 5788 (base 7add9fe3b7848c79d6c5575cc6b2ebf02127de21).
terra manually merged commit 530950313a into main 2026-11-27 02:32:25 +00:00
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!286
No description provided.