feat(hooks): register 3 advisory hooks and fix stale docs-drift trigger#642
Merged
Conversation
Phase 4 of nightly evolution cycle (2026-05-13). All three proposals rated STRONG (3.0, 3.0, 2.67) by Pragmatist/Purist/User Advocate personas. Changes: - SessionStart: register session-adr-health-check.py (timeout=2000, once) Silent when no .adr-session.json; warns on orphaned sessions; surfaces active session domain at startup. Resolves 4 consecutive cycle flags on the sprite-pipeline-overhaul stale session. - PostToolUse:Write|Edit: register posttool-docs-drift-alert.py (timeout=3000) Fix: remove stale "routing-tables.md" from _TRIGGER_NAMES (absorbed in PR #626). Remaining triggers: INDEX.json, agents/*.md — both active file paths. - PostToolUse:Bash: register posttool-rename-sweep.py (timeout=3000) After git mv, scans for stale references to old filename stem. ADR-129. Fast exit (<50ms) for non-git-mv commands — zero cost in common case.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
session-adr-health-check.pyin SessionStart — consensus 3.0/3.0 (unanimous STRONG)routing-tables.mdtrigger inposttool-docs-drift-alert.py+ register — consensus 3.0/3.0 (unanimous STRONG)posttool-rename-sweep.pyin PostToolUse:Bash — consensus 2.67/3.0 (STRONG)Changes
.claude/settings.json: registersession-adr-health-check.py(SessionStart, timeout=2000, once=true).claude/settings.json: registerposttool-docs-drift-alert.py(PostToolUse:Write|Edit, timeout=3000).claude/settings.json: registerposttool-rename-sweep.py(PostToolUse:Bash, timeout=3000)hooks/posttool-docs-drift-alert.py: remove stalerouting-tables.mdfrom_TRIGGER_NAMES(absorbed in PR feat(routing): absorb routing-tables.md into INDEX.json + manifest script #626)Test Results
_TRIGGER_NAMESEvolution Cycle
Generated and validated by the 2026-05-13 nightly toolkit-evolution cycle.
Proposals rated STRONG by Pragmatist/Purist/User Advocate personas.
All 3 proposals WIN (100% test pass rate, zero regressions).