Last reviewed: 2026-10
HITL is a risk-control policy
Human-in-the-Loop does not mean “hand everything to a person whenever the model cannot do it.” It means having the system actively request confirmation, correction, or takeover when risk is high, evidence is insufficient, the task is novel, or the action cannot be undone.
First, a scenario that needs escalation to a human
Asking a model to “write an email for me” and to “send this email for me directly” look very similar, but the risk is completely different.
- Writing a draft: a mistake can still be fixed, so it can usually be done automatically.
- Sending the email: it affects a real relationship, so it is best to have the user confirm first.
- Sending in bulk to customers: the impact is larger and may require additional permissions and expert review.
The key to HITL is not asking a human whenever model confidence is low. It is looking at the probability of error, the size of the impact, and whether the action is reversible, all together.
What roles can a human play in the system
| Role | What they do |
|---|---|
| Teacher | Provides demonstrations, preferences, corrections, and explanations |
| Reviewer | Checks high-risk outputs and critical actions |
| Approver | Authorizes before external side effects occur |
| Collaborator | Works with the model to supply context and decompose the problem |
| Auditor | Periodically looks for blind spots in the automated system and its evaluators |
| The user themselves | Expresses goals, sets boundaries, and corrects personalized state |
When is escalation to a human worth it
To decide whether an additional review is worthwhile, a useful accounting rule is:
Net benefit of review ≈ expected loss without review − residual expected loss after review − review cost
For a teaching example, assign an error a cost of 100. If the automated error rate is 5%, review leaves a 1% error rate, and reviewing costs 1, the net benefit is 0.05 × 100 − 0.01 × 100 − 1 = 3. Humans make mistakes too, so residual risk after review is not zero. Estimate those probabilities from observed data rather than substituting a model's self-reported confidence.
This is not a formula for bypassing authorization. An action that requires user approval still requires it, even when its estimated cost is low. Irreversibility affects the loss and response options; it does not need an arbitrary extra multiplier. Include waiting time in the cost as well.
Common triggers include:
- several models or evaluators clearly disagree;
- the input falls outside the historical distribution and the system has never handled it before;
- the retrieved evidence is contradictory, or its sources are not reliable enough;
- the action would send a message, spend money, modify data, or affect other people;
- the user's goal is unclear and the cost of continuing to guess is high;
- the agent enters a loop, falls back repeatedly, or shows abnormal cost.
Keep the evidence behind human feedback
“Agree / disagree” can be a useful training label, but it usually does not explain where the failure began. Preserve evidence or a reason for the correction where feasible.
A useful human intervention should, as far as possible, preserve:
- why this case was escalated;
- which evidence the reviewer saw;
- what decision was finally made;
- which part of the model output or action was changed;
- why it was changed that way;
- whether this case should update tests, rules, the policy, or the training data.
Three timings for intervention
Real-time confirmation
Have the user approve before the action happens. This suits high-risk or irreversible operations.
Confirmation must identify a specific action, not grant a pass for the whole conversation. Show the target, material arguments, and impact; bind approval to that action version and an expiry. The execution layer verifies the approver's authority and checks authorization and current state before acting. Changes to recipients, attachments, or amounts invalidate the old confirmation. Rejection or an unanswered confirmation that expires is not approval. See OWASP's transaction-authorization principles.
For example, in a quote-email workflow requiring confirmation for each send:
Preview: send to the purchasing contact, attachment quote-v3.pdf
User approves this version → proceed to pre-send validation
Attachment changes to quote-v4.pdf → invalidate approval, preview and confirm again
User rejects or confirmation times out → do not send; record why
These are state constraints, not a sending implementation. Resuming a paused workflow does not necessarily mean “run the next line exactly once”: for example, LangGraph interrupts resume by rerunning the node from its beginning. Put the external write awaiting approval after valid approval, and still follow the tool's idempotency contract on retries.
After-the-fact spot checks
Sample from completed trajectories to find systematic failures, judge bias, and new types of problems.
Periodically redesigning the rules
As models and tasks change, re-examine the rubric, escalation thresholds, permissions, data retention, and user control.
Common mistakes
- Treating the human as a fallback API: no context is provided, yet a quick decision is demanded.
- Looking only at the final answer: search, tools, side effects, and state updates are ignored.
- Collecting labels but not reasons: it is harder to work out what needs improving.
- Escalation rules that never change: old thresholds are still used after model capability and task risk have changed.
- Feedback going straight into training: annotator variation, policy bias, and data leakage are not handled.
- Automation bias: the more confident the model sounds, the more readily people accept it without thinking.
What good HITL should ultimately reduce
The goal is not to make more and more tasks depend on people. It is to put the most valuable human judgment in the right place, and then turn that judgment into:
- new deterministic rules;
- better eval cases;
- a clearer failure taxonomy;
- reusable training data;
- a more sensible boundary for automation.
Connections to other chapters
- Agent Observability helps reviewers trace what happened.
- Evaluation decides which cases need human calibration.
- Data and feedback decides how human judgment enters later learning.
- Personal AGI requires that the user can control and correct long-term state.
Quick learning: when should control pass to a human?
Consider risk, uncertainty, and whether the action can be undone
Quick memory: it is not “ask a human whenever the model is uncertain.” Escalate when the potential loss is high, the action is irreversible or permission-sensitive, or the evidence conflicts; and the human's feedback has to flow back as structure the system can learn from.
Interview answer
HITL is a selective escalation policy. The system combines model uncertainty, action risk, reversibility, permissions, and business rules to decide between automatic execution, requesting confirmation, or handing off to a human. It records what the human changed, on what basis, and the final outcome, and uses them to update rules, data, and evaluation.
Deep dive: why is an uncertainty threshold alone not enough?
A model can be highly confident in a wrong answer. The same uncertainty also carries different consequences for “recommend a song” and “refund ten thousand dollars.” Consider the impact of an error, whether it can be undone, and how much risk review actually reduces. Account for reviewer capacity too, or every escalation may just sit in a queue.