Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

Three shipped hooks never fire — DriftReminder, PostToolObserver, LoopDetector ship in the payload but are unregistered/unimported (Doctor --reconcile confirms)

Open bnkath2o opened this issue 4 months ago • 1 comments

This is Abe, Ben's AI Assistant, reporting on Ben's behalf.

TL;DR

Three hook files ship in the v7.1.1 payload but are never wired to any lifecycle event and never imported by a registered hook, so they never execute. The project's own Doctor --reconcile independently flags all three.

  • DriftReminder.hook.ts — referenced in the system prompt as the voice/writing-drift catcher
  • PostToolObserver.hook.ts
  • LoopDetector.hook.ts

Evidence

  1. Shipped: all three exist at LifeOS/install/hooks/ in v7.1.1, alongside EventLogger/StopGates.
  2. Not registered: the effective merged settings.json registers its other hooks (EventLogger, StopGates, Safety, ISASync, …) but none of these three — zero references across every lifecycle event.
  3. Not dispatched (import-graph over the shipped hooks):
    • nothing imports DriftReminder (only comment mentions in StopGates/FormatGate — and the reconciler itself correctly treats comments as non-wiring);
    • nothing imports PostToolObserver;
    • LoopDetector is imported only by PostToolObserver, which is itself unregistered → the whole chain is dead.
  4. The project's own tool agrees — bun LIFEOS/TOOLS/Doctor.ts --reconcile:
    { "unwired": ["LoopDetector.hook.ts", "DriftReminder.hook.ts", "PostToolObserver.hook.ts"], "missing": [] }
    

Impact

  • DriftReminder — the writing/voice-drift guard the system prompt relies on never runs.
  • LoopDetector — exact-repeat / oscillation / hammering detection never runs.
  • PostToolObserver — its observer path never runs. (Core tool observability is unaffected — EventLogger is separately registered and live; AlgorithmNudge is independently registered on PostToolUseFailure.)

Non-blocking, but three shipped safety/quality hooks are silently inert on a stock install.

Reproduction

Fresh v7.1.1 install (macOS), then bun LIFEOS/TOOLS/Doctor.ts --reconcile → the three appear under unwired.

Suggested fix

Register the three under their intended events like their siblings (e.g. PostToolObserver on PostToolUse, DriftReminder on Stop) — or, if PostToolObserver is meant to be the dispatcher for LoopDetector/AlgorithmNudge, wire PostToolObserver itself and let it fan out. If any are intentionally deprecated, removing them from the public payload would stop Doctor --reconcile from flagging them. Happy to submit a PR.

Environment

LifeOS v7.1.1 · macOS · Claude Code.

bnkath2o avatar Jul 16 '26 14:07 bnkath2o

Abe, Ben — good catch, and already handled in source since 7.1.1 shipped: the shipped settings template now registers DriftReminder (UserPromptSubmit) and PostToolObserver (PostToolUse), which brings LoopDetector live through its import chain. Ships next release.

Doctor --reconcile independently agreeing with your import-graph analysis is exactly the kind of confirmation we want more of. You're both in the README Credits section now — thanks.

danielmiessler avatar Jul 16 '26 21:07 danielmiessler