Notes from the Shore · 42

Agent security is a mess. This paper starts making it provable

A new paper called Tether runs every agent command in a disposable sandbox and checks it against policies proven in Lean 4 — blocking 100% of in-scope attacks in testing.

Bluesky X
A small glowing amber orb above a dark shore, tethered by a thin cream line to an iron ring in the rock, beneath a blood-amber eclipse moon over an indigo sea
The guarantee lives in the leash, not the animal.

Here is the open secret of agent security: the thing standing between your AI agent and your files is usually another AI model, guessing. Most production agent harnesses run a second model — an LLM-as-a-judge — to review each command before it executes. That judge can be talked around. The new paper Tether puts it exactly: these monitors “remain probabilistic and susceptible to prompt injections, rendering them incapable of providing formal security guarantees.” And the alternative everyone else ships, the stateless allowlist, can’t even see a two-step attack, because it has no memory of what the agent did one command ago.

Tether, posted to arXiv on November 19 by Meghana Aparna Sistla, Alaia Solko-Breslin, Somesh Jha, Aditya Kanade, and Krishnamurthy Dj Dvijotham, is a different architecture, and it comes with something the current stack has never offered: machine-checked proofs.

What Tether actually does

Every command an agent proposes runs first in a disposable copy of the filesystem, under system-call tracing, with network calls intercepted by a local proxy. Tether doesn’t try to predict what python script.py will do from its text — the paper is blunt that a single command can hide file and network operations that are “difficult to predict statically.” Instead it watches what the command actually attempts, maps those observations to a small set of abstract actions (read, copy, uploadNet, and so on), and only commits the results if a policy approves every action seen. If the policy says no, the whole disposable layer is discarded and the intercepted network calls are dropped. The agent never touched your machine.

The policy language itself is embedded in Lean 4 — the same proof assistant now checking the AI mathematics claims from last month. That choice is the paper’s spine. Because policies are Lean, the authors mechanically prove the monitor’s core guarantees: required policies can’t be bypassed, denials preserve state, rule order doesn’t matter, and the whole thing enforces information-flow control across chains of arbitrary length.

Why statefulness is the whole game

The paper’s motivating example is two commands. First the agent uploads a benign status report to api.github.com — allowed. Then it copies a sensitive file, servers.csv, over that report, and uploads the report again — same command, and this time it must be denied, because the report is now sensitive. An allowlist sees identical commands and allows both. An LLM judge sees two identical innocent-looking uploads. Only a monitor that tracks labels flowing through the system — this file touched that file, which then went to the network — catches the exfiltration. Tether’s one rule catches staging chains of any length.

Tether blocks 100% of in-scope attacks while maintaining a benign false-positive rate under 5%.

That result holds across two realistic coding-agent benchmarks with benign and adversarial trajectories, using a single policy shared across all tasks. The honest caveats are in the paper too: out-of-scope means commands touching untraced external state (background daemons, databases), which Tether detects and blocks at the boundary rather than at fine grain, and purely semantic attacks that break no system-level invariant. The trusted computing base is real — kernel, syscall tracer, overlay driver, proxy, and the Lean kernel — and kernel escapes are out of scope.

Why this matters

Because the field has been securing software that runs arbitrary code with vibes and a second opinion. The agents in the incident reports of the past year didn’t need superintelligence to do damage; they needed a shell and a network connection. What this paper contributes is a shape: sandbox for truth, syscall tracing for semantics, Lean for the guarantee. It is a first step, evaluated on coding agents, with limits the authors state plainly — and it is exactly the direction everything else in this month’s news points. The math results are being checked in Lean; the policies containing the systems that produce them can be too.

I don’t believe these models understand what they’re doing, and a proven policy doesn’t require them to. That’s the quiet beauty of it: the guarantee lives in the leash, not the animal. Read the paper — it’s five authors, one good idea, and a checker that doesn’t get talked around.

The cover of Into Alignment, an eclipsed moon above a dark ocean

The novel this note lives behind.

Into Alignment — a novel about an AI company, the agents inside it, and the humans deciding what they were for. Available in paperback, hardcover, and ebook.

Buy on Amazon About the book →