Summary
The hooks/README.md documents two hooks that don't have corresponding script files on disk. These may be missing from the v3.0 installer.
Missing Scripts
| Hook |
Event |
Matcher |
Listed in README |
Exists on disk |
CriteriaTracker.hook.ts |
PostToolUse |
all tools |
Yes (line ~154) |
No |
SessionReactivator.hook.ts |
UserPromptSubmit |
— |
Yes (line ~139) |
No |
README Description
From hooks/README.md:
- CriteriaTracker.hook.ts — "Real-time phase tracking + ISC criteria tracking" (PostToolUse, non-blocking, depends on
lib/algorithm-state.ts)
- SessionReactivator.hook.ts — "Reactivate algorithm state on new prompt" (UserPromptSubmit, non-blocking, depends on
lib/algorithm-state.ts)
Impact
- These hooks are not in
settings.json (so no runtime errors), but the README presents them as part of the v3.0 hook architecture
- Both depend on
lib/algorithm-state.ts — this file may also need to be checked/created
- The
settings.json config shipped with v3.0 also had 5 other stale v2 hook references (FormatEnforcer, ExplicitRatingCapture, ImplicitSentimentCapture, DailyReminder, AgentOutputCapture) that don't exist on disk — these may also be installer oversights
Expected Behavior
Either:
- The installer should create these hook scripts, OR
- The README should be updated to remove references to hooks that aren't implemented yet
Environment
- PAI v3.0
- Claude Code with hooks system
- macOS (Darwin 25.2.0)
Summary
The
hooks/README.mddocuments two hooks that don't have corresponding script files on disk. These may be missing from the v3.0 installer.Missing Scripts
CriteriaTracker.hook.tsSessionReactivator.hook.tsREADME Description
From
hooks/README.md:lib/algorithm-state.ts)lib/algorithm-state.ts)Impact
settings.json(so no runtime errors), but the README presents them as part of the v3.0 hook architecturelib/algorithm-state.ts— this file may also need to be checked/createdsettings.jsonconfig shipped with v3.0 also had 5 other stale v2 hook references (FormatEnforcer,ExplicitRatingCapture,ImplicitSentimentCapture,DailyReminder,AgentOutputCapture) that don't exist on disk — these may also be installer oversightsExpected Behavior
Either:
Environment