aboutsummaryrefslogtreecommitdiff
path: root/docs/architecture
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-19 17:14:54 -0500
committerCraig Jennings <c@cjennings.net>2026-04-19 17:14:54 -0500
commit208a079f4230edd520f5aa92288ae48247340910 (patch)
tree236db8e21cd7369c7d0b741c673524464ba9af36 /docs/architecture
parent4957c60c9ee985628ad59344e593d20a18ca8fdb (diff)
downloadrulesets-208a079f4230edd520f5aa92288ae48247340910.tar.gz
rulesets-208a079f4230edd520f5aa92288ae48247340910.zip
feat(hooks): shared _common.py helpers + systemMessage AI-attribution warning
Consolidates stdin-parse and response-emit across the two confirm hooks into `hooks/_common.py` (stdlib-only, sibling symlinked alongside the hooks it serves). Net ~28 lines less duplication. Adds a `systemMessage` banner alongside the confirmation modal when the commit message or PR title/body contains AI-attribution patterns: - Co-Authored-By: Claude|Anthropic|GPT|AI trailers - 🤖 robot emoji - "Generated with Claude Code" / similar footers - "Created with …" / "Assisted by …" variants Scanning targets structural leak patterns only — bare mentions of "Claude" or "Anthropic" in diff context don't fire, so discussing the tools themselves in a commit message doesn't false-positive. Clean-room synthesis from GowayLee/cchooks (MIT) — specifically, the systemMessage-alongside-reason pattern and event-aware stdin helpers.
Diffstat (limited to 'docs/architecture')
0 files changed, 0 insertions, 0 deletions