Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

v5.0.0 — docs/system-prompt claim ContainmentGuard enforces on every Edit/Write, but settings.json never registers it

Open glitchking1337 opened this issue 6 months ago • 1 comments

In Releases/v5.0.0, both the constitutional system prompt and the containment policy doc assert that ContainmentGuard prospectively blocks hardcoded user-home paths on every Edit/Write/MultiEdit — but the shipped settings.json contains no hook registration for it. The prospective enforcement described isn't wired; only the retrospective ShadowRelease release gates run.

Evidence (canon paths)

  • Releases/v5.0.0/.claude/PAI/PAI_SYSTEM_PROMPT.md — "The ContainmentGuard hook already blocks hardcoded user-home paths from being written into PAI files — that hook IS this rule, automated."
  • Releases/v5.0.0/.claude/PAI/DOCUMENTATION/Tools/Containment.md — "The hooks/ContainmentGuard.hook.ts enforces the identity and CF-ID list prospectively on every Edit/Write/MultiEdit."
  • Releases/v5.0.0/.claude/settings.json — no ContainmentGuard.hook.ts entry under any PreToolUse matcher (Edit/Write/MultiEdit register only SecurityPipeline.hook.ts).

Impact

Readers trust that write-time containment is automated when it isn't. Protection is retrospective-only, at release time via ShadowRelease. A contributor editing a file with a hardcoded user-home path gets no prospective block, contrary to the docs.

Suggested fix

Either:

  1. Register ContainmentGuard under PreToolUse Edit|Write|MultiEdit in the template settings.json, or
  2. Soften the docs/system-prompt to describe enforcement as retrospective (release-time), with the prospective hook documented as opt-in.

glitchking1337 avatar Jun 05 '26 01:06 glitchking1337

You were right — v5.0.0's docs described a hook that was never wired. We resolved it the second way you suggested: the containment docs and system prompt now accurately describe enforcement as release-time only (the ShadowRelease gates), and the phantom ContainmentGuard references are gone. Docs claiming automation that doesn't exist is a trust bug; thanks for holding us to it.

danielmiessler avatar Jul 07 '26 18:07 danielmiessler