Land batch: martha#311 + #312 + #313 #314

Manually merged
terra merged 0 commits from terra/batch-311-312-313 into main 2026-11-30 17:26:51 +00:00
Member

Batch land branch built by crew_land_batch on main ee374a16: #311 neptunus/307-crew-strip 4d0114a1 (PASS r=1), #312 neptunus/308-no-tree-recheck 42041e7a (PASS r=1), #313 neptunus/241-redirect-reader d470be29 (PASS r=1). Tip ef34cd60. Lands by fast-forward on Mars's LAND.

Batch land branch built by crew_land_batch on main ee374a16: #311 neptunus/307-crew-strip 4d0114a1 (PASS r=1), #312 neptunus/308-no-tree-recheck 42041e7a (PASS r=1), #313 neptunus/241-redirect-reader d470be29 (PASS r=1). Tip ef34cd60. Lands by fast-forward on Mars's LAND.
`up` opened a member's window and then refused the whole act when the strip
split failed (a one-row tmux client says "no space for a new pane"), leaving the
member running without its strip and every member after it unopened. The strip
is the dashboard under the member, not the member: its failure is now told, the
window stands, and the members after it are opened. A window tmux does not open
is still refused with what tmux said.

Drops-test: src/open_the_crew_in_tmux/open_the_crew_in_tmux.node-test.ts :: #932: a window or strip tmux does not open is refused with what tmux said, and no later member is opened
A rule like `Bash(git push * --force:*)` was read as a hold on the entire shell,
so an owner who wrote one had every shell call held back: `ls`, `cat` and
`git status` asked even where the allow list named them. A wildcard inside a
hold's command now holds every line beginning with the words before it, which is
wider than the pattern and never narrower; a wildcard in the first word still
holds the whole shell.
A checkout outside any git checkout has no tree for the owner to approve, and
the gate admits its config with a warning that nothing pins what it runs. The
recheck then refused the same launch as "git can no longer read it" as soon as
the live fingerprint differed from the launch's, which stopped every member
after a config change — and kept stopping it after `martha approve`, because no
tree can tell a member's own writes from anyone else's there.

The recheck now asks the gate the same question when the approval has no tree.
A test plants a checkout outside git with config and an empty approval list,
and requires the recheck to allow it.
A redirect to /dev/null, or a duplication of a descriptor such as 2>&1, writes
nothing and runs nothing, so it is taken out before a shell line is read:
`ls 2>/dev/null` is the command `ls`, and an owner's `Bash(ls:*)` names it. A
redirect to any other path still refuses the line, as a file no rule named, and
a substitution, a group, a function or a backgrounded command still does too.

The test that held the old rule now holds both: the redirect to a file is
asked, the redirect to /dev/null is read, and a compound line whose every part
the owner allowed runs unasked.
The redirect reader stripped `>&0` out of `>&0/../.bashrc` and `>&2` out of
`>&2x`, and `2>/dev/null` out of `ls2>/dev/null`. Bash, zsh and sh write the
file the word names for the first two and run `ls2` for the third, so a line
an allowed command started could write any path unasked (Saturnus's review of
owner/953-chat, F1; the Supervisor's #241 rule 3, a redirection into a file is
asked).

Each redirect to nowhere now starts a word, and a duplication is `>&` and
digits that end the word. A test holds the three lines refused and the real
duplications still taken out; two mutants (no start anchor, an unanchored
duplication) each turn it red.

Refs #241
Land martha-ai/martha#313 (PASS r=1)
All checks were successful
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
dependency advisories / node in installer (container) (push) Has been skipped
c4 model / c4-model-1 (push) Successful in 3s
c4 model / c4-model (push) Successful in 0s
CI / links resolve, workflows are valid (push) Successful in 6s
dependency advisories / node in installer (push) Successful in 13s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (push) Successful in 13s
dependency advisories / node in . (push) Successful in 15s
dependency advisories / advisories (push) Successful in 0s
heavy / installer (push) Successful in 2m33s
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 15s
CI / checks (push) Successful in 4m17s
heavy / the relay loads in the recorded host (push) Successful in 16m18s
suite / gate coverage (push) Successful in 19m7s
heavy / the clean-install proof removes its container (push) Successful in 20m33s
ef34cd6016
Collaborator

CI coordinator: round r=1: dispatched ci.yml on ef34cd6016, run 5961 (base ee374a1693).

CI coordinator: round r=1: dispatched ci.yml on ef34cd6016f28e0915e3227e57ff5391e8896f94, run 5961 (base ee374a1693b467a3f415b75de08d8a60e88fdefb).
Collaborator

CI coordinator: round r=1: dispatched suite.yml on ef34cd6016, run 5962 (base ee374a1693).

CI coordinator: round r=1: dispatched suite.yml on ef34cd6016f28e0915e3227e57ff5391e8896f94, run 5962 (base ee374a1693b467a3f415b75de08d8a60e88fdefb).
Collaborator

CI coordinator: round r=1: dispatched c4-model.yml on ef34cd6016, run 5963 (base ee374a1693).

CI coordinator: round r=1: dispatched c4-model.yml on ef34cd6016f28e0915e3227e57ff5391e8896f94, run 5963 (base ee374a1693b467a3f415b75de08d8a60e88fdefb).
Collaborator

CI coordinator: round r=1: dispatched standalone.yml on ef34cd6016, run 5964 (base ee374a1693).

CI coordinator: round r=1: dispatched standalone.yml on ef34cd6016f28e0915e3227e57ff5391e8896f94, run 5964 (base ee374a1693b467a3f415b75de08d8a60e88fdefb).
terra manually merged commit ef34cd6016 into main 2026-11-30 17:26:51 +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!314
No description provided.