What is human-in-the-loop approval for AI agents?
Human-in-the-loop approval pauses an AI agent before a sensitive action. A person or a policy then approves or rejects it. The action does not run until that decision is made.
The agent can still decide that an action is needed. The approval decides whether it happens. This is the difference between an agent that proposes and an agent that acts.
Does the platform already provide approval?
Only in part. The Model Context Protocol (MCP) specification, version 2025-06-18, says there SHOULD always be a human in the loop with the ability to deny tool invocations. That is recommended wording, not mandatory wording.
The same specification states that tools are designed to be model-controlled. It also says the protocol itself does not mandate any specific user interaction model. Approval gates are therefore an implementation choice.
The MCP specification adds that clients SHOULD:
- prompt for confirmation on sensitive operations
- show tool inputs to the user before calling the server
- log tool usage for audit purposes
An organisation that assumes the platform supplies approval will find the gap in production. Skelna treats the gate as part of the design of every agent that takes actions. The Skelna article on AI governance for agents covers the wider control model.
Where should the approval gate sit?
The gate belongs at the tool-call boundary. It should sit next to the tool that creates the side effect, not in the prompt and not only at agent level.
OpenAI's Agents SDK documentation gives the same guidance. It says validation belongs next to the tool with side effects, rather than relying only on agent-level input or output guardrails in a manager-style workflow. It also separates two controls:
| Control | What it does | Best used for |
|---|---|---|
| Guardrail | Validates input, output or tool behaviour automatically | Checks a rule can decide without a person |
| Human review | Pauses the run so a person or policy approves or rejects | Side effects such as cancellations, edits, shell commands or sensitive MCP actions |
A prompt instruction such as "ask before deleting" is advice to a model. A gate at the tool call is enforced by the system. Only the second holds up in an audit.
Which actions need approval and which can run automatically?
Gate by consequence. Actions that change records, move money, send messages outside the organisation or cannot be reversed need approval. Reads and low-impact steps can run automatically.
The pattern below shows how risk maps to a gate. It is a design starting point, not a fixed rule.
| Risk level | Example action | Suggested gate |
|---|---|---|
| Low | Read a record, search a knowledge base | Automatic, with logging |
| Medium | Draft an email or update a non-critical field | Automatic with sampling, or conditional approval |
| High | Post a ledger entry, approve a claim, cancel an order | Approval on every call |
| Critical | Delete data, change access rights | Approval by a named role, with a stop control |
Do not rely on a tool's own label to skip review. The MCP specification says clients MUST consider tool annotations untrusted unless they come from trusted servers. A read-only hint should not by itself remove approval.
How do approval patterns differ?
Approval is not one switch. LangChain's human-in-the-loop documentation shows several patterns that suit different risk levels.
Its middleware checks each tool call against a configurable policy. When intervention is needed, it issues an interrupt that halts execution. Reviewers can then give one of four decisions:
| Decision | Effect | When to allow it |
|---|---|---|
| Approve | Runs with the original arguments | Routine high-risk actions |
| Edit | Changes arguments before execution | Small corrections by a trained reviewer |
| Reject | Skips the call and returns feedback to the agent | Any denial of a side-effecting action |
| Respond | Answers in place of the tool | Ask-the-user style tools only |
The documentation also separates two interrupt modes. In batched mode, the default, there is one interrupt per model turn. In per_call mode there is one interrupt per gated call. The documentation recommends per_call for new agents and says it is planned to become the default in the next major release.
A conditional gate is also possible. A "when" predicate can gate on arguments, so only certain calls are reviewed. An example is a database tool that asks for approval only on statements that are not read queries.
What goes wrong with approval gates?
Most failures come from small design details. LangChain's documentation names several.
- Using respond to deny an action. The documentation warns that a respond message is treated as a successful tool result. Use reject to deny side-effecting tools.
- Heavy edits to arguments. The documentation advises editing conservatively, because significant modifications may cause the model to re-evaluate and execute the tool multiple times.
- Unstable conditions. A conditional predicate must return the same result on resume. Otherwise a reviewer's reject can be ignored.
- No persistence. Graph state must be saved with a checkpointer so a run can pause and resume later. The documentation says to use a persistent checkpointer in production and InMemorySaver only for testing or prototyping.
A fifth failure is human. Reviewers who approve every request without reading it add delay and no control. The remedy is to show the inputs, keep the volume of approvals manageable and gate only what carries real risk.
Does the EU AI Act require human approval for AI agents?
Not as a general rule. Article 14 of Regulation (EU) 2024/1689 requires human oversight for high-risk AI systems. Whether a given agent workflow is in scope depends on its classification under Annex III.
According to the EU AI Act text on Article 14 (2024), high-risk systems shall be designed so natural persons can effectively oversee them while in use, with appropriate human-machine interface tools. Oversight measures are to be commensurate with the risks, level of autonomy and context of use. Overseers must be able to stay aware of automation bias, to disregard, override or reverse an output, and to interrupt the system through a stop control that brings it to a halt in a safe state.
These are useful design prompts even outside the Act. The timing of the obligations is under discussion, and organisations should check the Official Journal before relying on any date. This article explains design practice. It is not legal advice.
For the wider governance picture, see AI agent controls: kill switches and audit trails.
What should an approval record contain?
An approval record should let an auditor rebuild the decision. The MCP specification asks clients to log tool usage for audit purposes. A practical record adds the following:
- the tool and the arguments the agent proposed
- the decision: approve, edit, reject or respond
- the arguments after any edit
- the reviewer's identity and role
- the time of the request and the time of the decision
These fields are a design recommendation. They are not drawn from a standard.
What should be measured?
Measure the gate itself, not only the agent. The baselines below come from the workflow before the gate is added.
| Measure | Baseline | How to collect it |
|---|---|---|
| Share of gated calls approved unchanged | None until the gate runs | Decision log |
| Time from request to decision | Current manual handling time | Timestamps in the record |
| Rejections and edits | None until the gate runs | Decision log, reviewed monthly |
| Paused runs that failed to resume | Zero expected | Run and checkpoint logs |
A very high unchanged approval rate can mean the gate is too broad or reviewers are not reading. A very low rate can mean the agent needs redesign.
How Skelna approaches it
Skelna designs approval into every agent that acts inside core systems. Skelna sets the gate at the tool call, chooses the pattern by risk, defines who decides and keeps the record the audit needs. Skelna then runs the workflow after go-live and reviews the decision data. The work sits within Skelna's cloud, security and governance practice, and the related service is AI governance and control.