Implementing Human-in-the-Loop Approvals, Overrides and Escalation
This lesson covers approval workflows, overrides and edge-case escalation, the human-in-the-loop (HITL) processes that put people in control where agent errors would be costly, and how to pause reliably, present decisions clearly, record outcomes and resume without loss.
Learning outcomes
After completing this lesson, you will be able to:
- Implement durable approval workflows on each platform.
- Record overrides as signals for improvement.
- Route edge cases to people with explicit triggers.
Approval workflows
An approval workflow stops before an action, presents it to an authorized approver and continues only on approval. The implementation options differ by platform. In Foundry Agent Service, MCP tools can require approval per call, and Foundry workflows include human-input nodes. In Agent Framework, tools marked approval_mode="always_require" and workflow requests emit request_info events. In LangGraph, interrupt() pauses a node. In each case, the run's state is checkpointed so that the approval can arrive hours later, even after a restart.
A good approval request shows the proposed action, its arguments, the evidence and the agent's reasoning summary, and offers approve, reject and edit. Approvers are authorized through Microsoft Entra ID groups, approvals expire after a time-out with a defined default (usually reject or escalate), and every decision is logged.
Pausing for approval on each platform
Overrides
An override lets a person change an agent's output or decision: correcting an extracted field, changing a classification, or replacing a drafted response. Overrides are applied through the workflow (not by editing data behind it), recorded with who changed what and why, and fed back as evaluation and training data. A high override rate for a category is a signal that the agent's instructions, tools or model need attention.
Human overrides
Edge-case handling
Edge cases are routed to people by explicit triggers rather than by the agent's own judgement alone, as the following list shows.
- Low confidence: an extraction or classification confidence below a threshold.
- Validation failure: a tool result or output that fails schema or business rules.
- Policy exception: amounts, customers or regions outside the agent's mandate.
- Novelty: intents not seen in the evaluation dataset, detected by a classifier.
- Repeated failure: retries or loop caps reached without success.
Escalation passes the case with its state and history to a queue (for example a ticketing system or a Teams channel), tells the user what will happen next, and lets the person resume or close the case.
Which escalation trigger?
Approvals that get lost
A procurement agent asks managers to approve orders above 5,000 USD in a chat message. When managers reply the next day, the agent no longer remembers the order, and some approvals are applied to the wrong order.
Approvals must be part of a checkpointed workflow: the approval request carries the order ID and arguments, the workflow state persists while waiting, and the response is matched to the request by its ID before resuming. Asking the agent to remember pending approvals in its conversation relies on context that expires.
What happens to human overrides after they are recorded?
Show answer
They are reused as evaluation and training data, so the system learns from the corrections.
Exam Tips
Remember for the exam
- Approvals need checkpointed state, request IDs, time-outs and audit logs.
- Overrides are recorded and reused as evaluation and training data.
- Escalate edge cases on explicit triggers: confidence, validation, policy, novelty, repeated failure.