Repository navigation
ci: fail a pull request whose commit messages carry AI attribution trailers - #274
Merged
Merged
Conversation
AI use is disclosed in the pull request body only. A new job checks every commit in a pull request for an attribution trailer naming an AI tool: a co-author line, a generated-with line or a robot-emoji line. CI result, the check main requires, now needs the job. Contributing and agent notes say the same.
kinqsradio
force-pushed
the
ci/no-ai-trailers
branch
from
November 7, 2026 20:06
1a3c798 to
8b90631
Compare
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.
Change
AI attribution trailers reached engine main through squash bodies, so orbyn.dev gets a guard. AI use is disclosed in the pull request body only.
scripts/check-commit-messages.mjs <base> <head>fails when a commit in the range has:Co-Authored-By:line naming an AI tool (Claude, Anthropic, OpenAI, Codex, Copilot, Cursor, Codebuff and others) or one of their addresses;A co-author who is a person passes, and so does prose that only mentions a tool.
Audit of what is already here
mainfrom feat: orbyn.dev as the Orbyn product line home #264 on (every commit merged since the old app was removed): no trailers.Checks
node --test scripts/check-commit-messages.test.mjs: 4 tests, including one against a real temporary repository. It is also the first step of the new job.node scripts/check-commit-messages.mjsover86a59f7a..origin/mainpasses.Risk and undo
AI usage
Claude Code with Claude Sonnet 5.5 (
claude-sonnet-5-5) wrote the script, tests and workflow change at Products Research's request. No external sources.