Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

[bug] Commits to the private config-root repo are refused: rendered identity trips…

Open udeepji opened this issue 1 month ago • 3 comments

What happened

Commits to the private config-root repo are refused: rendered identity trips the staged leak scan

Summary

Context for every issue: macOS, Claude Code harness, in-place upgrade from 7.40.4 to v8.761.0 via the bootstrap (LIFEOS_SRC=<local release dir>) and Tools/InstallAll.ts --yes.

What happens. The update chain's RenderIdentity pass writes the principal's and DA's names into system files (e.g. LIFEOS/TOOLS/JobGate.ts, LIFEOS/RELAY/**, LIFEOS/LIFEOS_SYSTEM_PROMPT.md; about 60 files). The pre-commit hook installed by Secrets.ts install-hook then runs StagedLeakScan.ts, which refuses every one of those files as "SYSTEM file(s) carry user-identifying content (deny-list match)".

Expected. After an upgrade, the principal can commit the config root to its private repo without --no-verify.

Repro. Upgrade, run Secrets.ts install-hook, stage the overlaid tree, git commit. Example diff vs payload: {{DA_NAME}} → the DA's name in a comment in JobGate.ts.

Suggestion. Either exempt rendered identity values from the SYSTEM-zone deny list in the config-root repo, or keep identity tokens unrendered in files that are not model-facing.

Details

  • Kind: bug
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

udeepji avatar Oct 28 '26 21:10 udeepji

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks @udeepji, confirmed in source: the derived deny-hash filter hashes the identity files, so the names RenderIdentity writes into SYSTEM files then trip StagedLeakScan on your own config root.

We're not taking the suggested exemption as written. Exempting rendered identity values would also exempt them on the source tree this scan exists to protect, and it would override names a user put in DENY_LIST.txt themselves. The fix has to stay narrow: exempt only what the installer itself rendered, on an install, without weakening the scan anywhere else. Until then, adding the rendered names to USER/CONFIG/denyhash-allowlist.txt clears it. Keeping this open.

danielmiessler avatar Oct 29 '26 05:10 danielmiessler

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks @udeepji, confirmed. The staged leak scan checks against hashes derived from your identity file, so the names the upgrade renders into system files trip it. The fix will exempt only the occurrences the installer itself rendered, on an install, and leave the guard intact for everything else. Because it narrows a leak guard, we're landing it on its own, with its own review, rather than in this batch, so this issue stays open until then. Until it ships, add those files to USER/CONFIG/denyhash-allowlist.txt and commit without --no-verify.

danielmiessler avatar Nov 06 '26 13:11 danielmiessler

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

You were right: the identity filter is derived from your own identity file, so the names the installer renders into system files refused every commit of your config root. The installer and the update overlay now record each value they render (file, offset, value hash), and on an install's config root the leak scan subtracts a hit only when it sits in exactly those recorded bytes. Everything else still refuses: a name typed anywhere else, a moved value, a name you listed in DENY_LIST.txt, and the maintainer tree. Your current install gets the manifest on the next upgrade's re-render. One correction to our earlier comment: denyhash-allowlist.txt takes names, not file paths. A recorded span counts only when its bytes, length and hash equal the value your own LIFEOS_CONFIG.toml resolves for that token, so a hand-edited manifest cannot clear any other name.

This fix lands in the next LifeOS release, so I'm closing this now.

danielmiessler avatar Nov 20 '26 02:11 danielmiessler