Land martha#320 (953-chat PR 5, init config) #321

Manually merged
terra merged 19 commits from terra/land-320 into main 2026-11-30 22:13:44 +00:00
Member

Land branch built by crew_land_batch on main bb54e799: #320 neptunus/310-init-config 99936b93 (Saturnus PASS r=1, Mars diff-only PASS r=2). Tip 2f59758b. Lands by fast-forward on Mars's LAND.

Land branch built by crew_land_batch on main bb54e799: #320 neptunus/310-init-config 99936b93 (Saturnus PASS r=1, Mars diff-only PASS r=2). Tip 2f59758b. Lands by fast-forward on Mars's LAND.
A newly declared crew is written its starter permission policy at
.claude/settings.json and its own tmux file at .martha/tmux.conf, each only
where nothing is there already; a file the owner had is left exactly as it is,
and init says which it wrote or left. The rules are the owner's from then on and
`martha approve` is still what approves them.

`martha up` now sources .martha/tmux.conf after Martha's own settings, so a
binding the owner adds is read when the server starts and can override the
defaults. The file is written by init, never by up.

Tests: a new crew gets both files, an existing one is untouched, the config
sources the owner file last, and the start and wake flows approve the starter
config first.
`martha init` now writes .claude/settings.json, so the proof's `martha
approve` has a config to read and asks for the owner's yes; it now types it on
the same terminal instead of expecting "nothing to approve" and hanging.
`martha init` printed a path into the release tree for the one file that shows
every field a declaration may hold, so the options were only discoverable by
hunting through an installed release. It now copies docs/martha.full-example.json
to .martha/martha.full-example.json, once, only when nothing is there, and names
that copy in its last line. The release's own copy stays where docs point to it.

The example's file name is named once and the docs path is built from it, so the
copy, the test that declares the example and the line init prints cannot drift.
Instead of one copied example file, `martha init` copies the release's whole
docs tree to .martha/docs, only when nothing is there, so the declaration's
page, getting-started and the full example are beside the crew and their
relative links work. The line init prints names .martha/docs/martha.full-example.json,
where the options are, rather than a path into the installed release.
`martha down` stops every member through the same requests `martha stop` sends,
then closes only this crew's own tmux session on Martha's server; a session
another crew opened on that server is untouched, and the server is never killed.
If a member refuses to stop, the session is left open so the failure stays in
view. A crew that opens in kitty just stops its members.

Martha's tmux config now binds `prefix q` to that same `down`, with a
confirmation and the binary that opened the session, so ending the crew is one
key and needs no `tmux -L martha` from the owner. The binding is written before
the owner's `.martha/tmux.conf`, so their file can override it.
On a terminal `martha init` now asks which host runs the crew (martha-engine by
default for this standalone launcher, claude-code as the other), which terminal
opens it (tmux by default), which members with which roles, and which model
(the host's own when empty), then confirms once before writing. A member line
of name:role pairs lets a crew rename its builder or leave the reviewer out; the
solo mode's roles and hold_reviews follow the members.

`--host`, `--terminal`, `--members` and `--model` answer in place of their
question, and `--yes` takes the flags and the defaults with no questions. With
no terminal to ask on, init keeps the historical Claude Code default unless
`--host` names the engine, so a script's crew is unchanged; the engine's model
vocabulary is open and the Claude Code host's is checked against its recorded
names. The declaration writes the terminal, members and model the answers name.
Drops-test: src/declare_crew/the_drafts_declaration.node-test.ts :: #931: the engine is reached through the provider its profiles name, a bare host on https, the key file kept as written

Drops-test: src/declare_crew/the_drafts_declaration.node-test.ts :: #931: an engine endpoint is declared in one place, and the engine reaches one provider
DECIDED 2026-11-30 "Wide starter, honest comment" (Raf). The allow list keeps
node, npm, git, cp and mv. The comment and getting-started said the network
and history-overwriting acts were held back, but each of those five can run
anything, reach the network and write any path, so the deny list holds nothing
a member cannot do another way. Both now say so: a member started with these
rules can run nearly anything unasked, and the deny list is a convenience.

The two ./prove_the_relay_loads/ script rules are removed: they name Martha's
own repository and mean nothing in an owner's project (no_hard_coding). A test
holds every starter rule to a command, never a path (Saturnus's review of
owner/953-chat, F2).

Refs #310
Both sides added a verb: USAGE and ACTS_ALONE keep both `martha schema` and
`martha config`/`martha down`. USAGE is written on one line so the file stays
at the 1105-line cap after both sides' additions.
PR 318 (martha#317 L1) put THE_EDITORS_SECTIONS, THE_EDITORS_FIELDS,
THE_EDITORS_RULE_KEYS and THE_EDITORS_MESH_KEYS in
src/declare_crew/the_declarations_schema.ts, so one list drives both the
schema and the editor. The editor's own copies, identical value for value,
are removed and imported from there, and the editor's test imports them from
there too. No second copy is left.

Refs #310, #317
Land martha-ai/martha#320 (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 carry_marthas_own_node/try_a_single_executable (push) Successful in 15s
dependency advisories / node in . (push) Successful in 15s
dependency advisories / node in installer (push) Successful in 15s
dependency advisories / advisories (push) Successful in 0s
heavy / installer (push) Successful in 2m51s
standalone / standalone Martha runs alone (ubuntu-latest) (push) Successful in 50s
suite / the ring reaches the owner on the live run's tmux (push) Successful in 16s
CI / checks (push) Successful in 4m22s
heavy / the relay loads in the recorded host (push) Successful in 16m31s
suite / gate coverage (push) Successful in 21m2s
heavy / the clean-install proof removes its container (push) Successful in 20m57s
2f59758b26
Collaborator

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

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

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

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

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

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

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

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

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

CI coordinator: round r=1: dispatched standalone.yml on 2f59758b26a5c2eddb3e5aa2cdece8bce0c595ad, run 6011 (base bb54e799201eb37940bea64f2958b00db0e0025b).
terra manually merged commit 2f59758b26 into main 2026-11-30 22:13:44 +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!321
No description provided.