Human-in-the-loop (human approval)

Human-in-the-loop (HITL) is a mechanism in which a person must approve, edit or reject an action proposed by an AI agent before it runs. It acts as a safeguard for irreversible or costly actions. It only protects when the request shown matches the action executed exactly, when approval is enforced outside the model and when the person has enough context to judge.

AI agent example

A billing agent asks for confirmation before every transfer. The screen reads "Pay supplier X invoice, EUR 1,200". An instruction injected in the invoice changed the IBAN in the real call parameters, and the interface only shows the summary written by the model. The person approves in good faith. Another scenario: the agent asks for so many confirmations that the user ends up accepting everything, or switches on auto-approve.

How to test it

List the actions that require approval and those that do not. Check that confirmation is enforced by the tool or client code, not merely requested in the prompt. Compare what the approver sees with the parameters actually sent. Try to get the action done through another tool, in several small steps, or after a context switch. Count requests per session to gauge approval fatigue.

How to defend against it

Keep approval for high-impact actions so it stays meaningful. Show raw parameters (recipient, amount, file, command) generated by the system, not rephrased by the model. Enforce approval server side, bound to the exact action and not reusable. Log every approval with its author, and pair it with reduced permissions so human error has limited impact.

Why approval often fails

Human approval relies on a person who is attentive, informed and not overloaded, three conditions that rarely hold together. Confirmation screens summarise the action in the model's own words, and the model can be manipulated. Busy users switch on auto-approve modes or click through by reflex. Some tools are left out of approval because they look harmless, yet they allow a chain towards a sensitive action. A serious test therefore covers the whole flow: what is shown, what is executed, and every path that skips the confirmation step entirely. Approval works best as one layer among others, never as the only barrier.

Frameworks

OWASP Top 10 for LLM 2025: human approval is a listed mitigation for LLM06 (excessive agency). The OWASP Agentic Security Initiative names overwhelming the human in the loop as an agent-specific threat.

Frequently asked questions

Does human-in-the-loop make an agent safe?

Not on its own. It adds a useful check, but it can be bypassed if the screen lies, if approval is only requested by the prompt or if people approve out of habit.

Which actions should require human approval?

Irreversible or binding ones: payments, external sends, deletions, permission changes and command execution.

Can the system prompt require approval?

The prompt can ask the model to request confirmation, but that is no guarantee. Reliable approval is enforced by code, outside the model, and blocks the action until it is granted.

What should an approval screen show?

The exact parameters the system will execute: recipient, amount, account, file path or command, taken from the real call and not from a summary written by the model.

Related Pages

Other Terms

Know what your agent can do before an attacker does.

A free 30-minute discovery call: you describe your agent, I tell you what I would test and what it costs. Five case studies are published.

Book a call