Repository navigation
Description
Version
LifeOS 8.761.0 · attestation: 8 system file(s) differ from danielmiessler/LifeOS@v8.761.0:
- skills/LifeOS/SKILL.md
- LIFEOS/TOOLS/models.ts
- LIFEOS/TOOLS/model-pricing.json
- LIFEOS/DOCUMENTATION/ARCHITECTURE_SUMMARY.md
- LIFEOS/DOCUMENTATION/Hooks/HookSystem.md
- LIFEOS/DOCUMENTATION/Services/BackgroundServices.md
- LIFEOS/ALGORITHM/AlgorithmReference.md
- LIFEOS/ERRATA/fixtures/LabelBrief.md
What is broken
On a fresh 8.761.0 install the derived-freshness integrity check blocks with six findings of the form MEMORY/STATE/<name>: surface read absent from derived-artifacts.json, for agent-jobs, checkpoints, content-pipeline, progress, taint and velocity. All six are directories that hooks and Pulse modules write into on first use (hooks/CheckpointPerISC.hook.ts:433, hooks/lib/taint.ts:18, LIFEOS/PULSE/modules/velocity.ts:14, LIFEOS/PULSE/modules/content.ts:4, LIFEOS/PULSE/modules/workflows.ts:67, hooks/LoadContext.hook.ts:335). The check means to skip directories, but it tells a directory from a file by looking at the disk (IntegrityCheck.ts:882), so a directory that does not exist yet is treated as a file artifact and required in the manifest. On a machine where those features have run, the directories exist and the check passes; on a new install none of them exists and it blocks. The reference regex at line 876 also stops at the slash, so agent-jobs never matches the agent-jobs\/ entry of the ephemeral list at line 874. The three local doc patches the attestation lists are unrelated to this check. Related but separate: the seventh derived-freshness finding on such an install, the stale skill-usewhen-index.json, is already covered by #2725 (its row for derived-artifacts.json:17). Searched issues, PRs and discussions before filing; found no thread about these six directories.
Where (file:line)
LIFEOS/TOOLS/IntegrityCheck.ts:882
Repro on a clean tree
1. Install LifeOS 8.761.0 on a clean machine. Do not use velocity sync, the content pipeline, agent jobs or per-ISC checkpoints yet.
2. Confirm that `LIFEOS/MEMORY/STATE/` has none of: agent-jobs, checkpoints, content-pipeline, progress, taint, velocity.
3. From the config root, run `bun LIFEOS/TOOLS/IntegrityCheck.ts --no-stamp --section derived-freshness`.
4. Result: six BLOCK findings, one per name above.
5. Control: create one of them as an empty directory (for example `LIFEOS/MEMORY/STATE/velocity`) and rerun; that finding disappears, which shows the result depends on disk state, not on the manifest.Negative control
Probe: bun LIFEOS/TOOLS/IntegrityCheck.ts --no-stamp --section derived-freshness --json | grep -E 'surface read absent|totalBlocking' · exit 0 · captured 2026-11-11T08:55:14.741Z
Red looks like: surface read absent from derived-artifacts.json
"totalBlocking": 6,
"detail": "MEMORY/STATE/agent-jobs: surface read absent from derived-artifacts.json",
"detail": "MEMORY/STATE/checkpoints: surface read absent from derived-artifacts.json",
"detail": "MEMORY/STATE/content-pipeline: surface read absent from derived-artifacts.json",
"detail": "MEMORY/STATE/progress: surface read absent from derived-artifacts.json",
"detail": "MEMORY/STATE/taint: surface read absent from derived-artifacts.json",
"detail": "MEMORY/STATE/velocity: surface read absent from derived-artifacts.json",
Suggested fix
Suggestion, not tested: decide "directory or file" from the source text, not from the disk. Let the reference regex at IntegrityCheck.ts:876 capture a trailing slash when one follows the name, and skip a reference that ends in a slash; the ephemeral list at line 874 then matches agent-jobs/ as written. For names used without a slash, a "kind": "directory" entry in derived-artifacts.json would state the intent once for every install. The alternative of having the installer create the six empty directories would also turn the check green, but it keeps the result tied to disk state and breaks again with the next new state directory.
Environment
- OS: macOS 27.2 (arm64)
- Harness: claude-code
- bun: 1.4.4 · git: 2.54.0
- Doctor broken: none
Activity
Luo0oo commentedon Nov 15, 2026
Note
🤖 Harper (AI assistant) responding on behalf of Luo
Two more
derived-freshnesscases from the 8.761.0 payload, beside the missing-directory case in this issue:A.
MEMORY/STATEpaths that payload code uses are missing from the manifest.LIFEOS/TOOLS/derived-artifacts.jsonhas 25 entries and none for these paths:MEMORY/STATE/agent-jobsLIFEOS/PULSE/modules/workflows.ts(AGENT_JOB_STATE_DIR, which resolves toLIFEOS/USER/MEMORY/STATE/agent-jobs, not theLIFEOS/MEMORY/STATE/agent-jobsthe check looks for)MEMORY/STATE/checkpointshooks/CheckpointPerISC.hook.tsMEMORY/STATE/content-pipelineLIFEOS/PULSE/modules/content.ts, viaLIFEOS/TOOLS/Conveyor/Ledger.tsMEMORY/STATE/progressLIFEOS/TOOLS/SessionProgress.tsMEMORY/STATE/tainthooks/lib/taint.tsMEMORY/STATE/velocityLIFEOS/PULSE/modules/velocity.ts(written byLIFEOS/TOOLS/VelocityDeeds.ts)The check runs only on installs with a git checkout (
IntegrityCheck.ts:862) and skips directories that exist (:882). On such an install, absent paths that its text scan finds in the code (comments included,:876-887) become manifest-gap findings, so otherSTATEpaths can show up the same way. The general fix is a manifest entry per artifact the code reads, with its writer andmaxAgeHours(ornullfor stamps), or a rule that skips directory prefixes.B.
skill-usewhen-index.jsonhas no live writer. The manifest says this file is "refreshed by the per-turn Algorithm nudge hook" (maxAgeHours: 24). In 8.761.0,hooks/AlgorithmNudge.hook.tsstill definesloadIndex()at:691, which spawns--rebuild-indexwhen the index is stale, but nothing calls it any more.git log -S 'loadIndex()' -- install/hooks/AlgorithmNudge.hook.tsplaces the change infb9aef4(release 8.761.0), which removesconst idx = loadIndex();. The other uses of the index path are the--rebuild-indexbranch at:1061, reachable only by running the hook with that flag, and the read insideloadIndex.So once the file exists, it becomes blocking when its mtime passes 24 hours and stays red unless it is rebuilt by hand. An absent index produces no age finding. Either restore the call, or retire the index,
loadIndex, the rebuild branch and the manifest row together.