fix(commit-lint): scope the disallowed-trailer ban to bots/agents only - #520
Merged
Conversation
The policy was never a blanket Co-authored-by ban -- a trailer crediting a real human, including the PR's own author, is allowed. Only a bot/AI-agent/automation identity is disallowed. The CI check added in #517 matched every Co-authored-by trailer, which would have false-positived on legitimate human co-authorship; its default pattern now targets known bot/agent trailer shapes instead. Also corrects an overclaim from #519: squash_merge_commit_message=BLANK reduces but does not eliminate trailer synthesis -- confirmed on #519's own merge commit, which still picked one up (crediting the merger, so harmless under the corrected rule, but proof the setting alone isn't a complete fix). Updates AGENTS.md, runbooks/onboarding.md, runbooks/branch-protection.md, and decisions/0013-repository-settings-baseline.md to match.
This was referenced Aug 16, 2026
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.
Correction
The policy was never a blanket
Co-authored-byban — a trailer crediting a real human, including the PR's own author, is allowed. Only a bot/AI-agent/automation identity is disallowed.#517's CI check matched everyCo-authored-bytrailer regardless of who it credits, which would have false-positived on legitimate human co-authorship. Its default pattern now targets known bot/agent trailer shapes ([bot], common AI-agent noreply domains) instead — extend the list as new agent identities show up.Also corrects an overclaim from #519
squash_merge_commit_message=BLANKreduces but does not eliminate trailer synthesis. Confirmed on #519's own merge commit: setting was alreadyBLANK, the source commit had no trailer, yet the merge commit still picked one up crediting the merger alone. Harmless under the corrected rule (the merger is a real human crediting themselves), but proof the setting alone isn't a complete technical fix —decisions/0013andrunbooks/branch-protection.mdsaid otherwise.Changed
.github/workflows/commit-lint.yml— bot/agent-scoped default pattern, updated comments and error messageAGENTS.md,runbooks/onboarding.md,runbooks/branch-protection.md,decisions/0013-repository-settings-baseline.md— corrected wording to matchVerification
python3 -m unittest scripts.test_validate_agent_policy— 74 passedRefs #464, #518