Skip to content

Missing hook scripts referenced in v3.0 hooks README #691

@michaelaye

Description

@michaelaye

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:

  1. The installer should create these hook scripts, OR
  2. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions