6.0.0: settings.system.json contract mismatch — payload ships it without hooks, MemoryHealthCheck requires hooks registered in it (fresh installs report CRITICAL)
Components: install/settings.system.json, Setup workflow step 4, LIFEOS/TOOLS/MemoryHealthCheck.ts / MemoryHealthGate.hook.ts, LifeOS 6.0.0.
What happens: three parts of 6.0.0 disagree about what settings.system.json is:
- The payload ships
install/settings.system.jsondeliberately without ahooksblock ('the system half WITHOUT the hooks block; InstallHooks owns hooks' — Setup.md). - Setup.md step 4 overlays it as
settings.json, so nothing ever lands at~/.claude/settings.system.json. MemoryHealthCheck.tstreats~/.claude/settings.system.jsonas a required regression-reference file and reports CRITICAL if it's missing — and once you copy the shipped one there, it still reports CRITICAL because the four memory hooks (MemoryReviewTrigger,MemoryReviewFire,MemoryHealthGate,MemoryDeltaSurface) aren't registered inside it.
Net effect: every fresh 6.0.0 install surfaces 🩺 MEMORY HEALTH: CRITICAL via MemoryHealthGate even when the live settings.json wiring is complete and correct.
Repro: fresh 6.0.0 install per INSTALL.md → bun LIFEOS/TOOLS/MemoryHealthCheck.ts → settings-missing:settings.system.json (critical); copy the payload file in → four settings-hook-missing:... criticals.
Workaround: compose the file as payload system-half + the hooks object from install/hooks/hooks.json and write it to ~/.claude/settings.system.json — health then passes (warn-only).
Suggested fix: pick one contract — either ship settings.system.json including the canonical hooks block and have Setup place it at the config root, or drop the settings.system.json checks from MemoryHealthCheck for skill-payload installs.
One more data point on the contract mismatch, from a Linux (Debian) install: the merged SessionStart hook chain runs MergeSettings.ts every session with --system ~/.claude/settings.system.json --output ~/.claude/settings.json — i.e., against the file setup never places.
Verified the failure mode is at least fail-safe. When the system file is absent, MergeSettings.ts (lines ~465–468) no-ops cleanly:
MergeSettings: input(s) absent (system/user settings layer not established) — nothing to merge
exit 0, output file untouched — confirmed both in source and live on our install.
So severity stays where you put it (cosmetic: permanent statusline PROBLEM + memory-health.jsonl logging overall: critical on a healthy fresh install) — but it means the intended settings-layering feature is silently dead on every install where the file was merged rather than placed. Placing the file (or teaching the health check + merge chain about the merged layout) revives the layering, not just the indicator.
Confirming this persists on 6.0.5 (macOS, skill-payload install). Every top-level prompt surfaces it verbatim via the MemoryHealthGate UserPromptSubmit hook:
MEMORY HEALTH: CRITICAL — settings.system.json not found at ~/.claude/settings.system.json. Fix: bun ~/.claude/LIFEOS/TOOLS/MemoryHealthCheck.ts
So the 6.0.0 contract mismatch described here is unchanged through 6.0.5: the install payload never places settings.system.json at the config root, but MemoryHealthCheck treats it as required, so a correctly-wired install still reports CRITICAL on every prompt. Same fix path as in the issue body. Adding this as a datapoint that the title's "6.0.0" now also covers 6.0.5.
Adding two data points from hitting this on a 6.0.5 install, plus a working fix.
- In my case the file was never written to ~/.claude/ at all — an earlier failure mode than "shipped without hooks."
This issue describes the payload's install/settings.system.json landing without a hooks block. On my install nothing ever copied a standing settings.system.json into ~/.claude/ in the first place, so MemoryHealthCheck CHECK 3 failed on the missing file rather than on missing hooks:
CRITICAL — settings.system.json not found at ~/.claude/settings.system.json
Root cause is the same contract gap, one step upstream: install.sh never touches settings, and the hooks step (InstallHooks.ts) merges hooks.json into settings.json but never produces the standing settings.system.json that CHECK 3 treats as the source of truth. So the health check requires a file that no install step is responsible for creating.
- Working fix (also a clean temporary unblock for anyone hitting this now):
Snapshot the canonical system-half base and inject the live hooks wiring — this satisfies both roles CHECK 3 expects (system baseline and hook-wiring record):
cd ~/.claude python3 - <<'PY' import json base = json.load(open('skills/LifeOS/install/settings.system.json')) # canonical system half live = json.load(open('settings.json')) # the wiring actually installed base['hooks'] = live['hooks'] json.dump(base, open('settings.system.json','w'), indent=2, ensure_ascii=False) PY bun ~/.claude/LIFEOS/TOOLS/MemoryHealthCheck.ts # → healthy
I've opened a PR that folds this into the installer so fresh installs come up green: #1432 . It makes InstallHooks.ts --apply write the standing snapshot as system-half + incoming hooks (the payload's own wiring, not the post-merge set — so a user's foreign hook entries never get frozen into "system truth"). Dry-run behavior is unchanged, and it's idempotent across re-installs.
Thanks — you mapped the three-way contract mismatch exactly. Fixed in the development source by making the check honest about what each file is: MemoryHealthCheck now treats the effective settings.json (the file the harness actually loads) as truth. Hook present in any layer → OK; intended in settings.system.json but clobbered out of the live file → CRITICAL (the real regression case); absent everywhere → a warn that the autonomic memory loop isn't enabled — expected on a skill-payload install, never CRITICAL. A missing settings.system.json no longer reports CRITICAL either. Ships with the next release. Closing as integrated.