ci(pre-commit): refuse a plugins/ directory and agent co-author trailers
Two local hooks hold rules that review held until now: - refuse-plugins (language: fail, ^plugins/): the Collection holds roles only; a plugin needs an ADR first, whose pull request removes the hook. It runs before ansible-lint so that hook's fail_fast cannot hide it. - refuse-agent-trailers (pygrep, commit-msg stage): refuses Claude-Session: and Co-Authored-By: lines naming a known agent identity. A human co-author passes, including one whose first name is Claude. The hook name carries the rule, since pygrep prints no other message. AGENTS.md and ai-assistance.md name the hook as a partial control of the trailer rule; other AI trailers stay held by review. Closes #272 Assisted-by: Claude Code
This commit is contained in:
1 parent
e951008182
commit
aba119ddd2
3 files changed
+25
-4
No files matched your search
@@ -46,8 +46,8 @@ held: by a control (a named hook or check), by review, or aspirational (checked
|
||||
`Co-Authored-By:` for an agent, a session link or any other AI trailer**
|
||||
([ai-assistance.md](docs/contributing/ai-assistance.md)).
|
||||
*Reason:* AI assistance is disclosed (principle 7), and an agent is not an author (principle 1).
|
||||
*Held by:* review; the exclusion becomes a control when the commit-msg hook that refuses these
|
||||
trailers lands (#272).
|
||||
*Held by:* control in part: the `refuse-agent-trailers` commit-msg hook refuses `Claude-Session:`
|
||||
and a `Co-Authored-By:` naming a known agent; review for the rest and for `Assisted-by:`.
|
||||
- **On conflict with a shared rule delivered by apm, this repository's `AGENTS.md` wins.**
|
||||
*Reason:* this repository's rules are reviewed here, for this repository.
|
||||
*Held by:* aspirational.
|
||||
|
||||
Reference in new issue
Block a user