What shipped

SPILLWAY (arXiv:2611.07222, submitted 4 Nov 2026 by Woosang Lim, Yeseul Chang, and Jaewoo Lee) separates two decisions that most prompt-injection defenses merge into one model call: which targets an agent is allowed to act on, and which text the agent is allowed to read as instructions. An earlier version was accepted at the Third Workshop on Agents in the Wild (NeurIPS 2026). The project page (saintmachines.github.io/spillway) and code (github.com/saintmachines/spillway) are public.

The egress floor works without any model at all. For each proposed side-effecting call, the executor builds a set I of identity values read from typed fields of read-only tool returns before those returns are serialized for the model: an email's sender, a channel's members, a payment's recipient. Bodies, subjects, and descriptions never enter I. A call is admitted only when every target value appearing in tool output but not in the user's task came from I and is not repeated in free text. Values the user named in the task are never treated as novel. Grant calls (adding members, sharing) and unrequested deletions are refused outright and no judge reopens them.

Ingress sanitization runs before the model ever reads the tool text. Deterministic rules replace forged chat-template turns (a fabricated <|im_start|> system or user turn), template-delimited injection regions, second-person task-directed clauses, and fake payee-account-change claims with inert markers. Removed spans are retained as evidence set S.

A local judge may then review only calls the floor refused. It answers two questions from separate views (routing: does the task imply this recipient; payload: did the user request this action and content), both must agree. A target inside S never reaches the judge at all (the span veto). The judge runs at temperature 0 and fails closed.

Evaluation covered AgentDojo (suite v1.2.2, four stateful suites) plus AgentDyn, across three backbones (gpt-4o-mini, qwen3-coder:30b, qwen3:8b). Across all twelve backbone-by-suite cells, in-scope attack success was 0 under SPILLWAY. The same grid leaked under every competitor: MELON on 7–11 of 12 cells, Progent, DRIFT, and ROPE (leaking on three of seven delegated-routing suites). A forged chat template scored raw zero. Against the released RL attacker PISmith, mean in-scope attack success was 0.007. SPILLWAY posted the highest mean utility and composite scores (NRP, ERS) of the defenses run under attack, with no defense-triggered backbone re-run and almost no added model calls, versus 2.2–13.6 extra backbone calls per benign episode for MELON, Progent, and DRIFT on qwen3:8b.

Why it matters

The distinction between a typed field and free text is doing the real work here. An incoming email's sender arrives as structured data the mail client parsed; the sentence inside the body begging you to forward the file to an attacker is just prose. Tools already know this difference; agents have been trained to blur it by reading everything as text. SPILLWAY refuses to blur it, and the refusal is a set lookup, which is why results do not move with the backbone.

That removes the attacker from the authorization decision. MELON, Progent, and DRIFT all leak in this benchmark because the model reading the injected text is also the model deciding whether the action is allowed. The failure mode survives model upgrades: a stronger backbone reads the attacker's text more fluently. A lookup over typed returns does not care how fluent either side is.

The sanitizer coupling matters because of one concrete ablation: without the sanitizer, the judge approved a transfer to the attacker's account on a "pay the bill" task. The floor alone would have refused it, and the judge alone undid the refusal. Only the span veto (never ask the judge about a target inside removed text) closed that hole, which is why the paper's three properties P1–P3 are stated as guarantees rather than accuracy numbers.

The cost profile changes procurement math. Defenses that re-run the backbone or consult a checker model on every step add latency and spend to every benign episode, and still leaked here. A deterministic floor plus a judge that only sees refusals adds near-zero model calls on the happy path.

Adoption / Practical steps

SPILLWAY is a research system, not a shipped product. Nothing in the paper describes a pip-installable library or a SaaS endpoint, so treat this as a design pattern to implement inside your own agent loop rather than a tool to adopt. Code is public at github.com/saintmachines/spillway for reference.

The transferable blueprint, in order:

  1. Have your tool executor capture each read-only tool's typed return object before serialization, and index only identity-typed fields (email, URI, UUID, hostname, IP, or routing-role fields like recipient/sender/channel).
  2. For every side-effecting call, compute which target values appear in tool output but not in the user's task; admit only if all are in the typed index and none repeats in free text. Keep grants and unrequested deletions as hard refusals.
  3. Add ingress rules that strip forged chat turns, template delimiters, second-person instruction clauses, and payee-change claims before the model reads tool output, retaining removed spans as evidence.
  4. Bind any LLM recovery judge with a span veto: it never sees a target that sits inside removed text, and make it fail closed.

References