A user must install one exact Claude Code version to run Martha: Martha should install the recorded version itself #305
Closed
opened 2026-11-27 10:34:34 +00:00 by supervisor
·
3 comments
No Branch/Tag specified
main
vesta/372-lan-members
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
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#305
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 (product): a person installs Martha with one line and runs Claude Code members without installing, pinning or downgrading Claude Code themselves; their own
claudestays whatever version they use.Raf, 2026-11-27: "that's not very user-friendly, isn't it?" (on the getting-started step "install Claude Code at the recorded version"), and on placement: "after the cooldown".
Today: the Claude Code adapter derives from facts read out of one binary (src/claude_code_host/recorded_claude_code_host.json, host_version 2.1.332). docs/getting-started.md asks the user to
npm install -g @anthropic-ai/claude-code@<the recorded version>, which overwrites the version they use for their own work.Proposed (as Martha already does for the mesh server and martha-engine): the installer or
martha installputs the recorded Claude Code version into Martha's own release folder, from a pinned lock and integrity, and every Claude Code member launches that binary by path. The user signs in once with their ownclaude; the design step checks how the private copy finds that sign-in (sign_in_store_variable in the recording).Done-when: a fresh Linux box with any (or no) global Claude Code runs
martha init,martha approve,martha upwith a Claude Code member, which runs the recorded version; the globalclaude --versionis unchanged; getting-started no longer has the install step.Placement: after the Claude cooldown (Raf). Design first.
Refs docs/getting-started.md, #303
Design r1: Martha carries its own Claude Code (no code yet)
Based on forge main
ee374a16(includes #303). Raf's ruling for this package: DECIDED 2026-11-27 "after the cooldown". Everything else below is IDEA until Raf rules on it.Raf's two questions, answered plainly
"why does martha need such a specific claude version?"
Martha's safety gate for a Claude Code member is built from facts read out of one Claude Code build, the recording (
src/claude_code_host/recorded_claude_code_host.json, 2.1.332). The facts include:Claude Code ships new releases almost daily, and they do change these facts: in #811, one release (2.1.327 → 2.1.328) changed 5 of the 26 recorded facts.
On a version Martha has never read, two things can go wrong without anyone noticing:
~/.claude.Today Martha only prints a notice (
hostVersionLine,what_the_host_loads.ts:100) and starts the member anyway. Within days of a release, nearly every user runs a newerclaudethan the recording, so most users' members run on a gate nobody has checked against their version."that's not very user-friendly, isn't it?"
No, it isn't. But the unfriendly part is asking people to pin their own
claude, not the pin. A notice alone stays friendly but leaves the gate unproved, so it doesn't do the job. The fix is the one Raf ruled: Martha keeps its own copy of the recorded version, and the user'sclaudestays whatever they run. The user never sees a version number.Design (simplest thing that works)
~/.local/share/martha/<version>/claude-code/. This follows the pattern Martha already uses to install the recorded mesh server and engine. Each release carries the Claude Code version its recording is of, so the two can never drift apart.claude_code_lock/package.json+package-lock.json, naming@anthropic-ai/claude-code@<host_version>and its linux-x64 package with npm's sha512 integrity.host_version.npm ci --prefix <release>/claude-code. npm refuses any byte that doesn't match the integrity.claude --versionprintshost_version, the same check asthe_recorded_host_installed.sh.martha uprefuses a missing or wrong copy by name and names the one line that installs it, like the engine does (martha engine install).PATH. The version notice goes away because a mismatch can no longer happen.DISABLE_AUTOUPDATER=1is already in the row'senv_last(#460), so the copy never updates itself or the user's global install.theMembersConfigEnvironment,give_a_member_its_own_config.ts:118). Only the binary changes. With no globalclaudeat all, the user runs a newmartha sign-in, which starts Martha's copy interactively once to fill that default store. The proof must show that a sign-in written by a newer globalclaudeis read by the older copy (open risk R2).claudeprints a DUMMY version, so they cover install, refusal of a wrong integrity, refusal of a wrong version, and the launch by path. The one real fetch runs in the existing clean-install container proof, which already installs Claude Code today.getting-started.mdloses the "install Claude Code at the recorded version" step and its asdf caveat. It gains one line: sign in once withclaude, ormartha sign-inwithout one.Needs Raf's ruling before code
claude, the copy needs a store of its own, and the user signs in once more throughmartha sign-in. The proof settles this. No code goes in for it unless the proof fails.Done-when (from the issue, unchanged)
A fresh Linux box with any Claude Code installed globally, or none, runs
martha init,martha approveandmartha upwith a Claude Code member. That member runs the recorded version, the globalclaude --versionis unchanged, and getting-started no longer has the install step.Design r1, appended note: R1 ruled
DECIDED 2026-11-30 "Anthropic's npm (Recommended)": Martha's Claude Code copy is fetched from Anthropic's npm registry (registry.npmjs.org), pinned by sha512 in the committed lock. There is no forge mirror. Point 2 of the design stands as written. The one real fetch happens when a user installs and in the clean-install container proof, never in a test.
Still open: R2 (whether a newer
claude's sign-in is read by the older copy), settled by the proof.Landed on main at
dc79b38bec(batch #327; branch tip34cdcf04is an ancestor, checked withgit merge-base --is-ancestor). Done-when against that tip:martha upwith a Claude Code member runs the recorded version:upinstalls the recorded Claude Code into~/.local/share/martha/claude-code/(npm ci on the committed lock from registry.npmjs.org, sha512 per tarball, scripts off), refuses a binary that reports another version, and launches members by that path, neverclaudefrom PATH. Tests:bring_up_the_declared_crew.node-test.ts"martha#305: up installs Martha's own Claude Code once…" and "…installs nothing for a crew whose Claude Code members are all parked…";install_the_recorded_claude_code.node-test.ts(7 tests, including the version refusal and the lock check).claude --versionis unchanged: the install writes only into Martha's own folder; nothing runsnpm install -g. Test: "a host without it is told the one command that installs it, and that its own claude stays".martha sign-infor a box without its ownclaude.Review: Jupiter PASS at r=2. CI r=2 runs 6029–6034 green; batch round 6035–6041 green.
Follow-up: two
martha upruns installing at the same moment race (filed separately).