Assistants, identity and authority / Field essay 82

How to stop AI agents taking unsafe actions: let them suggest.

Why I limit AI agents to structured proposals and let narrow tools check scope, policy and live state before acting, with the traps and judgment calls along the way.

Published

ESSAY
FIELD ESSAY 82 / ASSISTANTS, IDENTITY AND AUTHORITY

How to stop AI agents taking unsafe actions: let them suggest

A question engineering leaders keep asking goes something like this: how does an agent decide which tool to call, how does it know when to stop, and how do we keep it from doing something it shouldn't? Usually the question comes with a hoped-for answer attached: a better prompt, a stronger model, a few more examples.

My answer is that the agent should not be deciding to act at all. It should suggest. The model turns fuzzy input into a structured proposal, and narrow, deterministic tools decide whether that proposal becomes an effect. This essay covers the reasoning behind that, the traps I look for, and the judgment calls that do not have a formula. The step-by-step build is in the companion piece, the model proposes, tools act. The wider topic is collected under agent safety and governance.

Why a stronger model does not settle it

A stronger model misreads less often. That is real, and I would still take it. But the failure that hurts is not how often the model misreads. It is that nothing between the model and the record checks the reading.

Consistency is the clearest way to see this. An agent that gets a task right 99% of the time gets 8 runs of it all right only about 92% of the time (0.99 to the 8th power). So about 8 in every 100 sequences of eight include a wrong action. At 90% per run the figure for eight clean runs drops to about 43%. A better model moves you along that curve. It never gets you off it. What gets you off it is a layer that refuses to act on a wrong proposal, whoever produced it.

There is a second reason. The model's input includes content you do not control: emails, documents, web pages. A better model is still a model reading text that someone else wrote. If that text can steer the model, and the model's output is the action, then the author of the text has a hand on your systems.

One request, traced

I find it easiest to reason about this with a single generic request: a customer asks to change the shipping address on their account.

Propose. The model reads the message and produces a proposal in a fixed schema: the intent, the new address fields, an exact quote of the evidence, and an "unsure" flag. The first thing I check in a design is where the account identity comes from. If the model is extracting the account from the message body, the design is already wrong. Identity comes from the authenticated session. The model's job is to say what is being asked, not who is asking.

I also check that the fields are nullable. A required field invites the model to fill it with something plausible. And I check that the evidence quote is verified by code against the new text of the message, not the quoted history underneath it, where an older request may sit.

Validate. The proposal goes to a tool called change_shipping_address, not to a general update tool. The tool checks, at execution time: does the requester have scope over this account, is the change allowed for this region and channel, which policy version applies now, has the record changed since the model read it, is the order still in a state where the address can change, is the request inside the allowed window, and has the daily cap been reached. Anything that does not answer cleanly is a refusal or an escalation.

When I review a tool, the question I keep asking is "what does this tool know that the model does not?" If the answer is nothing, the tool is a pass-through.

Act. The write happens with an idempotency key derived from the request, the account and the change. The confirmation goes out through an outbox that commits with the write. The previous value is stored for one-step undo.

Confirm. Afterwards, something other than the agent checks the end state: the record shows the new address, exactly once, and exactly one notification went out. The agent's own "done" is not evidence. I have written separately about why agents cannot grade their own work.

The traps I look for

The generic tool. A tool that accepts arbitrary fields moves all the decisions back into the model. The fix is boring: one tool per kind of change, each with its own checks. Narrow tools also make the broker simpler, a point I go into in build the tool broker around the authority that survives alternate paths.

Rules in the prompt. "Never change an address after shipment" in a system prompt is a request, not a control. It cannot be tested on its own, and it is exactly the kind of text an injected instruction tries to override. If a rule matters, it is a check in the tool.

Retry on timeout. The riskiest moment in an agent's run is a timeout right after a write. The tool may have acted. Retrying, or reaching for a different tool that achieves the same thing, can double the effect. My rule is that an unknown effect never authorizes a second action. The agent tells the user the request is in progress and the case goes to a person or a reconciliation job. I treat this in depth in unknown is an outcome and in the agent timed out after the change went through.

Confidence as authority. A confident proposal is still a proposal. Model confidence can help route work to a person; it should never be what lets a tool skip a check.

Authority that outlives the turn. If an agent holds a broad credential for the whole session, every turn inherits everything. I prefer authority scoped to the request, which is the argument in give each agent turn its own authority.

The judgment calls

Some of this is mechanical. Some of it is judgment, and I would rather say so than pretend there is a formula.

What goes on the never-automate list. I ask what a wrong action does next, and whether undo really reverses it. An address change can be undone before shipment. A sent email cannot be unsent. A change to bank details can redirect something before anyone notices. Intents where undo is partial or illusory go on the list, and the model's only allowed proposal for them is a hand-off task.

Which leg to break. I check every agent for three legs: private data, untrusted content and a way out. An intake agent usually needs the first two, because reading customer messages and touching customer records is the job. So I nearly always break the way out: templated notifications to the address on file, no open-ended outbound messages, no fetching URLs found in a message.

What to do when tools escalate too much. A noisy escalation queue tempts people to loosen the checks. I resist that. If proposals keep failing the live-state check, the problem is usually stale data reaching the model or a proposal shape that drops something the tool needs. Fix the input, not the gate.

When to remove review. I want evidence sized to the claim. Zero failures in 189 end-state checks supports at least 98% success; 381 supports 99%. Below that, the action stays reviewed. A good demo week is not a sample size.

Workflow or agent. If I can write the steps down, I run a fixed workflow and use the model only to interpret the input. Autonomy is earned one request type at a time, and the proposal-and-check pattern is what lets you extend it without betting the record on each step.

Questions people ask

Should an AI agent ever act directly on model output? Not for anything that changes a record or reaches a customer. The model should produce a structured proposal, and a narrow tool should decide whether it runs after checking scope, policy, live state and limits.

Where should the rules for an agent live? In the tools, as checks that run at execution time and can be tested and versioned. A rule written only in the prompt is a request the model may not follow, and it is the text an injected instruction tries to override.

What should an agent do when it does not know whether an action happened? Treat unknown as an outcome. Tell the user the request is in progress, route the case to a person or a reconciliation job, and never let the unknown effect authorize a retry or an alternate action.

How much testing does an agent action need before it runs unreviewed? Size it to the bar. Zero failures in 73, 189 or 381 end-state checks supports at least 95%, 98% or 99% success. Below those counts, keep a person in the loop for that action.

If you are working out where your agents' authority should stop, connect with me on LinkedIn to compare notes and discuss.

CONNECTED READINGForward and back
Keep reading

The answer deserves
another experiment.

Back to the journal