Repository navigation
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The check misses contributor commits and other AI identities, and inspection failures incorrectly report success.
3 open issues
What changed in this PR
Adds an automated authorship check to support the human-only attribution policy introduced in #278.
Changes:
- Adds a pull-request workflow for checking authorship metadata.
- Adds a script that scans author, committer, and co-author fields for a Claude/Anthropic signature.
| File | Description |
|---|---|
| contrib/ai-policy.sh | Scans commit metadata and reports prohibited attribution. |
| .github/workflows/ai-policy.yml | Runs the authorship check on pull requests. |
Review effort: Balanced
There was a problem hiding this comment.
🟡 Changes recommended
The check can reject compliant contributions because it scans accepted history and treats quoted examples as attribution.
5 open issues
Reject all configured AI co-author identities and emails Pipeline ignores inspection failures and reports success Restrict attribution checks to commits introduced by the PR · New Parse co-author trailers instead of scanning full commit messages · New Attribution matcher accepts unsupported AI identities
Review effort: Balanced
There was a problem hiding this comment.
🟡 Changes recommended
The identity matcher allows Copilot co-authorship while reporting a successful human-only attribution check.
6 open issues
Reject all configured AI co-author identities and emails Pipeline ignores inspection failures and reports success Copilot co-author attribution bypasses human-only check · New Parse co-author trailers instead of scanning full commit messages Restrict attribution checks to commits introduced by the PR Attribution matcher accepts unsupported AI identities
Review effort: Balanced
| git log --format='Commit: %h%nAuthor: %an <%ae>%nCommitter: %cn <%ce>%n%B' \ | ||
| | grep -Ei '^(Author:|Committer:|Co-authored-by:)' | ||
|
|
||
| } | if grep -Ei 'Claude.*(anthropic.com|claude.ai)|Codex.*openai.com|Copilot.*github.com'; then |
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.


Related to #278