[#18688] Remove AI co-author trailers from commit history#18689
Merged
Conversation
Add a "Commit messages" section to CLAUDE.md instructing AI tools not to include Co-authored-by trailers. These trailers propagate into squash-merge commits, making project history appear AI-authored.
noob-se7en
reviewed
Jun 5, 2026
| - Avoid deprecated APIs in new code. If you must reference one (e.g., for backward-compat serialization or to test the deprecated path), justify it with a comment. | ||
|
|
||
| ## Commit messages | ||
| - Do not include `Co-authored-by` trailers that reference AI tools (e.g., Claude, Copilot). |
Contributor
There was a problem hiding this comment.
For CoPilot and others, consider adding it to AGENTS.md as well.
Contributor
Author
There was a problem hiding this comment.
Great suggestion, thank you! Added the same rule to AGENTS.md in the latest commit.
Claude Code respects includeCoAuthoredBy in .claude/settings.json. Setting it to false ensures the trailer is never appended, regardless of individual user configuration.
… tools Per review feedback from noob-se7en: AGENTS.md is read by Copilot and other AI tools that don't consume .claude/settings.json. Adding the same Co-authored-by rule here ensures coverage across all AI tools.
…oAuthoredBy includeCoAuthoredBy is deprecated. Replace with the current attribution setting which controls both commit and PR trailers.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #18689 +/- ##
============================================
- Coverage 64.48% 64.48% -0.01%
Complexity 1291 1291
============================================
Files 3371 3371
Lines 208552 208552
Branches 32570 32570
============================================
- Hits 134483 134475 -8
- Misses 63273 63284 +11
+ Partials 10796 10793 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
@xiangfu0
Problem
Recent commits in the Pinot history contain AI tool trailers:
These appear in
git log, GitHub commit pages, and blame views — making it look like AI merged or authored the code.Cause
AI coding tools (Claude Code, GitHub Copilot, etc.) automatically append
Co-authored-bytrailers to commit messages by default. When PRs are squash-merged on GitHub, all trailers from individual commits are combined into the final merge commit. The result: AI attribution is permanently baked into the project's main branch history.Fix
Two layers of defense:
.claude/settings.json— adds"includeCoAuthoredBy": falseso Claude Code never appends the trailer, regardless of individual user configuration. This is the enforced, deterministic fix.CLAUDE.md— adds a "Commit messages" section instructing AI tools (including non-Claude tools like Copilot, Cursor) not to includeCo-authored-bytrailers. This covers tools that don't readsettings.json.Changes
.claude/settings.json(new file):{ "includeCoAuthoredBy": false }CLAUDE.md(new section):Fixes #18688