hooks.json never registers PostToolObserver/DriftReminder, but HookSystem.md says they run — LoopDetector has no fire path on fresh installs
The contradiction
LifeOS/install/hooks/hooks.json (the manifest InstallHooks.ts installs from) never registers three hooks that ship in LifeOS/install/hooks/:
PostToolObserver.hook.ts— the consolidated sync catch-all PostToolUse dispatcher (its header: merges the two sync catch-all modules that emit additionalContext)LoopDetector.hook.ts— exact-repeat / oscillation / hammering detection; per its dispatcher's design it is ONLY reachable through PostToolObserverDriftReminder.hook.ts— voice/format drift nudges
But LIFEOS/DOCUMENTATION/Hooks/HookSystem.md describes them as live:
- Its post-consolidation summary lists
LoopDetector → PostToolObserveramong the dispatcher imports and counts PostToolObserver among the consolidation targets. - Its PostToolUse settings listing shows
PostToolObserver.hook.tsregistered (catch-all, timeout 5). - Its DriftReminder section says it is registered on UserPromptSubmit (user settings, async) + PostToolUseFailure (system settings).
Neither name has ever appeared in hooks.json history (git log -S comes back empty for both), and the shipped settings.system.json template carries no hooks block — so a fresh install gets no fire path for LoopDetector or DriftReminder at all. The consolidation's live registrations appear to have never been carried into the public install manifest.
Two smaller HookSystem.md nits in the same area:
- Its "8 files on disk but NOT registered directly" list omits
FormatGate.hook.ts, whichStopGates.hook.tsimports first in its gate chain (FormatGate's header describes it as OutputFormatGate's successor with teeth, 2026-07-11) — so the dispatched-file count is 9, not 8. - The "30 registered / 38 on disk" counts don't reconcile against the public payload (28 distinct files registered by hooks.json; 39 hook files shipped counting
ContextReduction.hook.sh).
Possible resolutions (maintainer's call on intent)
- Registration is intended → add
PostToolObserver(PostToolUse catch-all) andDriftRemindertohooks.jsonso installs match HookSystem.md. - The lean manifest is intended → update HookSystem.md to mark these as shipped-but-optional, and note LoopDetector/DriftReminder are inactive by default.
Happy to PR either direction.
Context
Found while syncing hooks/README.md to registration truth (PR #1595, which documents the manifest as-is and stays neutral on this question).
The three registrations exist in the source settings.json, and the shipped hooks.json is generated from it at emit time, so the next release carries them automatically — hand-editing the manifest would have been the wrong fix, since it isn't hand-maintained. Your doc nits were right, and the census turned out stale in the other direction too: corrected to 37 registered / 48 on disk, with LoopDetector listed as directly registered.