Repository navigation
Conversation
|
Speaking as Kun's firstmate: thank you @mremond, this one is short and easy to review. I read the diff against main Contract-class: new-default. "By default" changes the environment of every unconfigured Claude launch, as #7041's triage expected. That means a merge-or-leave call for Kun, not an auto-merge. VISION.md, rule by rule: one captain, one interface: aligns (no surprise broken CI: "Behavior portable serial 6" and "Behavior tests (Herdr)" failed while installing tools (actionlint and Herdr), before any test ran. "Behavior portable serial 2" hit the job timeout. I've rerun the failed jobs. Nothing is needed from you. Once it's green, this goes to Kun for his decision. |
Intent
Lance les développements: start #7041 (keep Claude worker auto-updater from replacing the global install) now, within the exact class/default the maintainer accepted in #7041 (comment). Normal delivery path (no-mistakes attestation, fork push, upstream PR); merges are the maintainer's.
Issue substance: on macOS with Claude Code installed as a global npm package, a stock bin/fm-spawn.sh Claude crewmate launch ran Claude Code's auto-updater during its first turn; the global package was replaced but its postinstall did not run, leaving bin/claude.exe as a placeholder so every new
claudeinvocation failed with "claude native binary not installed". #5959 and #6002 guard only the live-harness test gate: fm-spawn.sh embeds DISABLE_AUTOUPDATER into the launch only when the spawning process already has it set, so ordinary worker launches keep Claude Code's default auto-update. Suggested fix: disable the auto-updater for every Firstmate-launched Claude worker, e.g. DISABLE_AUTOUPDATER=1 in the Claude launch prefix next to CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION=false, or make it an opt-out setting.Maintainer acceptance: outcome ready-for-pr. If it ships on by default for every Claude worker it changes the unconfigured launch, so the contract class is new-default, which means a merge-or-leave call by the maintainer when the PR is ready and is not a reason to hold off opening one; an opt-in or opt-out-setting variant would be judged on its own diff. No open PR covers this; #6665 and #6771 set the variable only for their own live tests.
Closes #7041
The contract class is new-default: it is on by default for every Firstmate-launched Claude worker, and an explicit DISABLE_AUTOUPDATER from the spawner still wins.
The secondmate path is proven by the deterministic launch-builder test, not by a live secondmate launch.
What Changed
DISABLE_AUTOUPDATER=1, preserving explicit nonempty spawner values through backend daemons and launch-environment filtering. Other harnesses receive no new default.Risk Assessment
✅ Low: The change adds a narrow Claude launch default at the shared environment boundary, preserves existing explicit overrides, and includes behavioral regression coverage consistent with the accepted intent.
Testing
Focused regressions passed, and isolated real launches confirmed the default, filtering, explicit-value preservation, relaunch, and non-Claude boundary. Setup failures were corrected and labs removed. Global-install corruption and a real secondmate were not reproduced; this environment-only change required no visual screenshot.
Evidence: Claude scout process environment
Source: Claude scout process environment
Evidence: Claude ship with empty environment allowlist
Source: Claude ship with empty environment allowlist
Evidence: Explicit updater value preserved
Source: Explicit updater value preserved
Evidence: Raw Claude launch and relaunch
Source: Raw Claude launch and relaunch
Evidence: Codex receives no updater default
Source: Codex receives no updater default
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
bash tests/fm-live-gate.test.shbash ~/.no-mistakes/evidence/01M4R0VBX5J31ZB93BX9BA81C3/live-launch.sh— isolated real tmux and Claude scoutNAME=ship-filter KIND=ship FILTER=1 bash .../live-launch.shNAME=explicit FILTER=1 EXPLICIT="explicit ' value" LAUNCH_CMD='claude --version; ...' bash .../live-launch.shNAME=raw-relaunch RELAUNCH=1 FILTER=1 LAUNCH_CMD='claude --version; ...' bash .../live-launch.shNAME=codex FILTER=1 LAUNCH_CMD='codex --version; ...' bash .../live-launch.shInspected real Claude process environments and captured terminal output; stopped private tmux servers and removed disposable labs.git status --short— no worktree changes✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.