martha#367: martha up hands the crew to lazymartha's crew screen, and the docs say what opens, what to install, and how the engine is named #370

Open
ceres wants to merge 5 commits from ceres/367-crew-screen-up into main
Member

Purpose (feature): martha up opens the crew in lazymartha's crew screen instead of tmux or kitty, and getting-started tells the truth about what to install and what up opens.

Refs martha-ai/martha#367. Design: the crew-screen design (package 5); Supervisor ruling 2026-12-02 that martha up --prompt forwards to the screen.

What it does

  • up's last line replaces this process with lazymartha crew --root <root> --martha <the script that ran up>, through execve with argv[0] set to the screen's own path (a shebang script drops argv[0], found by running it). The screen's environment is the owner's with the PATH's first entries this martha's node and its own directory, so the screen's martha where and the members it starts (martha start {member} --acp, martha start {member}) all run the martha the owner ran.
  • Without a lazymartha here, or with no terminal for a screen, up opens the crew in tmux or kitty as before and says why in one line. The openers stay (they are another package's to remove).
  • martha up --prompt <text> forwards the text to the screen; up keeps its own refusal of a text that would run a command, before anything opens.
  • Docs: bubblewrap in "What you need"; what up opens, what closing the screen means and how the next up resumes; tmux/kitty as the fallback and as what attach/down work on; --prompt's reach; the declaration's terminal row. The engine's source comment no longer calls martha-engine private (public since 2026-11-24).

Proof

  • The command's test file: 102/102 green, including both paths (a stand-in lazymartha records its argv), the fallback on each terminal flavour, the finder's order (a release's own bin/lazymartha before PATH), --prompt, and the no-terminal fallback. The tests build their own PATH, so a box with lazymartha installed never decides a test.
  • Six mutants, all killed: the no-terminal guard; the no-screen fallback; the martha handed to --martha; the forwarded prompt; the screen's PATH; execve's argv[0].
  • Run for real: this tree's bin/martha up with lazymartha built from its main reached the screen (it stopped at lazymartha's own "names no member to draw" for a crew with every member parked — the one way to run the hand-over here without starting a member).
  • Typecheck and lint green. Full npm test on the parent commit was red only in CI's installer job (the clean-install tear-down/SIGINT family, #340/#362/#179); that job alone in a namespace is green.

Still to come

  • The pin (src/run_the_martha_command/the_lazymartha_pin.json) names the first lazymartha release that carries the crew screen and the Claude Code pane plus lazymartha's package 4 (room pane, crew --prompt). That release does not exist yet; the pin lands as a second commit once it does, and is read diff-only by the reviewer.

CI

Martha's PR CI does not run; CI comes from Terra's land-PR round after the PASS.

Purpose (feature): `martha up` opens the crew in lazymartha's crew screen instead of tmux or kitty, and getting-started tells the truth about what to install and what `up` opens. Refs martha-ai/martha#367. Design: the crew-screen design (package 5); Supervisor ruling 2026-12-02 that `martha up --prompt` forwards to the screen. ## What it does - `up`'s last line replaces this process with `lazymartha crew --root <root> --martha <the script that ran up>`, through `execve` with argv[0] set to the screen's own path (a shebang script drops argv[0], found by running it). The screen's environment is the owner's with the PATH's first entries this martha's node and its own directory, so the screen's `martha where` and the members it starts (`martha start {member} --acp`, `martha start {member}`) all run the martha the owner ran. - Without a lazymartha here, or with no terminal for a screen, `up` opens the crew in tmux or kitty as before and says why in one line. The openers stay (they are another package's to remove). - `martha up --prompt <text>` forwards the text to the screen; `up` keeps its own refusal of a text that would run a command, before anything opens. - Docs: bubblewrap in "What you need"; what `up` opens, what closing the screen means and how the next `up` resumes; tmux/kitty as the fallback and as what `attach`/`down` work on; `--prompt`'s reach; the declaration's `terminal` row. The engine's source comment no longer calls martha-engine private (public since 2026-11-24). ## Proof - The command's test file: 102/102 green, including both paths (a stand-in lazymartha records its argv), the fallback on each terminal flavour, the finder's order (a release's own `bin/lazymartha` before PATH), `--prompt`, and the no-terminal fallback. The tests build their own PATH, so a box with lazymartha installed never decides a test. - Six mutants, all killed: the no-terminal guard; the no-screen fallback; the martha handed to `--martha`; the forwarded prompt; the screen's PATH; `execve`'s argv[0]. - Run for real: this tree's `bin/martha up` with lazymartha built from its main reached the screen (it stopped at lazymartha's own "names no member to draw" for a crew with every member parked — the one way to run the hand-over here without starting a member). - Typecheck and lint green. Full `npm test` on the parent commit was red only in CI's installer job (the clean-install tear-down/SIGINT family, #340/#362/#179); that job alone in a namespace is green. ## Still to come - The pin (`src/run_the_martha_command/the_lazymartha_pin.json`) names the first lazymartha release that carries the crew screen and the Claude Code pane plus lazymartha's package 4 (room pane, `crew --prompt`). That release does not exist yet; the pin lands as a second commit once it does, and is read diff-only by the reviewer. ## CI Martha's PR CI does not run; CI comes from Terra's land-PR round after the PASS.
`up`'s last line now replaces this process with `lazymartha crew --root <root>
--martha <the script that ran up>` (through `execve`, argv[0] first, as a
shell would start it), given a PATH whose first entries are this martha's node
and its own directory, so the screen's `martha where` and the members it starts
all run the martha the owner ran. Without a screen, or with no terminal for one,
the crew opens in tmux or kitty as before and `up` says why in one line (the
design keeps those openers until the package that removes them). `--prompt` is
forwarded to the screen and stays refused where it was already refused.

getting-started gains bubblewrap in What you need, says what `up` opens and what
closing it means, and keeps tmux/kitty described as the fallback and as what
`attach`/`down` work on; the declaration's `terminal` row says what still reads
it. The engine's source comment no longer calls martha-engine private.
getting-started's --prompt paragraph said a member that runs on martha-engine
is not given one; the start hands it over as its own first turn, so the line
says that instead.
The first lazymartha release carrying the crew screen, the CLI pane and
package 4: version 0.1.2, its sha256 read back from macula-pub's
lazymartha/0.1.2/lazymartha-linux-amd64.sha256 and from the published bytes.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'ceres/367-crew-screen-up:ceres/367-crew-screen-up'
git switch 'ceres/367-crew-screen-up'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
3 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!370
No description provided.