The second hop.
A key inside read_file can be legitimate. The same key inside send_email is the incident. A scanner that opens one message at a time never sees the pair.
Sluice & Rakho
Weir is the pair. Sluice sits on the MCP wire and remembers a sensitive value for the rest of the session. When that same value tries to leave through another tool, the gate shuts.
Rakho is the notebook beside it. A note is inspected before it is written down. Each person’s pages stay apart. Forget deletes the page and the vector, and the audit can still prove the refusal.
A secret inside a file can be legitimate. The same secret inside send_email is the leak. Sluice stops the second moment.
Priya’s notebook is a different actor. Recall never crosses that line.
The attacker account still goes through if the poisoned file was never read. This is the session’s memory, not a blocklist of two emails.
A key inside read_file can be legitimate. The same key inside send_email is the incident. A scanner that opens one message at a time never sees the pair.
Memory that saves first will search the secret back later. The check has to happen before the embedding, and a refusal must keep a reason without keeping the text.
A payments tool does not know that a payee arrived inside “ignore previous instructions.” The session has to remember where the value came from.
01 / The wire
The MCP gate that remembers what your agent already saw.
A secret inside read_file can stay. The same secret inside send_email is blocked, because the gate already saw it.
Remembered on the way in. Stopped on the way out.
02 / The notebook
Inspect before you keep. Forget, and still prove it.
A refused note is never embedded. Forget deletes the page and the vector. The audit keeps the refusal, without the secret.
db.keep("order is late", actor_id="krishy")
db.keep("password is hunter2", actor_id="krishy")
# refused
db.recall("order", actor_id="krishy")
03 / A use case
One way the pair is used. A money call is blocked only when its payee was fingerprinted from content that already tripped a detector.
Poisoned invoice
Same session
Poison never read
Already in the record
Rakho was read as source, not as a launch post. Nearby PII work by the same author was merged, and one of those commits was selected as a worked example for coding agents.
An independent reading of the library at a pinned commit. Five of seven mechanisms are marked. The page also writes down what does not hold, which is the useful kind of attention.
A commit to foro-sh/pii-mcp was selected for the corpus agents search before they write. The commit matches street addresses that put a comma before the house number.
Street addresses with a comma before the house number, and 13-, 17-, and 18-digit card generators for the eval set. pii-mcp redacts PII from MCP tool results before they reach the model.
A README update landed in the list. Same neighborhood: tools that sit between a model and the data it is about to see.
On your machine
The gate. PyPI package sluice-taint, command sluice.
pip install sluice-taint
The notebook. Four verbs, one SQLite file.
pip install rakho
Sluice can be the inspector inside Rakho. The default gate still runs if you skip this.
pip install "rakho[sluice]"
Write
Drop a mail at krishy.ai.d@gmail.com to discuss the use case, or to send feedback on Sluice and Rakho.