# Human-in-the-loop approval gates: three patterns and how to build them

> Three approval gate patterns for AI agents: approve everything, approve exceptions, sample audit. What to show the approver and how to enforce the gate in code.

Source: Context Labs (thecontextlabs.com). Canonical page: https://thecontextlabs.com/blog/human-in-the-loop-approval-gates
By Luv, Context Labs. Published 2026-12-01, updated 2026-12-01.

## The short answer

An approval gate is a point where an AI agent must stop until a named person says yes. There are three workable patterns: approve everything, approve exceptions, and sample audit. In every pattern, enforce the gate in code so payment or filing tools cannot run without an approval record, and show the approver the evidence rather than a summary.

## In this guide

- The three patterns and when each fits
- A staffing calculation for a 400-claim day
- What belongs on the approval screen
- How to tell whether approvers are reviewing or just clicking
- Prompt-level gates versus code-level gates, with a sketch of the code

## Which actions need a gate at all?

Gate the actions that are hard to undo or that a regulator would ask about: releasing a payment, denying a claim, filing a report, opening an account, sending a decision letter, writing to a system of record. Reading, extracting, calculating and drafting do not need a gate. They need checks.

OWASP's guidance on excessive agency makes two recommendations that frame this whole topic. Require a human to approve high-impact actions before they are taken. And implement authorisation in downstream systems instead of relying on the model to decide whether an action is allowed ([OWASP LLM06:2025](https://genai.owasp.org/llmrisk/llm062025-excessive-agency/)).

## What are the three approval patterns?

| Pattern | Who approves what | Reviewer load | Fits when | Main risk |
|---|---|---|---|---|
| Approve everything | A person approves every consequential action on every case | Highest | A new workflow, a new model version, or any step with no track record | Fatigue and rubber-stamping |
| Approve exceptions | Cases inside defined limits proceed. Cases outside them stop for a person | Medium | The step has measured accuracy on closed and live cases, and you can write the limits down | Limits drawn too wide, or drift nobody notices |
| Sample audit | Cases proceed. A random sample is reviewed after the fact | Lowest | The action is low value or reversible, and errors can be corrected later | Errors run until the next sample catches them |

These are stages as much as choices. Most workflows start at approve everything and earn their way down, one step at a time. Different steps in the same workflow can sit at different stages: a $400 glass claim payment on sample audit, a total-loss settlement on approve everything.

"Inside defined limits" must be something code can evaluate. Amount under a threshold. All required documents present. Every validation check passed. No fraud indicator. Policy in force on the date of loss. If the limit is "the agent is confident", it is not a limit.

## How many reviewers does each pattern need?

This fictional example illustrates the staffing calculation.

A claims team receives 400 payable auto claims a day. A reviewer has 450 productive minutes in a day.

**Approve everything.** Each approval takes 4 minutes with a well-built screen. 400 × 4 = 1,600 minutes, which is 1,600 ÷ 450 = 3.6 reviewers.

**Approve exceptions plus a sample.** 25% of claims fall outside the limits: 100 cases. These are the harder ones, at 6 minutes each, so 600 minutes. The other 300 proceed, and 5% of them are sampled: 15 cases at 4 minutes, so 60 minutes. Total 660 minutes, which is 660 ÷ 450 = 1.5 reviewers.

Under the second pattern, 285 claims a day are paid with no person looking at them. That is acceptable only if the step's error rate on that segment has been measured and the limits were set from the measurement. See [how to evaluate agents on your own closed cases](https://thecontextlabs.com/blog/evaluate-ai-agents-on-your-own-closed-cases).

## What should the approver see?

The reviewer should be able to decide in minutes without opening five other systems, and to disagree without effort.

- **The proposed action, stated exactly.** "Pay $8,240 by ACH to the policyholder", not "approve claim".
- **How the number was built.** Estimate $9,240, less deductible $1,000, under a $25,000 limit.
- **The evidence, one click away.** Each extracted value linked to the page and region it came from.
- **Checks that passed and checks that failed.** A list, not a score.
- **What is missing.** "No police report on file" belongs at the top.
- **Three equal buttons.** Approve, send back with a reason, escalate. No pre-selected default.

## How do you stop approvals becoming rubber stamps?

You measure them. A gate that approves every case in 12 seconds is a delay, not a control.

- **Time per approval.** Watch the distribution. A cluster under ten seconds on complex cases is a signal.
- **Override rate by reviewer.** Someone who has never sent a case back in 2,000 approvals is either very lucky or not looking.
- **Seeded errors.** Place known-wrong cases into the queue, clearly tracked on the back end, and count how many are caught. If you seed 20 in a week and reviewers stop 17, the catch rate is 85%. Now you have a number for the control itself.
- **Separation of duties.** The person who corrected the case should not be the one who approves it.

When overrides stay near zero and seeded errors keep getting caught, the step is a candidate for approve exceptions. When overrides rise, move it back.

## Why must the gate be enforced in code and not in the prompt?

Because a prompt is a request and code is a constraint. "Always ask for approval before paying" in a system prompt works until a long context, a model update or a line of injected text in a PDF says otherwise. Then the payment tool runs.

| | Gate in the prompt | Gate in code |
|---|---|---|
| Where the rule lives | Instruction text the model reads | The tool or workflow engine |
| Can the model skip it? | Yes, by error or manipulation | No. The tool refuses without an approval record |
| What is approved | Whatever the model says it showed | The exact payload, bound by a hash |
| Who approved | A name the model wrote | An identity from your sign-on system |

A code-level gate checks for an approval before acting, binds it to the exact payload so a later edit invalidates it, takes the approver's identity from your identity provider, and runs under credentials that cannot create approvals.

```
def release_payment(case_id, payload):
    approval = approvals.get(case_id, action="release_payment")
    if approval is None:
        raise Blocked("no approval on record")
    if approval.payload_hash != sha256(payload):
        raise Blocked("payload changed after approval")
    return payments.send(payload, approval_id=approval.id)
```

The model never calls `payments.send`. It can only propose a payload. Anthropic's agent guidance describes agents pausing for human feedback at checkpoints ([Building effective agents](https://www.anthropic.com/research/building-effective-agents)). In regulated work, that pause has to be a property of the system, not a courtesy of the model.

## Where it goes wrong

- **Timeouts that approve.** If nobody responds in four hours, escalate to a second approver. Never treat silence as yes.
- **Approval on a summary.** The reviewer approves a paragraph. The tool executes a payload they never saw.
- **One gate for everything.** Forty approvals per case trains people to click. Gate the few actions that matter.
- **No path to say no.** If sending a case back takes ten clicks and approving takes one, you have designed the outcome.

## How Context Labs fits in

Context Labs (thecontextlabs.com) is an AI workforce platform for insurance, banking and private equity. It learns how your experts run multi-hour workflows, then pairs AI judgment with deterministic execution and waits for human approval on critical steps. The rollout follows the staged pattern above: at Week 0 you approve everything, in Week 1 you review what matters, in Weeks 2 to 3 you handle exceptions, and by Weeks 4 to 6 Context coordinates handoffs and carries the case to completion. A harness controls where each run must stop for approval. Every action is logged and every role controlled.

## FAQ

### What is a human-in-the-loop approval gate?

A human-in-the-loop approval gate is a control point in an automated workflow where the system stops until a named person approves, rejects, or escalates a proposed action. In a well-built system the action cannot execute without that approval, and the approval is stored with the approver's identity, the time and the exact content approved.

### Should a person approve every AI decision?

At the start, yes, for consequential actions. Over time, no. Approving everything forever exhausts reviewers and lowers the quality of each review. Move a step to exception-based approval once its accuracy has been measured on closed and live cases, and keep full approval on high-value or irreversible actions.

### What is the difference between human-in-the-loop and human-on-the-loop?

In the loop means the action waits for a person. On the loop means the action proceeds and a person monitors, with the ability to intervene or review afterwards. Approve everything and approve exceptions are in-the-loop patterns for the gated cases. Sample audit is an on-the-loop pattern.

### How do we know reviewers are really reviewing?

Measure approval time, override rates by reviewer, and the catch rate on seeded errors. A reviewer who catches 17 of 20 planted mistakes is doing the job. One who approves every case in seconds and never sends anything back needs a smaller queue, a better screen or a conversation.

### Can an AI agent bypass an approval gate?

If the gate is an instruction in the prompt, yes, through error or prompt injection. If the gate is enforced in code, the agent has no tool that performs the action without an approval record, so there is nothing for it to bypass. Ask any vendor which of the two they mean.

## Related guides

- [What is human-in-the-loop (HITL) AI?](https://thecontextlabs.com/library/glossary/human-in-the-loop)
- [Levels of autonomy in claims automation](https://thecontextlabs.com/blog/levels-of-autonomy-in-claims-automation)
- [What an AI agent audit log should record](https://thecontextlabs.com/blog/ai-agent-audit-logs-what-to-record)
- [Your first 90 days rolling out an enterprise AI agent](https://thecontextlabs.com/blog/enterprise-ai-agent-rollout-first-90-days)

## Sources

- OWASP, "LLM06:2025 Excessive Agency", OWASP Top 10 for LLM Applications 2025: https://genai.owasp.org/llmrisk/llm062025-excessive-agency/
- Anthropic, "Building effective agents", December 19, 2024: https://www.anthropic.com/research/building-effective-agents

[Book a demo](https://thecontextlabs.com/demo)
