@eigenscope/pi-firewall
v0.2.20
Published
EigenScope automatic 4-channel semantic privacy firewall, untrusted tool IPI sanitizer, lossless local restoration, and live RAM-only CoT Explorer extension for Pi coding agents.
Maintainers
Readme
@eigenscope/pi-firewall (v0.2.19)
Zero-tag semantic privacy firewall, untrusted tool indirect-prompt-injection (IPI) sanitizer, deterministic single-use vault restoration, and 3-stage protection & reasoning trace extension for Pi coding agents.
Architecture Boundary
@eigenscope/pi-firewall strictly preserves Pi's own model provider transport:
- Stage 1 — Pre-inference separation (
context&tool_result): Outbound prompt blocks are cloned in memory (never mutating Pi's on-disk JSONL session history) and separated through/v1/decompose(CODING_AGENT_FIREWALLfor prompts,UNTRUSTED_TOOL_IPI_FIREWALLfor tool outputs). Sensitive values stay in local/volatile vault custody. - Stage 2 — Model reception & reasoning observation (
message_update): Pi executes its configured LLM provider call directly ontask_core(zero EigenScope provider wrapping). When a provider streams thinking tokens (thinking_delta), post-inference diagnostic helpers flag placeholder confusion, missing-context complaints, or shortcut/bypass language. When a provider suppresses thinking tokens, capability is reported honestly asnot_emitted_by_provider. - Stage 3 — Deterministic restoration & zeroization (
turn_end&session_shutdown): Assistant output is restored locally via single-use/v1/rehydrate(consume_and_scrub_vault_ticket: true) and any remaining tickets are explicitly scrubbed via/v1/vault/scrub.
Setup
Run @eigenscope/init inside any repository:
npx --registry https://eigenscope.guardianai.network/npm @eigenscope/[email protected] --ide pi --org-repoOr install directly:
npm install --registry https://eigenscope.guardianai.network/npm @eigenscope/[email protected]Configure ORTHOCORE_API_KEY (or run npx @eigenscope/init login to write 0600 ~/.config/eigenscope/credentials.json).
Commands & Opt-In Receipts
/eigenscope status— show current mode (protected,audit,off), endpoint, active vault tickets in RAM, and reasoning capability status./eigenscope protected|audit|off— switch runtime mode cleanly./eigenscope trace— summarize the most recent turn stages (RAM only).- Set
EIGENSCOPE_TRACE_RECEIPTS=1to write content-free0600NDJSON trace receipts (symbol counts, keys, eta/leakage telemetry, confusion flags — never raw prompt text, secret values, or reasoning tokens) inspectable witheigenscope trace.
