Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

[bug] IntegrityCheck: three gates flag upstream payload and third-party plugins

Open glitchking1337 opened this issue 3 weeks ago • 3 comments

What happened

IntegrityCheck.ts is red on a stock install because three of its gates flag files the install did not author. On LifeOS 8.761.0, 'bun LIFEOS/TOOLS/IntegrityCheck.ts --json' reports 529 blocking findings. 384 of them come from three gates: (1) references, 144 findings: ReferenceCheck walks the updater's own backup folder and skills/synced (the claude.ai skill sync Claude Code writes), and reports their relative links as broken; excluding those two trees clears them. (2) no-python, 125 findings: checkNoPython exempts paths containing /Plugins/ but the folder on disk is lowercase plugins/, so every Anthropic marketplace plugin's .py files are flagged; a case-insensitive match clears them. (3) config-root-literal 111 and email-branding 4: checkConfigRootLiteral and checkEmailBranding scan the tracked installer payload under skills/LifeOS/install/, which is upstream's own copy of the tree and carries the literals by design; skipping that payload clears them. The remaining findings are real or upstream debt (stock launchd jobs outside Workflows, doc pointers to maintainer-only files). A user cannot clear these locally without editing gate code, which the project treats as a held change, so every stock install stays red on /ic.

Summary

On a stock 8.761.0 install, IntegrityCheck.ts --json reports 529 blocking findings and 384 of them come from three gates reading files the install did not author: the reference check walks the updater's backup folder and the claude.ai skill sync, the no-python check exempts /Plugins/ but the folder on disk is lowercase plugins/, and the config-root-literal and email-branding checks scan the tracked installer payload under skills/LifeOS/install/. Each is a one-line exclusion or case fix in the gate.

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.

glitchking1337 avatar Nov 08 '26 18:11 glitchking1337

[!NOTE] 🤖 Avi (AI assistant) writing on behalf of Hans-Jakob. He read and approved this text before it was posted.

We see the same three gates on a second 8.761.0 install, one updated in place from 7.41.0 and kept in git: references 182 from the updater's .retired-<timestamp>/ folder, no-python 130 under plugins/, and under skills/LifeOS/install/ config-root-literal 111, email-branding 4 and code-data-boundary 2.

Two things this report does not list yet.

Skills from other vendors

Skills installed as links from a shared skills folder are held to the LifeOS intent standard, and the user cannot fix them: intent-lint 17, skill-hygiene 15, symlink-in-code 14.

A skills/.trash/ folder adds more: untracked-in-code 117, no-python 20, retired-tokens 3. We believe the claude.ai skill sync creates it when a synced skill is removed; we did not verify which tool writes it.

A fresh copy of the release

To see what stays red after the three fixes, we copied LifeOS/install/ into an empty folder, moved USER to LIFEOS/USER, put the skill at skills/LifeOS, used settings.system.json as settings.json, and ran:

CLAUDE_CONFIG_DIR=<folder> bun LIFEOS/TOOLS/IntegrityCheck.ts --json --no-stamp

No installer step ran, so we leave out the checks that depend on one. The checks that only read files report:

  • references: 98 missing. 37 are relative links inside LIFEOS/PULSE and 34 are in LIFEOS/DOCUMENTATION, for example hooks/ULWorkSync.hook.ts in Work/WorkSystem.md and test/harness.ts in Testing/TestingDoctrine.md.
  • prose-in-code: 105 hits against a budget of 0.
  • rule-duplication: 2.
  • dispatcher-parity: 1. HookSystem.md says 59 .hook.ts files are on disk; the release has 50.

So a stock install stays red after the three exclusions, until these are fixed in the release or marked as not in the public release.

We can send the skip rules as small PRs if that helps.

hjbrandt avatar Nov 09 '26 21:11 hjbrandt

Confirming (2) on 8.761.0, macOS: 249 of our blocking findings were .py files under <config root>/plugins/ (the two marketplace catalogues and one installed plugin's cache).

One note on the fix. A case-insensitive /plugins/ match would also exempt any folder named plugins anywhere in the tree, including one inside a user's own skill, which is exactly where no-python should still bite. We patched it locally by skipping only paths that START with <config root>/plugins/, and checked both sides: a planted .py directly under hooks/ and one inside a nested hooks/.../plugins/ folder each still read 1 blocking finding, and the Claude Code plugin folder reads 0.

Luo0oo avatar Nov 11 '26 01:11 Luo0oo

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

You were right on all three gates. The no-python check now skips Claude Code's plugin folder at the config root in either spelling, while a plugins folder anywhere else is still checked. The reference check no longer walks the updater's aside folders or the claude.ai skill sync. The config-root-literal and email-branding checks skip the staged installer payload under skills/LifeOS/install/. A stock install should no longer see these findings from files it did not write.

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

danielmiessler avatar Nov 20 '26 00:11 danielmiessler