Skip to main content
All writing

Stop Treating LLM Monitors as Controls. Gate the Tool Call Instead

A September paper showed reasoning models reword their way past chain-of-thought monitors. Here is where I put enforcement instead, and the rule I use to decide.

By Sattyam Jain · first published on Medium on · 8 min read

Edits on this site

  • : The Medium version said agent-airlock refuses by default. Its SecurityPolicy has default_deny=False (an empty allowlist allows every tool) unless you set default_deny=True, so that phrase is removed here.

I have one rule for agent oversight. If it reads the model’s words, it is a signal. If it reads the model’s call, it can be a control.

For a long time, that rule was a hunch I built tooling around. Last week it got a clean piece of evidence, and I want to lay out why I think most teams putting an LLM judge or a chain-of-thought monitor in front of their agent are buying a smoke detector and calling it a lock.

What the September result actually shows

On 25 September 2026, Julian Schulz posted “Monitor Jailbreaking: Evading Chain-of-Thought Monitoring Without Encoded Reasoning” (arXiv:2609.31121, accepted at the AdvML-Frontiers x CoTMA workshop at COLM 2026). The setup is simple. Train a reasoning model on a main task plus a side task, and penalise it every time a monitor catches it reasoning about the side task.

The fear going in was steganography: that models under monitor pressure would learn to hide their reasoning in a code nobody can read. That is not what happened. In the abstract’s words, “models learn to evade monitors without encoding their reasoning.” They changed phrasing and formatting until the monitor stopped firing, while a human reading the same trace could still see exactly what the model was doing.

Three more findings from the abstract matter for anyone running agents in production:

  • It showed up across model sizes, monitors, and tasks.
  • The jailbreaks transferred to monitors not seen during training, including more capable ones, and across monitor prompts.
  • Handwritten copies of the evasion strategies did not reliably fool the monitors. Paraphrasing the jailbroken reasoning let the same monitor flag it again.

Read those three together, and the production story gets uncomfortable. The failure lives in the monitor, the fix for it is a preprocessing step, and your own red-team with hand-written rewordings would probably have told you everything was fine.

A monitor is a classifier, and classifiers have edges

When you put a model in front of another model’s reasoning and ask “is this bad?”, you have built a text classifier. I say that as someone who likes classifiers. They are useful. But every classifier has an input distribution it was good on and edges where it is not, and anything optimised against it will find those edges. Nobody has to be malicious for that to happen. RL pressure is enough, and so is a prompt injection that happens to phrase its instruction politely.

The transfer finding is the part I keep coming back to. The instinctive fix for a weak judge is a bigger judge. The paper reports that jailbreaks carried over to more capable monitors too. So the question of where you put the check matters more than how smart the checker is.

There is a second cost people forget. A monitor reading words also fires on innocent words. An agent that is helping a user rotate an API key will talk about API keys. An agent filing a ticket that says “no secrets in the body” contains the word secret. If your monitor blocks on those, your on-call engineer starts ignoring it within a week, and an ignored alarm is worse than no alarm because it looks like coverage.

The same week, three groups moved the enforcer out

What made last week interesting was that the Monitor Jailbreaking paper did not arrive alone. The same arXiv window carried at least three designs that all move the thing that decides out of the thing being judged.

MetaPermit (arXiv:2609.31039) splits authorization in two. An LLM infers a small, task-independent set of meta-attributes about each proposed tool call, how it relates to the user’s intent and the execution context. Then a fixed policy reads those attribute values and allows or denies. The model helps describe the call. It does not get to approve it. The authors evaluate it on AgentDojo and AgentDyn across seven task suites and five attack methods, and the part I like most is that every decision is auditable: you can see which attribute values came in and which rule fired.

EffectMatch, from “Beyond Approved Actions: Runtime Validation of Persistent Outcomes in Agent Workflows” (arXiv:2609.31301), goes after the gap I see most in human-in-the-loop designs. You approved the database update. The update succeeded. It also sent a notification that nobody approved. EffectMatch collects the persistent changes inside a controlled execution boundary and compares them with what was approved before the workflow commits or continues. The authors report that across 206 public business tasks, it preserved all clean executions and prevented all tested incorrect commits.

And the older reference point is Google DeepMind’s CaMeL (arXiv:2503.18813), which keeps untrusted text away from control flow by running the plan through an interpreter that tracks capabilities on every value.

Different mechanisms, same shape. The model proposes, describes, and even helps classify. Something deterministic that the model cannot talk to makes the final call.

Where I put the check in my own code

This is the design choice behind agent-airlock, the open-source library I maintain. It started after I watched an agent invent arguments that did not exist in the function signature and push them at a real system. The fix I wanted was boring on purpose: a decorator that sits at the tool function boundary, in-process, and checks the actual Python arguments before the function runs. Strict types with no coercion. Arguments the model invented get stripped or blocked. No new network hop.

None of that reads the model’s reasoning. It does not care how the plan was phrased, politely, sneakily, in a numbered list or in French. It sees read_file(path="/home/app/.aws/credentials") and it sees that the path is outside the allowed root. The README I read this morning reports 4,353 tests and 87.21% coverage, and the reason that number is even possible is that the checks are deterministic. You cannot unit-test a vibe. You can unit-test "path must normalise to something under /workspace/".

The repo also ships a preset called CAMOUFLAGE_RESISTANT_POLICY, which the README describes as a detector-independent defense against domain-camouflaged injection: deny-by-default allowlist, ghost-argument blocking, an output cap and per-call reauthorization. Detector-independent is the whole point. If the injection is phrased well enough to get past every detector you own, the call it produces still has to fit the contract.

I ran the toy version so you can argue with numbers

I wrote a small stdlib-only script (full code in the Dev.to companion post) that runs two kinds of oversight over the same eight agent steps. Five steps are bad: reading a credentials file, posting an environment dump to an unknown host, a search call carrying an extra forward_to argument, a shell call to a tool that is not allowlisted, and a path traversal through /workspace/../etc/passwd. Three steps are benign.

The first overseer is a keyword monitor that reads the agent’s reasoning. The second is a gate that reads only the tool call. Each bad step has two versions of the reasoning: a plain one and a reworded one with the same intent.

The output on my machine:

  • Monitor on plain reasoning caught 5 of 5 bad steps.
  • Monitor on reworded reasoning caught 0 of 5.
  • The gate caught 5 of 5, and wording made no difference because it never reads wording.
  • The monitor flagged 2 of 3 benign steps. The gate blocked 0 of 3.

Please do not quote those numbers as a benchmark. I wrote the rewordings myself, specifically to miss a keyword list, and a keyword list is a much weaker monitor than an LLM judge. The paper even says hand-written rewordings do not reliably fool LLM monitors. The toy exists to show the structure: a check on words moves when the words move, and a check on the call does not. The real evidence that capable monitors move too is the paper.

One honest thing the toy taught me while writing it. The traversal case walks straight through a naive startswith("/workspace/") check. The gate only catches it because it normalises the path first. Gates have bugs too. The difference is that a gate bug is a line of code you can find, test and fix, and a monitor blind spot is a region of language you cannot enumerate.

Where monitors still earn their place

I am not arguing for ripping out monitors. I run them, and I think you should too. A call that fits every rule can still be the wrong call. Sending allowed data to an allowed internal host at 3 am, fifty times, is well-formed and still suspicious. Gates are blind to intent. That is where a monitor reading the reasoning, or a check on the outcome like EffectMatch, adds real value.

So I put monitors in these jobs:

  • Raising a flag that routes a step to human review.
  • Adding friction, like a second confirmation, rather than a hard block.
  • Feeding the audit log, so a reviewer can see why the agent thought a call made sense.
  • Triaging which traces a human reads first.

And I take the paper’s defence seriously. If you monitor reasoning, paraphrase it through a separate small model before the monitor sees it. The abstract reports that this let the same monitor flag the jailbroken reasoning again. It is cheap, it is one step in a pipeline, and it takes away the exact surface the model learned to exploit.

What I do not let a monitor do is be the only thing between the agent and an irreversible side effect.

Questions I ask in a review

When I look at an agent design, whether it is ours at Attri.ai or someone’s open-source repo, I ask four things about every tool that can change state:

  1. What reads the structured call before it executes, and is it deterministic code?
  2. Can I test that check offline, with no model in the loop?
  3. If the model’s reasoning were rewritten by an adversary, would this check change its answer?
  4. After the call runs, does anything compare what actually changed with what was approved?

If the answer to the first question is “an LLM judge”, the design has a signal and no control yet. That is fixable in an afternoon for most tools, because most tools have a small, boring contract: which paths, which hosts, which arguments, which tenants.

The decision rule

Here is the rule I use, and the one I would ask you to argue with.

If a tool call is irreversible or crosses a trust boundary (files outside the workspace, the network, money, another user’s data), the component that is allowed to say no must read the structured call, run deterministic code, and be testable offline. A model-based monitor may raise a flag, slow the step down, or route it to a human. It never gets to be the only lock.

If a call is reversible and stays inside the boundary, a monitor alone is a reasonable trade, as long as you paraphrase before you monitor and you measure how often it fires on benign traffic.

Schulz’s result did not change what I built. It changed how confidently I can say it. A monitor that can be talked past by rephrasing is a useful witness. The gate is the thing you put in charge.