An AI agent that browses the web is like a new assistant who reads every letter that arrives. Most letters are routine. Some are written to trick the assistant into handing over a password or sending money to the wrong account. The usual fix is a supervisor: a second check that reviews each action before it runs.

A new paper, Where Should the Supervisor of an LLM Agent Sit?, measures what those supervisors cost, not only whether they stop attacks. The result is less comfortable than "add a guard."

The familiar problem

Tool-using agents read pages and documents they do not control. Hidden instructions in that text can push an agent to leak credentials, change payment details, or alter facts. Defenders have tried several guards: fixed permission rules, a classifier that scores text for injection, the agent reviewing its own plan, and a separate language model acting as an independent supervisor.

The abstract's point is that what a supervisor's blocks cost is rarely measured. A guard that blocks attacks but also blocks ordinary work has not made the agent safe. It has made the agent far less useful.

The surprising result

The authors compare these designs on one shared harness, with shared random seeds. For Qwen3-4B, an independent supervisor cut attack success from 86% to 22%. That looks like a win. But only 8% of attacked tasks finished safely. Our reading of "safely": the task was completed and the attack failed.

The abstract's explanation is direct: having read the injected text, the supervisor blocked clean actions too. The attack failed, but the agent also stopped finishing its work. A guard that cannot tell the attack from the task ends up stopping the task as well.

The fix: make the guard name its reason

The change the authors test is small. A block has to quote the offending text from the action itself. Ordinary code then checks that the quote really appears in the action. If it does not, the code cancels the block and the action goes ahead.

Think of a bouncer who must point to the specific thing he is worried about before turning someone away. A vague hunch no longer counts.

The results move sharply. With the quote rule, safe completion for Qwen3-4B, a small language model, rose from 8% to 77% with the independent supervisor, from 7% to 79% with a hybrid design, and from 4% to 84% with Phi-4-mini, another small language model. As we read the paper, the hybrid runs permission rules first, then the independent supervisor.

Concept: injected text reaches an agent action, a supervisor decides, and a code check either holds a block with a matching quote or cancels it.

The chart shows the gap for the independent supervisor in the Qwen3-4B setup, with and without the quote rule.

Bar chart: safe completion of attacked tasks, Qwen3-4B with an independent supervisor, 8% without the quote rule and 77% with it.

Where the supervisor should sit

The title asks where the supervisor should sit, and the abstract answers with placement results. Against a compromised agent, the abstract reports, as counts without a denominator, that an in-process supervisor fell in 25 cases, a supervisor in its own process under the same user fell in 15, and one running as a separate user fell in none.

As we read it, the supervisor looks safest when the compromised agent cannot reach it. The quote rule decides whether a supervisor is usable; placement decides how often a compromised agent can get past it. Both matter, and the paper measures both.

The catch: a missing quote lets the action through

The quote rule has a cost, and the authors say so. If the supervisor objects to a harmful action but does not quote matching text, code cancels the block, and the action runs. Permission rules upstream still have to stop things like credential reads.

The study runs 222 cases per configuration. The abstract names content sabotage within granted permissions as the main residual risk. Our reading: the quote rule and permission rules may not stop a harmful change that sits inside an action the agent is allowed to take.

On AgentDojo, a public benchmark, the supervisor with the quote rule lowers attacks won from 42 to 32 of 144 but does not raise safe completion.

Why it matters

The useful lesson is not "use this exact supervisor." A safety check is part of the agent's behaviour and can fail in its own way. Asking a guard to name its reason is a cheap way to make it inspectable. The check only shows that the guard pointed at something real in the action. It does not show that the objection was right, and that is still a judgment call.

Our view: if you build agents that touch email, payments or credentials, measure safe completion alongside attack success, and keep the supervisor out of the agent's reach. A defence that scores well on one and collapses on the other is not finished.

Ask of your own agent: when it blocks something, can it show exactly why?