room
PLUGINUlpi Room washes untrusted web, email, file and tool output before Ulpi reads it: deterministically, with model help for semantic attacks.
by adenijiridwan43 · v0.2.0
What it does
Ulpi Room washes untrusted web, email, file and tool output before Ulpi reads it: deterministically, with model help for semantic attacks, and with receipts you can audit. Layer 1 (always, local, stdlib-only) strips zero-width/bidi/control characters, ANSI escapes and hidden-HTML payloads, and masks leaked secrets (AWS/GitHub/GitLab/Slack/OpenAI/Google keys, JWTs, private-key blocks, password=/secret= assignments).
Layer 2 runs only when Layer 1 flags something: a host-model reviewer via ctx.llm.complete_structured, your active Ulpi model - no provider/model override, no extra API key - 20s timeout, 800 tokens, fail-open to Layer 1. Every change yields a local JSONL Trust Receipt (SHA-256, rule IDs, counts, reviewer verdict, never raw content): trust_receipt shows what changed, trust_report exports Markdown.
Disclosure - reads only tool-output text; no network beyond the user's own provider call via ctx.llm; no shell, no background processes, no telemetry; no credentials required (requires_env is empty); writes solely to <ULPI_HOME>/ulpi-room/receipts.jsonl (hashes/counts only, local); fails open, never blocks or breaks the tool loop.
Tools it adds
The tools an agent gets once this plugin is installed.
- trust_receipt
- trust_report
How to set it up
Disclosure — rewrites the result of every tool (web, email, MCP, read_file, terminal, skills) before the model sees it: it strips hidden HTML/control characters, deletes phrases that look like injected instructions, masks secret-looking values and adds an header, so files read through it may differ from what is on disk; when a rule fires it sends up to 8,000 characters of the unmasked output to your active Ulpi model for review (an extra model call, up to 20 s) and may replace the result with the reviewer's re-washed text.
[UNTRUSTED ...]
Review notes
What an owner reads and accepts before the install is approved.
- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve