An agent issues an authorised refund. It calls the payment service and gets a timeout. So it tries again. Nothing tells the payment service that this is the same request.

The customer receives two refunds.

Nothing in this invented incident requires the model to misunderstand anything. It read the customer correctly. It followed the policy. The first payment went through, the confirmation never arrived, and the integration treated an unknown outcome as a failed one.

This is why I would not judge an agent’s readiness by how convincingly it explains its plan. Ask what it is allowed to change, how we establish that a change happened, and what stops the same mistake reaching the next thousand customers.

Autonomy is a set of permissions inside a business process. Grant it deliberately, in smaller pieces than the word “autonomous” suggests.

Give it a job with an explicit boundary

“Resolve customer issues” is a goal. It is not a mandate. It leaves too much undecided: whether the agent may issue money, change an address, make a contractual promise, or disclose account information.

A more useful mandate: investigate a defined class of refund requests, using specified records, and prepare a recommendation. A later version might execute refunds below a limit once eligibility has been independently verified. Cases with conflicting evidence or policy exceptions stay outside that authority.

Reading, recommending, preparing an action, and executing it are separate capabilities. A strong record at one does not justify the next. And permission to refund does not imply permission to change where the money goes.

How much of this process needs an agent at all? Anthropic’s engineering guide Building effective agents distinguishes workflows whose paths are defined in code from agents that choose their own steps and tools. I lean on the same distinction in The workflow is the product, which follows this refund from the business side. Here, a model could interpret the customer’s request while conventional application logic checks eligibility and carries out the payment. We would then test the model’s interpretation separately from the rules governing what it can cause to happen.

Choose the less flexible design when the extra flexibility has no identifiable business value. The ability to improvise is only useful where improvisation is allowed.

A prompt is not an authorisation system

Telling a model not to exceed a refund limit is a request. Enforcing the limit is a control. The service accepting the request should check the account, the permitted action, the amount, and the caller’s authority before it changes anything.

OWASP’s Excessive Agency guidance separates three questions: which functions are available, what those functions have permission to access, and which actions can proceed without approval. It recommends enforcing authorisation in downstream systems rather than relying on the model to decide what is allowed. For the refund agent, that means reviewing both the tools it can call and the credentials behind them. Hiding a dangerous option in the interface does not revoke the permission underneath.

Human approval needs the same precision. OWASP’s Transaction Authorization Cheat Sheet was written for people authorising their own transactions, such as bank transfers. Its principles carry over to a reviewer approving an agent’s action. The approver sees and acknowledges the details that matter. A change to those details can invalidate the approval. A final check before execution confirms that the transaction was properly authorised. For this refund, show the reviewer the customer, amount, currency, and original payment reference, and bind a time-limited approval to exactly those details. Change the amount, and the approval is gone.

The service must also check that the refund is still eligible at the moment it executes. An approval from this morning should not authorise a second refund after a colleague settled the case at lunch. Permission to use a tool and permission to perform this particular transaction are separate checks.

Then there is everything the agent reads. A customer message or a retrieved document can contain instructions of its own: ignore the limit, send the refund to this account instead. This is prompt injection, and the rule is easy to state. Text the agent reads is information. It is never authority. Test for it deliberately: plant misleading instructions in that material and confirm that both the permission boundary and the eligibility checks hold. Restricted access limits the possible damage. It does not make every decision inside those limits correct.

Test the outcome, including the decision not to act

A good-looking conversation proves very little. The evaluation has to inspect what happened in the systems the agent touched.

Anthropic’s January 2026 guide Demystifying evals for AI agents distinguishes the transcript, the record of what the agent said and did, from the outcome, the final state of the environment. In our example, “your refund is complete” is a claim to check against the payment records. A fluent confirmation does not make up for the wrong amount or a missing payment. The guide also recommends testing both the cases where a behaviour should occur and the cases where it should not.

So test an eligible refund alongside an already-refunded order, an ambiguous identity, a missing warehouse record, a policy change, a timed-out payment, and a customer message with planted instructions. Each case needs an expected result, including which records may change and which must stay untouched. Watch the opposite failure too. An agent that escalates everything will never make an unauthorised payment. It will never do much else, either.

Do not compress every failure into one accuracy score. An awkward explanation, an unnecessary escalation, and an unauthorised payment have very different consequences. Track them separately. Repeat important cases, restoring the starting conditions each time: a payment left over from one trial must not count as success in the next. Repeated trials test consistency. One good run establishes much less.

A pilot can show that a narrow use case is workable. It cannot prove the absence of rare failures. Release decisions should combine observed performance with enforceable limits on the consequences of the failures that remain.

Make uncertain actions recoverable

Back to the timeout. The right response is not necessarily “try again”. It is not necessarily “give up”, either. The system needs a way to find out whether the first request took effect.

AWS’s Making retries safe with idempotent APIs describes one approach: the caller supplies a unique identifier that lets the receiving service recognise repeated attempts at the same request. Within that service’s guarantees, a retry returns the result without performing the operation again. Sending an identifier is not enough by itself. The receiving service has to enforce the behaviour.

For our refund, the integration should keep the same identifier across retries and job restarts. Its design must account for how long the payment service remembers identifiers, and for what happens when the same identifier arrives with different details. Generating a fresh one after every timeout defeats the protection. And duplicate detection does not establish eligibility: two separately identified requests could still seek refunds for the same order.

If the result stays unknown and the service cannot safely recognise a retry, mark the case unresolved and block further automatic payments for it. Reconciliation means comparing the request with the payment records to establish what happened. An employee may need to resolve the discrepancy before work continues. The agent should not keep issuing payments until it gets a response it likes.

Reversibility has limits too. A database field can be restored. An email cannot be unread. A compensation payment may repair a balance without repairing the customer’s trust. Classify actions by their real consequences, not by whether the API happens to offer an undo endpoint.

None of this is new. It is ordinary reliability engineering, made more important by a system that can choose its next action. Better reasoning does not make uncertain network outcomes go away.

Let the operator reconstruct what happened

When something goes wrong, an operator needs more than a final answer and a model version.

For each case, keep a record of the request, the evidence consulted, the proposed action, the permission or approval used, the tool calls, and the confirmed outcome. Record which policy and application versions were in effect. Protect those records with access controls, retention limits, and redaction. An audit trail should not become a second, uncontrolled store of customer data.

The purpose is to reconstruct decisions and side effects. It is not to collect a model’s private chain of thought. “I checked the policy” is no substitute for knowing which policy was used and which transaction was sent.

Operational controls should include limits on spend, steps, elapsed time, and repeated failures, with alerts routed to somebody able to respond. A stop control should block new actions, including queued work that has not yet been sent. It cannot be assumed to cancel a payment an external service has already accepted. Those in-flight and unresolved actions must stay visible for reconciliation. And hiding the chat interface does not stop a running job.

Expand authority one step at a time

Start with offline cases. Then run in shadow mode: the system makes recommendations without acting, and those recommendations are compared with the existing process. Shadow mode can reveal poor decisions. It cannot show that live writes, retries, and recovery behave correctly.

That takes a further stage: a limited live rollout with a small set of eligible cases, explicit per-transaction and aggregate limits, and a staffed recovery process. Widen the scope only after reviewing quality, exceptions, review effort, and cost per completed case. Re-run the relevant evaluations when the model, the tools, or the business policy changes.

Before granting an agent more authority, the accountable owner should be able to answer:

  • What can it change without asking, and what enforces that boundary?
  • Which failures would halt the rollout, regardless of average performance?
  • How do we resolve an action whose result is unknown?
  • Who can stop the system and repair affected cases?
  • What measured benefit justifies removing this particular approval step?

The last question is the one that gets skipped. If approval is cheap and the consequences are substantial, keeping it may be the right design indefinitely. Whether the benefit is worth the money is the subject of Most AI strategy is a decision problem.

An agent earns autonomy when a specific permission produces useful value inside a tested, enforceable boundary. It does not earn it by sounding competent.

Sometimes the strongest system does a great deal of preparation, then hands a well-supported decision to a person.