lazymartha#6 package 5: martha up opens the crew screen, the new lazymartha pin, and the docs #367
Open
opened 2026-12-02 12:15:50 +00:00 by ceres
·
0 comments
No Branch/Tag specified
main
ceres/367-crew-screen-up
terra/batch-337-237
uranus/251-fold-ci
saturnus/229-land-skip
titan/2-worktree-finish-branch-form
neptunus/232-repo-delete-clean
neptunus/230-force-push
uranus/111-gitlink-eisdir
venus/129-no-launcher-endpoint
saturnus/45-branch-move-head
jupiter/45-volatile-mesh-say
venus/8-land-on-any-host-2
titan/111-gitlinks
juno/040-host-rerecord
vesta/24-remove-github-sponsors
ceres/19-signin-probe
vesta/67-set-a-exports-git-dir
jupiter/47-status-clock
pallas/46-forge-ci-seam
juno/39-offline-private-scan
ceres/19-relay-end-written
venus/8-land-on-any-host
ceres/19-relay-frame
venus/28-budget-line
vesta/48-git-guard
ceres/47-hourly-status
terra/batch3-forge-b
pluto/23-declared-digests
ceres/318-friction-note-rebuilt
neptunus/check-private-digests
hygiea/5-tsx-typecheck
terra/batch2-forge
vesta/973-ask-proof-and-pr-base
jupiter/16-5-3-forge-repo-links
jupiter/check-private-stop
terra/batch3-forge
saturnus/1016-crew-mail
venus/999-refresh-modes
uranus/601-martha-forge-workflows
ceres/1041-work-graph
jupiter/957-gap-19-prompt-text
mercurius/987-stranger-text-gate
jupiter/check-private-stop-posted
pluto/1045-under-600
ceres/1041-contract-lines
pluto/1045-free-splits
diverged/hygiea/962-worktree-finish-owner-and-branch
ceres/967-provider-key
saturnus/1016-mesh-key
hygiea/962-worktree-finish-owner-and-branch
pluto/1045-cognitive-complexity
venus/999-refresh-modes-held-merge
pluto/1010-repo-numbers
pluto/1010-drift-numbers
terra/batch-terra-1121e
hygiea/916-provider-subscription-refusal
venus/999-brief-notice
hygiea/992-job-timeouts
jupiter/1016-crew-memory
terra/batch-terra-1121c
mars/1000-progress-off-tasks
uranus/989-confinement-v
hygiea/985-launcher-verbs-r2
mars/985-rename-handover-match
jupiter/979-guard-places
uranus/980-assign-model
ceres/959-wake-on-idle
uranus/989-confinement-u
juno/802-a-handle-on-my-run
pluto/989-confinement
terra/batch-terra-1120f
mercurius/987-rebased-keep
vesta/308-a-week-of-the-ledger-vesta
jupiter/984-gap-5-crew-state
hygiea/985-launcher-verbs
vesta/915-worktree-finish
terra/batch-terra-1120b
terra/981-review-fix
venus/review-917
final-tip
keep-318-tip
neptunus/1006-review
hygiea/976-the-ci-wait-by-run
terra/979-review-fix
terra/962-review
hygiea/601-row-174-the-engines-settings-watch
uranus/968-markers-r1
terra/981-review
vesta/308-a-week-of-the-ledger
terra/986-review
saturnus/511-up-config
hygiea-601-last3b
hygiea-601-last3
hygiea-601-pre-rebase
jupiter/batch-92
venus/venus-review-929
venus/venus-review-934
uranus/511-up-claude
saturnus/511-refusals
venus/906-token-fixture
jupiter/541-a-engine-start-clean
uranus/614-slice3-approved-skills-on
uranus/614-dw6-unrooted-skill-folders
venus/639-redact-stdin
venus/venus-review-913
neptunus/547-s6-kitty-launch
venus/venus-review-897
neptunus/907-review
venus/898-bundle-main-installer
hygiea/309-a-declared-goal
venus/614-engine-skills-2
neptunus/893-review
venus/639-night2
venus/venus-review-883
jupiter/541-c4-goose-call-answered-by-the-entry
venus/venus-review-866
venus/541-9a-slice-2
mercurius/614-engine-skills
titan/637-updater-switch
pluto/755-fewer-judge-starts
uranus/836-review
mercurius/846-posted-text
neptunus/828-review-r1
titan/801-hint-text
uranus/785-part-2
uranus/797-review
neptunus/830-review
venus/venus-review-837
uranus/724-reap
juno/784-the-launch-a-start-builds
neptunus/784-review-fix
juno/784-the-adapter-under-its-ceiling
diverged/juno/784-the-launch-a-start-builds
juno/784-the-adapter-back-under-origin
neptunus/694-review-fix
juno/732-the-cap-holds-b
neptunus/732-review-fix
titan/541-c3-hints-record
jupiter/host-2.1.328
juno/732-the-cap-holds
ceres/781-launcher-path
uranus/785-hint-files
ceres/724-part-2
neptunus/766-review-fix
uranus/755-hook-filter
jupiter/review-788
neptunus/745-review-fix
uranus/772-judge-env
jupiter/753-keys-declared-twice
pallas/784-launch-request
ceres/562-wire-the-scan
jupiter/744-split-prove-the-core
titan/541-c2-goose-gate-rows
pallas/765-approve-listing
pr-766-tip
terra/769-review
pallas/748-cycle-roots
uranus/uranus-batch-69
venus/venus-review-756
pr-733-head
neptunus/727-shell-quoting
venus/venus-review-738
pallas/694-a-trial-line-keeps-its-transcript
ceres/724-part-1-a-test-leaves-nothing-behind-v2
ceres/tests-leave-nothing-in-the-temp-directory
neptunus/541-2-4-3-the-recording
ceres/700-the-stand-in-reports-its-start
titan/541-6b-multi-host-review-model
uranus/uranus-733r1
scratch-703
titan/541-5-member-host
neptunus/541-2-4-2-the-tool-call
ceres/625-release-redraw
mars/541-acp-transport
ceres/batch-62-redraw
neptunus/541-6-host-model-vocabulary
heads/pr/672
pr/672c
heads/pr/673
juno/541-6-host-model-vocabulary
pr/668b
saturnus/612-no-answer-gets-a-second-launch
ceres/601-release-bump
heads/pr/625
heads/pr/668
pr/656b
heads/pr/666
pallas/611-init-layout
pr/654-r2b
heads/pr/656
pr/662-new
pr/654-new
pr/660-new
saturnus/632-retire-owner-guard
saturnus/602-own-config
ceres/638-read-shape
neptunus/541-10-recorded-goose-host
titan/611-init-layout
venus/244-member-half
titan/165-stand-in-case
pallas/177-tree-stat-record
ceres/314-volatile-path-note-clean
uranus/uranus-batch-48
jupiter/160-where-we-are
uranus/uranus-batch-46
juno/513-budget-r2
pallas/437-trial-builder-r2
pallas/437-trial-builder
saturnus/289b-shell
saturnus/289b-rules
saturnus/289-record-values
ceres/170-vouching-on-real-events
ceres/170-vouching-reaches-the-member
neptunus/136-member-memory
mercurius/4-claw-code-analysis
mercurius/5-scaffold-theme
v0.5.0
dry-run-v0.5.0
installer-v2.0.4
dry-run-installer-v2.0.4
v0.4.3
installer-v2.0.3
dry-run-installer-v2.0.3
dry-run-v0.4.3
v0.4.2
dry-run-v0.4.2
installer-v2.0.2
dry-run-installer-v2.0.2
v0.4.1
dry-run-v0.4.1
installer-v2.0.1
installer-v2.0.0
tested-locks
v0.4.0
ci-tools
v0.3.0
installer-v1.1.1
v0.2.0
installer-v1.1.0
v0.1.0
installer-v1.0.2
installer-v1.0.1
installer-v1.0.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
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#367
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (feature):
martha upopens the crew in lazymartha's crew screen instead of tmux or kitty, a release pins and fetches the lazymartha that carries it, and getting-started tells the truth about what to install and whatupopens.Raf, DECIDED 2026-12-02: "Yes, build it. Real CLI in a pane. Whole room."
Design: martha-ai/lazymartha#6, comment 8053 (Uranus; Jupiter PASS r=2), §2 ("What leaves martha, and what
martha updoes instead") and §5 row 5, with §6's "Package 6 lands only after 2-5 have run a real crew".This issue is package 5 of that design, in martha. Package 6 (removing the tmux and kitty openers and their callers) is not this issue: they stay here, as
up's fallback.Refs martha-ai/lazymartha#6.
Base and dependencies
src/run_the_martha_command/run_the_martha_command.ts(+27/−14), the fileup's last line is on; branching before it lands only buys a conflict.caa38f1(design packages 2 and 3) — and, by the design's order (1, 2, 3, 4a, 4, 5, 6), package 4's crew strip, room pane and editor tab. So the tag comes after lazymartha's package 4 lands, and its sha256 is read back from what macula-pub serves (lazymartha/<version>/lazymartha-linux-amd64.sha256), never typed from a local build..forgejo/workflows/release.yml, DECIDED 2026-11-24 "Tag = CI build"); tags and releases are still asked (DECIDED 2026-11-18 "martha-main-batches-land-without-ask" keeps tags out of the unasked land).What it does
martha up's last line stops choosing between tmux and kitty. When lazymartha is found (the release's ownbin/lazymarthafirst, then PATH, throughfindTheLazymartha) and this is a terminal,upreplaces itself with:and that process's exit status is
up's. The martha handed over isTHIS_MARTHA's own script (process.argv[1]), and the screen's environment is the owner's with the PATH's first entries this martha's node (dirname(process.execPath)) and its own directory (dirname(process.argv[1])): the screen reads its places withmartha whereand starts members withmartha start {member} --acpandmartha start {member}, so those must all be the martha the owner ran, not whatever a PATH holds.execve's argv[0] is the screen's own path, as a shell would start it. Everythingupdoes before that line is unchanged: the declaration is read, the endpoint written or refused, the roster kept, parked members left down.The fallback is today's last line, said in one line. No lazymartha found, or this is no terminal (a tmux crew needs none; a kitty crew's refusal stays as it is),
upsays so in one line and opens the crew as today. This is the design's "Until then,martha upkeeps tmux as the fallback", and it is why the openers stay one more package.martha up --promptforwards to the crew screen. On the crew-screen path the last line becomeslazymartha crew --root <root> --martha <this martha> --prompt <text>, and lazymartha gives the first turn to the same members as today's tmux path — the Claude Code members, never an engine member (martha#134's meaning; Titan adds the flag in lazymartha's package 4). Martha keeps its own checks before forwarding: a text that begins with/or!, or holds a line break or another control character, is refused and nothing is opened (#919). On the fallback path--promptworks exactly as today: tmux types it into each member's window, and a kitty crew still refuses it. Supervisor ruling, 2026-12-02 (relayed by Mars): neither refuse nor silently fall back to tmux; until package 4 and this issue have both landed,--promptstays on today's tmux path, which is another reason this issue lands after package 4.The pin moves.
the_lazymartha_pin.jsongains the version and sha256 of the release above; nothing infetch_the_pinned_lazymarthachanges (it already reads the pin and checks the digest the release build places the editor by).A limit to state, not fix here: the martha the screen is given is
THIS_MARTHA's script, so anupreached through a wrapper that is notnode <script>is outside this hand-over. The screen's own--agentand--terminal-agentdefaults ("martha start …") are what the PATH it is handed resolves; that is why the PATH is set rather than a command spelled out.Fold-ins (Supervisor, 2026-12-02)
bwrap(src/run_an_owner_signed_command/run_in_a_sandbox.ts:1-12); without it the run refuses with "bwrap cannot build a sandbox here (unprivileged user namespaces may be off), so no listed command keeps the shell" (:141-142). The list gains a bubblewrap bullet: what it is for (martha run, the owner-signed commands), and that refusal.src/install_the_recorded_engine/install_the_recorded_engine.ts:21-26still calls martha-engine private. It has been public since 2026-11-24, anddocs/getting-started.md:59already says so ("The engine's source is public, at that address"). The comment is corrected; the code that names the repository as the owner's to give stays, since the variable is still how it is named.upnow opens and keeps the openers' own documentation (martha attach,martha down,Ctrl-b q, the fallback) true.Done when
martha upreplaces itself withlazymartha crew --root <root> --martha <the script that ran up>: a test hands a stand-in lazymartha and asserts its argv (the root, that script), thatexecve's argv[0] is the screen's own path, that nothing tmux or kitty was started, and thatup's exit status is the screen's.findTheLazymartha's order is kept: a release'sbin/lazymarthais preferred over one on PATH, and a test proves both — and the environment handed over has this martha's node and its own directory first on the PATH, so the screen'smartha whereand the members it starts run the martha the owner ran.upruns today's last line (tmux crew; kitty crew) and says why in one line; a test on each flavour proves it.martha up --prompt <text>on the crew-screen path forwards the text tolazymartha crew --prompt <text>: a test hands a stand-in lazymartha and finds the prompt in its argv, and a textuprefuses today (one beginning/or!, or holding a line break) is still refused before anything is opened. On the fallback,--prompttypes into each member's window as today, and a kitty crew still refuses it.init'slookInis (theInitDeclaresAsked.lookIn), and every test builds the PATH it runs with: a box with lazymartha installed, or a checkout that once packed a release (bin/lazymartha), never decides a test's outcome. Both paths have a test. Mutants each turn one red: the fallback dropped; the martha handed to--marthadropped; the prompt dropped from the crew screen's argv; a/-prefixed prompt forwarded; the release-tree binary not preferred.upsections say whatupopens, what closing the screen means (the crew ends; the nextupresumes each member withsession/load), and that tmux/kitty remain forattach/downand as the fallback;--prompt's paragraphs say it reaches the crew screen and the same members as before;docs/the-declaration.md'sterminalrow says what still reads it.upsection shows no output block: the one it had was the tmux opener's, and a crew screen's output is a drawn TUI, not lines to print. What the section says was run for real: this tree'sbin/martha up, with lazymartha built from its main, reached the screen with the right root and martha (it stopped at the screen's own refusal, "the declaration 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 and spending). A drawn screen with members started is the real-crew run the design gates package 6 on.install_the_recorded_engine.tsno longer calls martha-engine private, and says since when it is public.npm testis green before the push, and every mutant above is killed.Files (expected)
src/run_the_martha_command/run_the_martha_command.ts—up's last line, the fallback's one line, the--promptforwardingsrc/run_the_martha_command/the_crew_screen_up_opens.ts— new: what the screen is handed, the fallback, and this process replaced by the screensrc/run_the_martha_command/run_the_martha_command.node-test.ts— both paths, the finder's order, the fallback on each flavour,--prompt, the mutantssrc/run_the_martha_command/the_lazymartha_pin.json— version, sha256src/install_the_recorded_engine/install_the_recorded_engine.ts— the stale "private repository" commentdocs/getting-started.md— "What you need" (bubblewrap), theup/terminal/attach/down/--promptsectionsdocs/the-declaration.md— theterminalrowREADME.md— only if a line there claims whatupopens; today none doesReview by Mercurius. martha CI comes via Terra's land-PR round.