The Research Report
SPILLWAY: Zero Injections by Checking Where Agents Send Things, Not What They Read
As of November 17, 2026
What shipped
SAINT Machines published SPILLWAY on November 4 (arXiv 2611.07222, authors Woosang Lim, Yeseul Chang, Jaewoo Lee), and it rose to the #2 paper of the day on Hugging Face on November 17. Unlike most injection-defense papers, this one shipped: the guard is installable as spillway-guard 1.0.0 on PyPI, with integration recipes for LangChain and LangGraph, the OpenAI Agents SDK, any MCP host, and Claude Code hooks.
SPILLWAY's mechanism sidesteps the problem that breaks most runtime defenses. Defense-by-model-judgment (asking the LLM to distinguish instruction from attack in text) adds model calls at every step and can misread the attacker's text. Provenance defenses keep the model out of the final check but need an extra model-call pipeline to plan or route each task. SPILLWAY ignores what the model reads and instead checks where a tool call goes. The key observation: the place an action goes usually arrives in a typed field — an email's sender, a payment's account, a URL's host — while injected instructions arrive as free text in bodies. That split supports a deterministic check with no per-task planner involved.
Concretely, the guard admits a tool call only when every target value not named in the user's original task was (a) returned by a read-only tool in a typed field, or (b) covered by a fixed delegation rule. A deterministic sanitizer then strips instruction-like regions from content before the model ever sees them and keeps the removed spans as evidence. An optional local judge — a 4-bit quantized Gemma 4 31B — can restore a refused call if it looks benign, but is structurally never allowed to restore a call whose target came from removed text.
Why it matters
The AgentDojo numbers, from the code released as spillway-guard 1.0.0: zero in-scope attack successes — 0 of 2,847 attempts — across twelve backbone-by-suite cells, while every compared defense leaked somewhere (ROPE 3 cells, DRIFT 7, MELON 10, PI detector 10, Progent 11, Spotlighting 12). SPILLWAY also posted the highest mean utility under attack at 48.9%, against DRIFT's 45.3%, ROPE's 34.5%, and MELON's 31.4%.
The floor held against the harder attacks. ChatInject's forged chat template produced zero successes (0 of 665), as did AutoDojo (0 of 389) and a variant where the attacker sends the injected email directly (0 of 126). Under PISmith's released reinforcement-learning attacker, mean in-scope attack success was 0.5% (4 of 949) at 25.7% utility — the authors report an even lower 0.007 mean in the paper's main configuration.
Cost is the part that makes this deployable rather than merely interesting. On benign episodes, the guard adds 0.19–0.39 model calls per episode including the judge — 13 to 50 times fewer than MELON, Progent, or DRIFT — at most ~500 ms added per task, versus 1,600–10,500 ms for those three. No defense step re-runs the model backbone. A refusal by the check is a set lookup that an auditor can replay, which is what "auditable refusal floor" is worth in practice when agents act on email, files, and payments.
The recorded demo on the project page puts it in one frame: of eight runs on a Slack episode with an injected link telling the agent to leak, SPILLWAY is the only one that posts the reply the user asked for without sending the link.
How to evaluate or adopt
Install and wire it where tools run, not where the model runs: pip install -U spillway-guard, then apply the recipe matching your harness — Claude Code hooks if you live in Claude Code, the MCP route for any MCP-based agent stack, the OpenAI Agents SDK recipe otherwise. The repo publishes per-cell records for every AgentDojo result, so you can check the cells that match your backbone rather than trusting the headline.
Before relying on it in a personal-agent rollout, account for the design's failure mode: targets that genuinely live in free text. A user who pastes "send it to [email protected]" inside an email body — not a task field, not a typed tool return — hits the refusal path and needs a delegation rule to cover it. Delegation rules are the configuration surface to get right, and they should be narrow: SPILLWAY's guarantee is only as good as the rules it trusts. The local judge also needs GPU to run Gemma 4 31B at 4-bit, so judge-on deployments are host machines, not phones; the deterministic check alone runs anywhere.
For an AI-adoption consulting practice, this is the cheapest credible answer to the injection question buyers now ask: a deterministic floor, a public benchmark trail, and recipes for the four main harness families — with the honest caveat that RL-attack resistance is measured, not proven absolute.
References
- Paper page with abstract and author benchmark walkthrough: https://huggingface.co/papers/2611.07222
- arXiv paper: https://arxiv.org/abs/2611.07222
- Code and per-cell records: https://github.com/saintmachines/spillway
- Project page with recorded Slack demo: https://saintmachines.github.io/spillway/