Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

Template scrub misses one literal reference to the private ShadowRelease.ts path; the constitutional release rule points at tooling that never ships

Open jacobo-ortiz opened this issue 3 months ago • 3 comments

The template scrub that produced the public payload was applied to two of the three references to the maintainer-private release tool, so every fresh install ships a constitutional rule that points at tooling it does not have. Verified against main today (2026-08-06), all paths relative to LifeOS/install/:

File Line Content
LIFEOS/LIFEOS_SYSTEM_PROMPT.md 174 placeholder <your-release-skill> ✅
LIFEOS/LIFEOS_SYSTEM_PROMPT.md 183 literal skills/_LIFEOS/Tools/ShadowRelease.ts, with its gate inventory (G1–G14 + G17–G21, G2, G9)
LIFEOS/LIFEOS_SYSTEM_PROMPT.md 184 placeholder <your-release-skill> ✅
hooks/lib/containment-zones.ts 117 literal skills/_LIFEOS/Tools/ShadowRelease.ts in PATTERN_ALLOWLIST_FILES

The referenced file itself does not ship: LifeOS/install/skills/_LIFEOS/ is absent from the payload (underscore-prefixed skills are excluded by design; the raw URL for the file returns 404).

Effect on a fresh install

Constitutional rule §3 in the system prompt declares the release workflow "the ONLY sanctioned path" for moving anything toward public visibility, and the adjacent bullet grounds that rule in gates "G1–G14 + G17–G21 in skills/_LIFEOS/Tools/ShadowRelease.ts". For every public user that file does not exist, so the rule cannot be followed as written: the named backstop is imaginary, while the two templated bullets around it correctly delegate to <your-release-skill>. The PATTERN_ALLOWLIST_FILES entry is inert for the same reason (it allowlists a file that is never present), but it carries the same private path.

Suggested fix

Finish the scrub:

  • LIFEOS_SYSTEM_PROMPT.md:183: describe the gates categorically or attribute them to <your-release-skill>'s release tooling, matching lines 174 and 184.
  • containment-zones.ts:117: drop the entry from the public template (or emit it only in the private tree), since the allowlist should describe files the install actually contains.

Happy to open a PR for either.

jacobo-ortiz avatar Aug 06 '26 14:08 jacobo-ortiz

One more consequence of the same root cause, found while auditing a fresh install: the shipped LIFEOS/TOOLS/IntegrityCheck.ts (check #11, gate_counts) parses the GateKey roster from skills/_LIFEOS/Tools/ShadowRelease.ts at runtime. Since that file never ships, the whole scan aborts with SCAN ERROR (exit 2) on every public install, taking the other ten integrity checks down with it. So the leak is not only cosmetic: it structurally breaks the doc-integrity pipeline for every user. A guard that skips gate_counts when the file is absent would restore the rest of the scan.

jacobo-ortiz avatar Aug 06 '26 15:08 jacobo-ortiz

Fixed in source. The scrub now carries a catch-all pair for the path form (skills/_LIFEOS/ → <your-release-skill>/), which covers the system-prompt line, the containment-zones allowlist entry, and five other class members a sweep turned up. Your gate_counts point was already handled — the integrity checker skips that check when the release tooling directory is absent, so the next release stops aborting the scan. Both land in the next release. Thanks for pinning all three reference sites; the table made this a five-minute fix.

danielmiessler avatar Aug 07 '26 09:08 danielmiessler

Re-checked this against main today (2026-08-28). Both references this issue is about are still in the shipped payload, at essentially the same lines:

LifeOS/install/LIFEOS/LIFEOS_SYSTEM_PROMPT.md

Line Content
175 3. Is the release workflow the path?
184 The release-time containment gates (G1–G14 + G17–G25 in /Tools/ShadowRelease.ts …
185 **The skill's release workflow is the ONLY sanctioned path** …

So on a fresh install the constitutional privacy rule still names its only sanctioned path with an unsubstituted scrub token, and still describes a gate inventory belonging to a tool that a code search across the repo does not find.

Two things have changed since the issue was written, both minor: line 184 now carries the placeholder rather than the literal private path, so that half did get scrubbed; and the gate inventory has grown from G1–G14 + G17–G21 to G1–G14 + G17–G25, which suggests the private tool is still under active development.

Not re-filing — #1590 covers the same ground and is also closed. Flagging it here because a closed issue whose symptom is still on main is easy to lose, and I cannot tell from outside whether the fix was dropped, reverted, or intentionally deferred until the release tool itself ships publicly.

For anyone hitting this on an install: the practical reading is that there is currently no sanctioned path from a private install to any public location, so the correct behaviour is to make no public release rather than improvise one. The prohibition in that section is unaffected; only the mechanism is missing. Writing that consequence into the system prompt itself helps, since the section otherwise reads as though a 14-gate pipeline were actively protecting the user.

jlacour-git avatar Aug 28 '26 12:08 jlacour-git