Land batch: #191 + #305 + #326 #327

Manually merged
terra merged 0 commits from terra/batch-191-305-326 into main 2026-12-01 02:11:35 +00:00
Member

Batch land of martha-ai/martha#191 (PR 323, PASS r=1), #305 (PR 322, PASS r=2), #326 (PR 326, PASS r=2) on main 2f59758b. Tip dc79b38b. Refs #191 #305 #326

Batch land of martha-ai/martha#191 (PR 323, PASS r=1), #305 (PR 322, PASS r=2), #326 (PR 326, PASS r=2) on main 2f59758b. Tip dc79b38b. Refs #191 #305 #326
A new slice, install_the_recorded_claude_code, installs the Claude Code version this
release is recorded against from registry.npmjs.org, pinned by npm's own lock (sha512),
under ~/.local/share/martha/claude-code/<version>, for linux-x64 alone. The owner's own
claude is left as it is.

- `martha claude-code install` installs it; `martha up` installs it itself when a Claude
  Code member starts and the copy is missing; `martha sign-in` starts it to sign in.
- A Claude Code member starts from that copy, never a claude on the PATH.
- The clean-install proof installs by the command and checks the container has no claude.
- Tests use a stand-in npm and a stand-in copy; none reaches a registry.
- A start no longer looks for claude on the PATH, so the #541 refusal of a host missing
  from the PATH is replaced by the refusal of a home without Martha's own copy.

Refs #305

Drops-test: src/start_a_member/start_a_member.node-test.ts :: #541: a host whose command is not on the path is refused, naming the install, with nothing started
# Conflicts:
#	src/run_the_martha_command/run_the_martha_command.ts
martha init writes .mcp.json beside the other starters when the declaration has
a mesh block, naming the newest recorded @macula-io/mcp by version and bin. A
launch then places it from its recorded tree and hands it MACULA_MESH_STATIONS
and, for a realm written by its name, MACULA_MESH_REALMS (martha#158). A crew
with no mesh gets no file; a .mcp.json already there is left exactly as it is.
martha config writes the same file after a save that declares a mesh, when none
is there. The pin is built by one function, aPinOfTheMeshServer, which the
engine member's mesh server (martha#181) now uses too.

Refs #191
run_the_martha_command.ts had grown to 1134 lines against the 1105 cap. The engine,
claude-code install and sign-in words and acts now live in
the_installs_martha_makes.ts; the command file is 1102 lines.

Refs #305
The upstream sync (martha-ai/martha-engine#20) renamed the goose-* crates to oi-kit-*, so five
parts read from their new files: modes, the OpenAI provider, the stdio
extension, the tool name parts, and the session key, now declared in
oi-kit-agent's MCP client.

Upstream #13605 removed the approval's filter that let a call to a tool never
advertised skip the permission check: the engine now answers such a call with
an error before the approval, so it never runs. approve_mode_unasked loses its
`unadvertised` field, and the reader now requires the approval to hand every
call to the check; a filter there is a way to go unasked it does not know, so
the part is unreadable.

The recording gains `view` (ViewParams, on `path`, read-only, local), which the
decisions take as a search on its path: the design-table test names its row,
and its title says so.

Refs martha#953

Drops-test: src/launch_a_goose_member/the_engines_decisions.node-test.ts :: on the recording, the rows are the design table, keyed by the name a call carries: write and edit one file, tree every file below, shell a command, read_image none (#541 package A, design G1)
Drops-test: src/know_the_goose_engines_facts/the_engines_facts_in_its_source.node-test.ts :: what approve mode runs unasked is read as the engine writes it: each user permission level that allows, past a level that asks and a smart-approve-only allow, and the filter before the check (#541 package A, design r=6 R1''; mutants: the smart-approve allow counted, every level read)
Drops-test: src/know_the_goose_engines_facts/the_engines_facts_in_its_source.node-test.ts :: an approve-mode allow this reader does not know, or an approval that no longer allows what its filter keeps out, is unreadable by name (#541 package A; mutants: either throw dropped)
The Developer tools whose recorded hints say they only read and reach nothing
past the machine run unasked, by whole engine name, as the crew's own and the
mesh server's tools do. The engine's decisions pick them (theDevelopersReads)
and the launcher hands them to the rules slice, which imports no host glue. The gate is read first and judges the path each names,
so one runs unasked only where the gate passed it.

An owner's deny or ask rule on a reading tool (Read, Grep, bare or with a
pattern) holds every one of them, read wider than written; before this, such a
rule held nothing, since no read ran unasked.

Refs martha#953 (Uranus's review R2 on martha-ai/martha-engine#24)
The Supervisor's ruling on r1 (Saturnus's note 1): a read is itself the
sending of what it reads to the model's provider, so a developer__view of
~/.ssh that runs unasked has sent the key before any later gate could stop
it. R2 meant "unasked when the path is safe".

theDevelopersReads now takes the launch's checkout and says, per call,
whether the tool's path argument resolves inside it: resolved as the engine
resolves it, against the checkout, with its links followed, so a link in the
checkout to a folder outside is outside. A call with no path, or one that is
not text, is asked. The rules slice runs a read unasked only when that check
passes and no hold names it; every other read is asked of the owner as before.

Mutants caught: the inside check dropped (in the rules and in the
decisions), links not followed, the kind filter dropped, the hold dropped.

Refs martha#953
Land martha-ai/martha#326 (PASS r=2)
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 . (push) Successful in 13s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (push) Successful in 13s
dependency advisories / node in installer (push) Successful in 15s
dependency advisories / advisories (push) Successful in 0s
engine drift / the recording says what the engine says (push) Successful in 44s
heavy / installer (push) Successful in 2m28s
standalone / standalone Martha runs alone (ubuntu-latest) (push) Successful in 32s
suite / the ring reaches the owner on the live run's tmux (push) Successful in 15s
CI / checks (push) Successful in 4m13s
heavy / the relay loads in the recorded host (push) Successful in 15m39s
suite / gate coverage (push) Successful in 19m30s
heavy / the clean-install proof removes its container (push) Successful in 19m57s
dc79b38bec
Collaborator

CI coordinator: round r=1: dispatched ci.yml on dc79b38bec, run 6035 (base 2f59758b26).

CI coordinator: round r=1: dispatched ci.yml on dc79b38bec04246d3fdec730f4f1732cbebd65ca, run 6035 (base 2f59758b26a5c2eddb3e5aa2cdece8bce0c595ad).
Collaborator

CI coordinator: round r=1: dispatched suite.yml on dc79b38bec, run 6036 (base 2f59758b26).

CI coordinator: round r=1: dispatched suite.yml on dc79b38bec04246d3fdec730f4f1732cbebd65ca, run 6036 (base 2f59758b26a5c2eddb3e5aa2cdece8bce0c595ad).
Collaborator

CI coordinator: round r=1: dispatched heavy.yml on dc79b38bec, run 6037 (base 2f59758b26).

CI coordinator: round r=1: dispatched heavy.yml on dc79b38bec04246d3fdec730f4f1732cbebd65ca, run 6037 (base 2f59758b26a5c2eddb3e5aa2cdece8bce0c595ad).
Collaborator

CI coordinator: round r=1: dispatched c4-model.yml on dc79b38bec, run 6038 (base 2f59758b26).

CI coordinator: round r=1: dispatched c4-model.yml on dc79b38bec04246d3fdec730f4f1732cbebd65ca, run 6038 (base 2f59758b26a5c2eddb3e5aa2cdece8bce0c595ad).
Collaborator

CI coordinator: round r=1: dispatched standalone.yml on dc79b38bec, run 6039 (base 2f59758b26).

CI coordinator: round r=1: dispatched standalone.yml on dc79b38bec04246d3fdec730f4f1732cbebd65ca, run 6039 (base 2f59758b26a5c2eddb3e5aa2cdece8bce0c595ad).
Collaborator

CI coordinator: round r=1: dispatched advisories.yml on dc79b38bec, run 6040 (base 2f59758b26).

CI coordinator: round r=1: dispatched advisories.yml on dc79b38bec04246d3fdec730f4f1732cbebd65ca, run 6040 (base 2f59758b26a5c2eddb3e5aa2cdece8bce0c595ad).
Collaborator

CI coordinator: round r=1: dispatched engine-drift.yml on dc79b38bec, run 6041 (base 2f59758b26).

CI coordinator: round r=1: dispatched engine-drift.yml on dc79b38bec04246d3fdec730f4f1732cbebd65ca, run 6041 (base 2f59758b26a5c2eddb3e5aa2cdece8bce0c595ad).
terra manually merged commit dc79b38bec into main 2026-12-01 02:11:35 +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!327
No description provided.