Skip to content

fix(commit-lint): scope the disallowed-trailer ban to bots/agents only - #520

Merged
ss-o merged 1 commit into
mainfrom
feature-518
Aug 16, 2026
Merged

fix(commit-lint): scope the disallowed-trailer ban to bots/agents only#520
ss-o merged 1 commit into
mainfrom
feature-518

Conversation

@ss-o

@ss-o ss-o commented Aug 16, 2026

Copy link
Copy Markdown
Member

Correction

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. #517's CI check matched every Co-authored-by trailer 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=BLANK reduces but does not eliminate trailer synthesis. Confirmed on #519's own merge commit: setting was already BLANK, 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/0013 and runbooks/branch-protection.md said otherwise.

Changed

  • .github/workflows/commit-lint.yml — bot/agent-scoped default pattern, updated comments and error message
  • AGENTS.md, runbooks/onboarding.md, runbooks/branch-protection.md, decisions/0013-repository-settings-baseline.md — corrected wording to match

Verification

  • python3 -m unittest scripts.test_validate_agent_policy — 74 passed
  • YAML parses; prettier-clean

Refs #464, #518

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.
@ss-o
ss-o requested a review from a team as a code owner August 16, 2026 20:13
@ss-o ss-o added type:maintenance Non-feature maintenance, cleanup, or org work. area:ci Continuous integration or GitHub Actions work. labels Aug 16, 2026
@ss-o
ss-o merged commit e9cad16 into main Aug 16, 2026
7 checks passed
@ss-o
ss-o deleted the feature-518 branch August 19, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci Continuous integration or GitHub Actions work. type:maintenance Non-feature maintenance, cleanup, or org work.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant