You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: add guardrails blocking author trailers in commits
Project policy (CLAUDE.md + CONVENTIONS.md) forbids co-author lines in
commit messages. One slipped into f6a621b despite the rule. Two layers added:
- scripts/git-hooks/commit-msg: client-side git hook that rejects any
commit containing a co-author trailer. Activate: `make install-hooks`.
Bypass: --no-verify (agent use only).
- .claude/hooks/no-coauthor.sh: Claude Code PreToolUse hook (exit 2) that
hard-blocks Bash tool calls issuing git commit with the forbidden trailer,
covering AI agent sessions as a second line of defense.
- GNUmakefile: new `install-hooks` target (configures core.hooksPath).
- .claude/settings.json: no-coauthor hook registered alongside serena-first.
0 commit comments