feat: sync AI attribution governance from commit-check v2.11.0#16
Conversation
Sync the new AI attribution governance feature from commit-check v2.11.0: - Bump minimum commit-check dependency to >=2.11.0 - Add 'ai_attribution' to validate_commit_message and validate_commit_context check lists so the rule is actually executed - Update README with AI attribution governance documentation When config [commit] ai_attribution = "forbid" is set, commits containing known AI tool signatures (Claude Code, GitHub Copilot, etc.) will be rejected.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #16 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 209 209
=========================================
Hits 209 209 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR bumps the commit-check dependency to >=2.11.0, adds the ChangesAI Attribution Check Integration
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Tools execution failed with the following error: Failed to run tools: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error) Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Added information about AI attribution governance in v2.11.0+.
Summary
Sync the AI attribution governance feature from commit-check v2.11.0 to the MCP server.
What changed
pyproject.toml: Bumpcommit-checkminimum version from>=2.7.0to>=2.11.0server.py: Added"ai_attribution"to the check list in both_validate_messageand_validate_allfunctions, so the AI attribution rule is actually executed when configuredREADME.md: Added documentation about AI attribution governance supportWhy
commit-check v2.11.0 added AI attribution governance (PR #456) — a new
[commit] ai_attribution = "forbid"config option that rejects commits containing known AI tool signatures (Claude Code, GitHub Copilot, Cursor, etc.).Although the library provides the rule, the MCP server was not executing it because the check name
"ai_attribution"was missing from the explicit check lists in_validate_messageand_validate_all.Testing
ai_attribution = "forbid"→ pass ✅ai_attribution = "forbid"→ fail ✅Other features already synced automatically
The following commit-check features from v2.8.0–v2.10.1 are automatically inherited by the MCP server via
RuleBuilderand require no code changes:ai/,claude/,copilot/, etc.) — v2.9.0Summary by CodeRabbit
New Features
Documentation
Bug Fixes
Chores