Skip to content

fix(bin): disable Claude feedback drafts for fleet launches - #3661

Merged
kunchenguid merged 5 commits into
mainfrom
fm/fm-claude-disable-feedback-drafts-r1
Sep 3, 2026
Merged

kunchenguid merged 5 commits into
mainfrom
fm/fm-claude-disable-feedback-drafts-r1

Conversation

@kunchenguid

Copy link
Copy Markdown
Owner

Intent

Figure out how to disable this "bug report draft" feature from Claude Code whenever we start them from within the fleet (both as second mates and crewmates).

What Changed

  • Disable Claude feedback drafts for crewmates and second mates using both CLAUDE_CODE_SEND_FEEDBACK=0 and per-launch feedbackDrafts settings.
  • Update launch assertions, live test commands, and harness documentation to reflect the new Claude invocation.

Risk Assessment

⚠️ Medium: The canonical Claude worker and secondmate launches disable feedback drafts, but the change adds an unnecessary second configuration mechanism that broadens the launch contract without improving the stated invariant.

Testing

The configured changed-test baseline had passed; focused spawn and secondmate tests also passed, and end-to-end evidence shows both fleet launch paths applying the feedback controls while Claude Code v2.1.259 initializes without a SendFeedback tool. Transient worktree data was removed.

Evidence: Crewmate and secondmate launch payloads plus credentialed Claude runtime evidence

Source: Crewmate and secondmate launch payloads plus credentialed Claude runtime evidence

Fleet Claude feedback-draft end-to-end evidence
================================================

[Crewmate user-facing spawn result]
warning: ~/.no-mistakes/worktrees/016d88035d58/01M1MGK8TP05AJD4P6V51KK5W5/.test-evidence-tmp/home/data/crew-proof/launch-brief.md records no delivery contract line (scaffolded before ship briefs recorded one); launching on the explicit --mode no-mistakes - confirm its definition of done matches
spawned crew-proof harness=claude kind=ship mode=no-mistakes yolo=off window=firstmate:fm-crew-proof worktree=~/.no-mistakes/worktrees/016d88035d58/01M1MGK8TP05AJD4P6V51KK5W5/.test-evidence-tmp/wt
[Crewmate terminal launch payload]
env -u CURSOR_AGENT -u CURSOR_INVOKED_AS CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION=false CLAUDE_CODE_SEND_FEEDBACK=0 claude --dangerously-skip-permissions --settings '{"feedbackDrafts":"off"}' "$('~/.no-mistakes/worktrees/016d88035d58/01M1MGK8TP05AJD4P6V51KK5W5/bin/fm-operational-input.sh' encode launch-brief < '~/.no-mistakes/worktrees/016d88035d58/01M1MGK8TP05AJD4P6V51KK5W5/.test-evidence-tmp/home/data/crew-proof/launch-brief.md')"

[Secondmate user-facing spawn result]
warning: secondmate second-proof sync skipped before launch: primary default-branch commit cannot be resolved
spawned second-proof harness=claude kind=secondmate mode=secondmate yolo=off window=firstmate:fm-second-proof worktree=~/.no-mistakes/worktrees/016d88035d58/01M1MGK8TP05AJD4P6V51KK5W5/.test-evidence-tmp/secondmate
[Secondmate terminal launch payload]
FM_ROOT_OVERRIDE= FM_STATE_OVERRIDE= FM_DATA_OVERRIDE= FM_PROJECTS_OVERRIDE= FM_CONFIG_OVERRIDE= FM_PUBLIC_FOLLOWUP_PRIMARY_HOME='~/.no-mistakes/worktrees/016d88035d58/01M1MGK8TP05AJD4P6V51KK5W5/.test-evidence-tmp/home' FM_HOME='~/.no-mistakes/worktrees/016d88035d58/01M1MGK8TP05AJD4P6V51KK5W5/.test-evidence-tmp/secondmate' FM_TRACE_CONTEXT=off FM_SUPERVISION_MODEL=autoarm env -u CURSOR_AGENT -u CURSOR_INVOKED_AS CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION=false CLAUDE_CODE_SEND_FEEDBACK=0 claude --dangerously-skip-permissions --settings '{"feedbackDrafts":"off"}' "$('~/.no-mistakes/worktrees/016d88035d58/01M1MGK8TP05AJD4P6V51KK5W5/.test-evidence-tmp/fleetroot/bin/fm-operational-input.sh' encode launch-brief < '~/.no-mistakes/worktrees/016d88035d58/01M1MGK8TP05AJD4P6V51KK5W5/.test-evidence-tmp/secondmate/data/charter.md')"

[Credentialed Claude runtime check using the same feedback controls]
claude_version=2.1.259
SendFeedback_tool_present=false
feedback_related_tools=

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

⚠️ **Review** - 1 warning
  • ⚠️ bin/fm-spawn.sh:1269 - The added --settings &#39;{&#34;feedbackDrafts&#34;:&#34;off&#34;}&#39; is a parallel control not required by the intent: the surrounding documentation states that CLAUDE_CODE_SEND_FEEDBACK=0 independently disables drafting and is unaffected by managed-settings precedence. Retain the environment variable as the narrower durable fix and remove the redundant setting plus its related documentation/test expectations.
✅ **Test** - passed

✅ No issues found.

  • bin/fm-test-run.sh --changed --exclude-family real-herdr-gated
  • Baseline: bin/fm-test-run.sh --changed --exclude-family real-herdr-gated
  • tests/fm-spawn-dispatch-profile.test.sh
  • tests/fm-secondmate-harness.test.sh
  • Launched Claude Code v2.1.259 interactively with the fleet feedback controls and exercised /bug.
  • Spawned isolated crewmate and secondmate fixtures through bin/fm-spawn.sh, captured their terminal launch payloads, and ran credentialed Claude with those controls to inspect its initialized tool set.
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

Scope --settings '{"feedbackDrafts":"off"}' to every Firstmate-launched
Claude crewmate and secondmate, so /bug and /feedback never queue or
submit a bug report on the captain's behalf. feedbackDrafts is the
documented settings key (Claude Code changelog 2.1.247); the
per-launch CLI flag never touches the captain's global settings.json.

Claude-Session: https://claude.ai/code/session_01XYAXXzr4oZx9NjZb1veeE3