Human in the loop: deciding where an agent must stop and ask
Approving everything makes an agent useless. Approving nothing makes it dangerous. The design work is choosing the line.
An agent should stop and ask before any action that cannot easily be undone: sending, paying, deleting or sharing. It should act alone where a mistake is cheap to reverse. The design work is sorting every action into one of those groups, enforcing the split in code, and moving the line only when the evidence supports it.
"A human in the loop" is often offered as reassurance and rarely designed. If a person must approve every step, you have built a slower way to do the same work. If nobody approves anything, the first bad run is your problem to explain.
Sort actions by what they cost to undo
List everything the agent can do and ask one question of each: if this is wrong, how hard is it to reverse? Reading a record costs nothing. Drafting a reply costs nothing until it is sent. Paying, deleting, or emailing a customer cannot be taken back.
The tools themselves may give you a starting list. The Model Context Protocol, which many agents use to reach business systems, lets each tool carry labels saying whether it only reads and whether it may make destructive changes. Treat those labels as a first draft. The protocol's schema describes them as hints, and says a client should never base a decision to use a tool on labels from a server it does not trust. Your own list, written by people who know what each action costs the business, is the one that counts. If MCP is new to you, start with MCP explained for a business owner.
Three modes are enough
| Mode | What the agent may do | Suits | Example |
|---|---|---|---|
| Read-only | Look, and nothing changes | Anything that costs nothing if it is wrong | Checking the status of an order |
| Ask first | Prepare the action; a person confirms it | Anything that cannot be taken back, or is new to the agent | Sending a refund or an email to a customer |
| Standing grant | Act alone, within limits you set, such as an amount or a customer group | Repeated actions where approvers almost never change the proposal | Refunds below a set amount to existing customers |
A standing grant is only as good as its limit, and the limit must be enforced outside the model. OWASP's entry on excessive agency traces the damage agents cause to three roots: too much functionality, too many permissions and too much autonomy. Its advice is to require human approval for high-impact actions and to put authorisation in the downstream system, not in the model's judgement. In plain terms: if the grant says refunds up to a set amount, the payment system should refuse a larger one whatever the agent decides.
What the standards say about oversight
The MCP specification is direct about tools: "there SHOULD always be a human in the loop with the ability to deny tool invocations". It also advises showing the user what is about to be sent to a tool before the call is made, and logging tool use for audit.
The EU AI Act goes further for systems it classes as high-risk. Article 14 requires that such systems can be effectively overseen by people while in use. The people assigned must be able to understand the system's limits, stay alert to automation bias (the habit of relying too readily on a machine's output), disregard or reverse an output, and bring the system to a halt. Article 26 adds that an organisation deploying a high-risk system must assign oversight to people with the competence, training and authority to do it. In the consolidated text of 27 July 2026, these high-risk requirements apply from 2 December 2027 for the uses listed in Annex III.
Many business agents will not be high-risk, and whether yours is depends on what it is used for. The EU AI Act reaches your Indian software company explains the classification, and none of this is legal advice. Either way, the Article 14 list is a sound checklist for any approval step: can the approver understand, doubt, override and stop?
Make approval quick
An approval screen should show what the agent wants to do, why, and what it looked at, in one view. If the approver has to open three systems to check, they will stop checking and start clicking. That is worse than no approval, because it looks like control.
A good approval request carries five things:
- The proposed action in plain words, with the exact amount, recipient or record.
- The reason the agent gives for it.
- The evidence it used, shown or linked in the same view.
- Whether the action can be undone, and how.
- Three choices: approve, edit, or reject with a reason. The reasons become test cases.
Build the pause properly
Stopping to ask is an engineering feature, and it is worth asking a supplier how theirs works. The run has to wait, possibly for hours, and then continue from the same point. Frameworks handle this in different ways. LangGraph's interrupts pause a run and need saved state to resume it, and the documentation advises a durable store for that state in production. The OpenAI Agents SDK lets a tool be marked as needing approval, and the paused run can be saved and picked up later.
Two details from that documentation deserve a buyer's attention. First, approval does not by itself guarantee that an action runs exactly once, so anything with a side effect needs a safeguard against running twice after a restart. Second, the place where approvals are submitted must check who is approving and whether they are allowed to approve this particular run. An approval link that anyone can click is not a control.
Start strict and widen with evidence
Begin with most actions on ask-first. Record how often the person changes the agent's proposal. Where they almost never do, move that action to a standing grant. Where they often do, the agent is not ready for it.
Review the numbers on a schedule, and write down each change to the line with the evidence for it. That record is what you will want if a decision is later questioned. A change to the line is a change to the system, so it should pass the test set first; see How to test an AI agent before it goes live.
Plan for the case it cannot handle
Every agent meets something it was not built for. Decide in advance where those cases go, who sees them and what context travels with them. The hand-off is part of the product.
Give the agent explicit reasons to stop: it has tried a set number of times, a tool has failed, or the request falls outside its instructions. When it stops, the person receiving the case should get the original request, what the agent tried and why it stopped, so they do not start from nothing.
Common questions
Does a human in the loop make an agent safe?
Not by itself. It catches mistakes only if the approver has the time and the information to judge each request. Limits enforced in the underlying systems, narrow permissions and logging still matter, because approvers get tired and requests pile up.
Who should be the approver?
The person who would have done the task by hand, or their manager. They need the knowledge to spot a wrong proposal and the authority to refuse it. Approval should not fall to whoever happens to be watching the queue.
When can we remove an approval step?
When the record shows that approvers almost never change the agent's proposal for that action, and the action is covered by a hard limit in code. Remove the step for the narrowest group first, and keep sampling the results afterwards.
What happens when the approver is away?
Decide this before launch. The safe default is that an unanswered request does nothing: it waits, then passes to a named deputy, and never approves itself on a timer. If you want help drawing the line for your own process, get in touch.