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
@@ -33,8 +33,8 @@ contributor docs are held by review until an offline link check exists. Terms su
|
||||
History is not rewritten.
|
||||
*Reason:* a co-author trailer makes the tool an author, and a session link is private and points
|
||||
outside this repository.
|
||||
*Held by:* review until the commit-msg hook that refuses these trailers lands (issue #272); then
|
||||
control.
|
||||
*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.
|
||||
|
||||
## What agents may do
|
||||
|
||||
|
||||
Reference in new issue
Block a user