Repository navigation
feat(provenance): label fleet PRs and drop Claude's co-author trailer - #45
Merged
Merged
Conversation
The captain's commits now carry a single identity everywhere, so fleet
work needs metadata-based provenance instead: an "fm" PR label (name
configurable via config/pr-label) applied once fm-pr-check.sh records
pr=, covering every delivery mode that opens a PR (no-mistakes,
direct-PR, fork-only) from one call site, degrading to a stderr
warning rather than ever losing a PR.
Claude Code injects its own Co-Authored-By trailer regardless of
AGENTS.md's no-agent-co-author rule; fm-spawn.sh now scopes
--settings '{"attribution":{"commit":""}}' to every claude
crewmate/secondmate launch, verified empirically against a real
self-drafted commit. Codex and opencode were checked and do not
inject an equivalent trailer in firstmate's actual launch shape; pi,
grok, and kimi were unavailable to check and are left unverified
rather than guessed at.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
AGENTS.mdsection 1) on every repo, no separate machine account - so fleet-opened work needs metadata-based provenance instead of identity-based provenance.bin/fm-pr-check.shnow applies a configurable label (config/pr-label, defaultfm) to a GitHub PR right after it recordspr=and arms the merge poll - the one point every delivery mode that opens a PR (no-mistakes,direct-PR,fork-only) already converges on, so one call site covers all three instead of three separate integrations.gh, a repo that refuses label creation, or a failed apply all degrade to a stderr warning rather than aborting - losing a PR to a labelling hiccup would be worse than an unlabelled one.glablabel syntax to fall back to.AGENTS.mdalready said "never add an agent name as a commit co-author," but Claude Code injects its ownCo-Authored-By: Claude ... <[email protected]>trailer regardless (measured: 37 occurrences in the api repo in three days) - a real risk, since a co-author with an unsigned email is exactly what a CLA bot rejects on an upstream project.bin/fm-spawn.shnow scopes--settings '{"attribution":{"commit":""}}'to every claude crewmate/secondmate launch, the same per-launch pattern already used for the prompt-suggestion suppression - never touches the captain's global~/.claude/settings.json.claude --dangerously-skip-permissions "<prompt>", no dictated commit message) carried the trailer without the flag and dropped it with the flag.Co-authored-by: Codexstring tied to aremoved/falsefeature flag (confirmed inert even forced on) and opencode's only such logic lives in its separategithub-bot subcommand, never the plain interactive launch firstmate uses - no config added for either. pi, grok, and kimi weren't installed in this environment to check, so nothing is claimed about them either way.Testing
bin/fm-lint.sh(clean, pinned ShellCheck) andbin/fm-doc-audience-check.sh(clean).tests/fm-pr-check.test.sh: 5 new cases for the label feature (default name,config/pr-labeloverride, a failed create still applying the label, a total labelling failure warning but never failing the task, and a no-op on a GitLab merge request).tests/fm-pr-check-security.test.sh: 1 new unit case forfm_pr_label_name's default/trim/comment-skip behavior; full suite (40 cases) still green.tests/fm-crew-memory-cap.test.sh,tests/fm-spawn-dispatch-profile.test.sh,tests/fm-secondmate-harness.test.sh,tests/fm-kimi-harness.test.sh: updated exact-launch-string assertions for the new--settingsflag; all green.tests/fm-backend-orca.test.sh,tests/fm-grok-harness.test.sh: spot-checked for collateral impact on the sharedfm-spawn.shlaunch path; green.