Skip to content

feat(hooks): register 3 advisory hooks and fix stale docs-drift trigger#642

Merged
notque merged 2 commits into
mainfrom
feat/evolve-hook-registrations
May 13, 2026
Merged

feat(hooks): register 3 advisory hooks and fix stale docs-drift trigger#642
notque merged 2 commits into
mainfrom
feat/evolve-hook-registrations

Conversation

@notque
Copy link
Copy Markdown
Owner

@notque notque commented May 13, 2026

Summary

  • Evolution cycle proposal A: Register session-adr-health-check.py in SessionStart — consensus 3.0/3.0 (unanimous STRONG)
  • Evolution cycle proposal B: Fix stale routing-tables.md trigger in posttool-docs-drift-alert.py + register — consensus 3.0/3.0 (unanimous STRONG)
  • Evolution cycle proposal D: Register posttool-rename-sweep.py in PostToolUse:Bash — consensus 2.67/3.0 (STRONG)

Changes

  • .claude/settings.json: register session-adr-health-check.py (SessionStart, timeout=2000, once=true)
  • .claude/settings.json: register posttool-docs-drift-alert.py (PostToolUse:Write|Edit, timeout=3000)
  • .claude/settings.json: register posttool-rename-sweep.py (PostToolUse:Bash, timeout=3000)
  • hooks/posttool-docs-drift-alert.py: remove stale routing-tables.md from _TRIGGER_NAMES (absorbed in PR feat(routing): absorb routing-tables.md into INDEX.json + manifest script #626)

Test Results

Test Result
A: session-adr-health-check registered (timeout=2000, once=true) PASS
B: routing-tables.md removed from _TRIGGER_NAMES PASS
B: posttool-docs-drift-alert registered (PostToolUse:Write|Edit, timeout=3000) PASS
B: hook syntax valid PASS
D: posttool-rename-sweep registered (PostToolUse:Bash, timeout=3000) PASS
D: fast exit for non-git-mv command PASS
JSON validity PASS
Routing drift (116/116) PASS

Evolution 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).

notque added 2 commits May 13, 2026 03:14
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.
@notque notque enabled auto-merge (squash) May 13, 2026 03:17
@notque notque merged commit 5da6be4 into main May 13, 2026
6 checks passed
@notque notque deleted the feat/evolve-hook-registrations branch May 13, 2026 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant