Skip to content
atlas

Human-in-the-loop (HITL)

Also known as: HITL

Designing an AI system so a person must check or approve its work at key points before it takes effect.

Draft - this entry has not been reviewed yet.

Formal

A design in which chosen steps of an automated process pause for a human decision - approving, editing or rejecting a proposed action or output - so that the system cannot finish those steps on its own.

In plain English

Like a bank that needs a second signature for large payments - the clerk prepares everything, but the money only moves once a manager signs.

In practice

At a regional hospital, an AI agent drafts replies to patients' messages about appointments, but nothing is sent until a medical secretary has read the draft and clicked “approve”, or edited or rejected it.

Why it matters

It keeps a person responsible for actions that are costly or hard to undo, though if approvals come too often people start clicking yes without reading.

How to put it into practice

The usual steps, in order. Adapt them to your organisation.

  1. List every action the AI system or agent can take and sort them by risk, for example reading data runs on its own, medium-risk actions are logged for later review, and actions that are costly, irreversible or affect people's rights wait for approval.
  2. Name who approves each gated action and make sure they have the competence, training and authority to say no, as AI Act Art. 26(2) requires for high-risk systems.
  3. Show the approver the exact action with its parameters and the sources behind it, such as the full email, SQL statement, code diff or payment, instead of a summary written by the same model.
  4. Make rejecting and editing as easy as approving, reject by default when a request times out, and give overseers a stop button that halts the system (Art. 14(4)).
  5. Build the pause into the agent, so it saves its state at the gated tool call, places it in an approval queue and resumes only with the human decision.
  6. Log who approved, edited or rejected what and when, and keep the logs, for high-risk systems at least six months as deployer (Art. 26(6)).
  7. Where AI supports decisions about citizens or customers, check whether GDPR Art. 22 applies, and make sure the human reviewer actually assesses the case and can reach a different result, so the review is not a token one.
  8. Every quarter, look at approval rates, time spent per approval and caught errors, and move gates up or down if people are rubber-stamping or drowning in requests.

Common pitfalls

  • Asking for approval on everything, so approval fatigue sets in and the approval rate drifts towards 100% without anyone reading.
  • Showing the approver a friendly summary from the model rather than the actual action, so a prompt-injected payload is never seen.
  • Treating a human click as enough to take a decision outside GDPR Art. 22, when the person has neither the time, the information nor the authority to disagree.

Good guides

Technical deep dive

The literature distinguishes three configurations. Human-in-the-loop means the system cannot complete a gated step without an affirmative human decision; human-on-the-loop means the system acts autonomously while a person monitors and can intervene or halt it; human-out-of-the-loop means no real-time oversight at all. The labels apply to individual steps rather than whole systems: a single agent may run read-only tools autonomously, log medium-risk actions for later review, and block on approval for irreversible ones.

In EU law the anchor is Article 14 of the AI Act (Regulation (EU) 2024/1689). High-risk systems must be designed so natural persons can oversee them effectively; Art. 14(4) lists what overseers must be enabled to do: understand the system's capacities and limitations and monitor it, remain aware of automation bias, correctly interpret output, decide not to use or to disregard, override or reverse output, and intervene or interrupt via a stop procedure. Art. 14(5) adds a two-person rule for remote biometric identification listed in Annex III point 1(a). Deployers must assign oversight to people with the necessary competence, training and authority (Art. 26(2)). After the AI Omnibus amendment entered into force on 27 July 2026, these obligations apply to Annex III high-risk systems from 2 December 2027 and to Annex I product-embedded systems from 2 August 2028. Separately, GDPR Art. 22 restricts decisions based solely on automated processing with legal or similarly significant effects, and Art. 22(3) gives a right to obtain human intervention; the Article 29 Working Party guidelines (WP251rev.01) treat token human involvement as insufficient to take a decision outside Art. 22, and the CJEU held in SCHUFA (C-634/21, 2023) that an automated score can itself be such a decision when a third party draws strongly on it.

The central failure mode is rubber-stamping. Automation bias and approval fatigue mean reviewers who approve hundreds of routine requests stop reading them, so the approval rate trends to 100% and the control becomes theatre. Effective designs gate by risk rather than by default, show the concrete proposed action (the exact email, SQL statement, diff or payment with its parameters and the sources that led to it) instead of a summary written by the same model, make rejection and editing as easy as approval, default to deny on timeout, and log who approved what for audit.

For agents, implementation requires pausing mid-trajectory: the orchestrator persists state at the gated tool call, surfaces it in an approval queue, and resumes with the human's decision injected as the tool result. Note the limits. HITL does not prevent prompt injection; it gives a human a chance to notice its effects, which only works if the malicious action is visible in what is shown. It also adds latency and cost, so it complements sandboxing and least privilege rather than replacing them.

Relationships

Mandated by
EU AI Act

Sources & further reading

Standards & official texts

  • Regulation (EU) 2024/1689 (Artificial Intelligence Act), Article 14 - Human oversight · European Union
  • NIST AI 100-1 - Artificial Intelligence Risk Management Framework (AI RMF 1.0) · NIST

Official documentation

Reference works

  • OWASP Top 10 for LLM Applications 2025 (LLM06 Excessive Agency) · OWASP

Where this data comes from

This entry was drafted by an AI from the sources above and has not yet been checked by a person. Treat it as a starting point, and check anything important against the sources.

See the review queueSuggest a correction on GitHubThis term as JSON

Check yourself

Loading…

Atlas is in beta.