diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-21 09:26:18 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-21 09:26:18 -0500 |
| commit | 36af850dcb4a2edcf9b219c8d00c9e9ba5a06287 (patch) | |
| tree | 103caa36f463fff9f6fd0026a64fced0015a795b /languages/elisp/claude/hooks/validate-el.sh | |
| parent | c90683ed477c891e54034de595c97f149c420c17 (diff) | |
| download | rulesets-36af850dcb4a2edcf9b219c8d00c9e9ba5a06287.tar.gz rulesets-36af850dcb4a2edcf9b219c8d00c9e9ba5a06287.zip | |
The hook used to emit a confirmation modal on every git commit. That
produced too many benign interruptions — the modal fired even on clean,
well-formed, attribution-free commits. Now it only emits a modal when
one of these safety checks fires:
- AI-attribution patterns in the commit message (Co-Authored-By: Claude,
robot emoji, Generated-with-AI footers, etc.) — the primary leak
- Message not parseable from command line (editor would open, which
silently blocks Claude)
- No files staged (the commit would fail anyway)
- Git author unusable (user.name / user.email not configured)
Clean commits pass through silent. The AI-attribution scan is unchanged;
the always-on review is gone.
README updated to describe the new behavior.
Diffstat (limited to 'languages/elisp/claude/hooks/validate-el.sh')
0 files changed, 0 insertions, 0 deletions
