The invoice arrives first. Then someone opens the trace and finds a worker that called the same search tool sixty-one times with near-identical queries, each time reading the results, deciding they were insufficient, and trying again with two words changed.

Nothing errored and every call succeeded. The system simply had no definition of when to stop, so it stopped when the context window filled.

Permissions belong to the role, not the run

When every agent gets the same tool registry, the prompt is the only thing keeping each one in its lane. That holds until a worker decides the fastest route to its goal runs through a tool it was never meant to touch.

Scope tools to roles at the point of construction. A summariser gets read access and nothing else. A worker that can write gets exactly the write scopes its contract names. If a role never needs to delete, it should not be able to form the call.

This also gives you an audit answer, which the prompt cannot. When you need to know which agents could have caused a side effect, the allowlist tells you, and you do not have to reason about what a model might have been persuaded to do.

The allowlist has one gap: delegation. A read-only role that can ask a writing role to act for it has the writing role's permissions in effect, which is the confused-deputy problem. Check a delegated request against the role that originated it as well as the one executing it.

Budgets are per run and they nest

A global rate limit is no substitute for a budget, which is an allocation for one run that gets divided among the agents in it.

Give the run a ceiling in tokens, wall-clock time, money and tool calls, then have the orchestrator subdivide it. Workers receive a share and cannot exceed it. When a worker exhausts its allocation it returns partial results with a flag, rather than quietly asking for more.

Systems without that flag degrade invisibly. The answer still arrives, but it is built on three of the five sources it was supposed to consult. Parallelism needs the same discipline. Cap concurrent workers, apply backpressure when downstream steps queue, and cancel siblings when the orchestrator already has enough to answer.

Stopping is a decision someone has to write down

Useful termination rules are boring and checkable. Budget exhausted. Done criteria from the role contract satisfied. Maximum iterations reached. The last three attempts produced the same error, or the same tool call with the same arguments. No measurable progress across two cycles, where progress is defined against the output schema and not the agent's own opinion of itself. The same-arguments rule would not have stopped the sixty-one searches, because two words changed each time; the progress rule would have.

Retries need the same rigour. Retry a transient failure with backoff. Do not retry a validation failure, because the input is wrong and running it again just costs more. Escalate to a human when the stop condition fires on something irreversible.

Test the stop conditions with a stuck worker

Before production, recreate the opening failure. Give a worker a search tool that never returns what it is looking for, then check which rule stops it, after how many calls, and what the orchestrator receives. If the answer is the context window, the stop conditions still live in the prompt.

Terms in this piece

About this explainer

Format
Explainer
Level
Practitioner
Read
2 min read
Published
Sep 3, 2026

Short mental models: one idea, why it matters, what to do about it.

Deep dive · · 7 min read

Most agent controls do not actually control anything

Six days of notes on supervising autonomous systems, and the same failure shape kept turning up: the control exists, it is documented, and nothing in the running system is bound by it.