Skip to content

Add Github action to lint authorship metadata - #279

Open
kpcyrd wants to merge 1 commit into
mainfrom
ai-policy
Open

kpcyrd wants to merge 1 commit into
mainfrom
ai-policy

Conversation

@kpcyrd

@kpcyrd kpcyrd commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Related to #278

Copilot AI balanced review requested due to automatic review settings October 18, 2026 11:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread .github/workflows/ai-policy.yml
Comment thread contrib/ai-policy.sh Outdated
Comment thread contrib/ai-policy.sh Outdated
Copilot AI balanced review requested due to automatic review settings October 18, 2026 11:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The attribution filter accepts explicit AI co-author credits that the check is intended to reject.

3 open issues
1 resolved since last review

Review effort: Balanced

Comment thread contrib/ai-policy.sh Outdated
Copilot AI balanced review requested due to automatic review settings October 18, 2026 11:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The check can reject compliant contributions because it scans accepted history and treats quoted examples as attribution.

5 open issues

Review effort: Balanced

Comment thread contrib/ai-policy.sh Outdated
Comment thread contrib/ai-policy.sh Outdated
Copilot AI balanced review requested due to automatic review settings October 18, 2026 11:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread contrib/ai-policy.sh Outdated
Copilot AI balanced review requested due to automatic review settings October 18, 2026 12:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot AI balanced review requested due to automatic review settings October 18, 2026 12:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unescaped domain patterns can reject legitimate human attribution and need literal-dot escaping.

1 open issue
1 resolved since last review

Review effort: Balanced

Comment thread contrib/ai-policy.sh
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants