Martha carries its own Claude Code (#305) #322

Manually merged
terra merged 0 commits from venus/305-own-claude-code into main 2026-12-01 02:11:34 +00:00
Member

Refs #305

Purpose (feature): Martha installs the recorded Claude Code version (2.1.332, from registry.npmjs.org pinned by sha512 per DECIDED 2026-11-30 "Anthropic's npm (Recommended)") into its own folder and starts Claude Code members with it; the user's own claude is untouched.

  • new slice src/install_the_recorded_claude_code/ (martha claude-code install, martha sign-in)
  • up installs the copy itself when a Claude Code member starts and it is missing
  • a member start never takes claude from the PATH
  • design: see the r1 comments on #305
Refs #305 Purpose (feature): Martha installs the recorded Claude Code version (2.1.332, from registry.npmjs.org pinned by sha512 per DECIDED 2026-11-30 "Anthropic's npm (Recommended)") into its own folder and starts Claude Code members with it; the user's own claude is untouched. - new slice src/install_the_recorded_claude_code/ (`martha claude-code install`, `martha sign-in`) - `up` installs the copy itself when a Claude Code member starts and it is missing - a member start never takes claude from the PATH - design: see the r1 comments on #305
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
Collaborator

CI coordinator: round r=1: dispatched ci.yml on 917ee85300, run 6019 (base 2f59758b26).

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

CI coordinator: round r=1: dispatched suite.yml on 917ee85300, run 6020 (base 2f59758b26).

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

CI coordinator: round r=1: dispatched heavy.yml on 917ee85300, run 6021 (base 2f59758b26).

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

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

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

CI coordinator: round r=1: dispatched standalone.yml on 917ee85300, run 6023 (base 2f59758b26).

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

CI coordinator: round r=1: dispatched advisories.yml on 917ee85300, run 6024 (base 2f59758b26).

CI coordinator: round r=1: dispatched advisories.yml on 917ee853002ca9dfe06cef29d33c768c002e6015, run 6024 (base 2f59758b26a5c2eddb3e5aa2cdece8bce0c595ad).
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
Collaborator

CI coordinator: round r=2: dispatched ci.yml on 34cdcf044e, run 6029 (base 2f59758b26).

CI coordinator: round r=2: dispatched ci.yml on 34cdcf044e39c83ed6c9730f7fa72634e5f4020e, run 6029 (base 2f59758b26a5c2eddb3e5aa2cdece8bce0c595ad).
Collaborator

CI coordinator: round r=2: dispatched suite.yml on 34cdcf044e, run 6030 (base 2f59758b26).

CI coordinator: round r=2: dispatched suite.yml on 34cdcf044e39c83ed6c9730f7fa72634e5f4020e, run 6030 (base 2f59758b26a5c2eddb3e5aa2cdece8bce0c595ad).
Collaborator

CI coordinator: round r=2: dispatched heavy.yml on 34cdcf044e, run 6031 (base 2f59758b26).

CI coordinator: round r=2: dispatched heavy.yml on 34cdcf044e39c83ed6c9730f7fa72634e5f4020e, run 6031 (base 2f59758b26a5c2eddb3e5aa2cdece8bce0c595ad).
Collaborator

CI coordinator: round r=2: dispatched c4-model.yml on 34cdcf044e, run 6032 (base 2f59758b26).

CI coordinator: round r=2: dispatched c4-model.yml on 34cdcf044e39c83ed6c9730f7fa72634e5f4020e, run 6032 (base 2f59758b26a5c2eddb3e5aa2cdece8bce0c595ad).
Collaborator

CI coordinator: round r=2: dispatched standalone.yml on 34cdcf044e, run 6033 (base 2f59758b26).

CI coordinator: round r=2: dispatched standalone.yml on 34cdcf044e39c83ed6c9730f7fa72634e5f4020e, run 6033 (base 2f59758b26a5c2eddb3e5aa2cdece8bce0c595ad).
Collaborator

CI coordinator: round r=2: dispatched advisories.yml on 34cdcf044e, run 6034 (base 2f59758b26).

CI coordinator: round r=2: dispatched advisories.yml on 34cdcf044e39c83ed6c9730f7fa72634e5f4020e, run 6034 (base 2f59758b26a5c2eddb3e5aa2cdece8bce0c595ad).
terra manually merged commit dc79b38bec into main 2026-12-01 02:11:34 +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!322
No description provided.