Most "human-in-the-loop" designs amount to a button labelled Approve. The agent decides, a person clicks, and the system records that a human was involved. Three months later the click takes under a second, nobody reads what they are approving, and the control exists mainly as a record of whom to blame.

An approval that is always granted is not oversight. It is a signature collected in advance.

Keeping people genuinely in control is a design problem with specific parts: what gets gated, what the reviewer sees, how the approved thing is bound to the executed thing, what happens when nobody answers, and how the gates move as evidence accumulates. This article follows one proposed action through all of them, from the moment an agent wants to do something to the moment the system decides it may do it without asking.

Gate the Action, Not the Model's Confidence

The tempting design routes on the model's own confidence: above a threshold it acts, below it asks. The problem is that a self-reported score is not calibrated against your outcomes. A model can be fluently, consistently confident about a refund it should never issue, and the cases that hurt are exactly the ones where it does not know that it does not know.

So decide the gate from properties of the action itself, which you can evaluate in code before anything runs:

Property of the actionWhy it mattersWhat it pushes toward
ReversibilityAn undoable mistake costs a correction; an irreversible one costs a customer or a regulatorIrreversible means approve-before, always
Leaves the organisationAn email sent, a filing submitted or a payment released cannot be recalled by editing a recordApprove-before for anything external
Money or contractual effectValue at stake, and a target for anyone manipulating the agentThresholds, plus a second person above them
Blast radiusOne record versus a bulk update across thousandsCap the count per action; bulk changes need approval regardless of type
NoveltyThe first time this action meets a new counterparty or a new category, there is no track recordAsk first, then relax once history exists

Confidence still has a job: sorting the review queue so that likely problems reach a reviewer first. If you have a score that has been measured against labelled outcomes, such as a classifier with a known error rate on your data, it can legitimately route work. The model's own estimate of itself should not open a gate.

A Proposal Is a Record Before It Is an Action

The structural decision that makes everything else possible is that the agent never acts directly on gated operations. It writes a proposal: a durable record of exactly what it wants to do, to which version of which record, on what evidence, under which policy. The gate is then a pure function of that record, evaluated in your code rather than in the prompt.

type Gate = "auto" | "review_after" | "approve_before" | "two_person";

interface Proposal {
  id: string;
  actionType: "issue_refund" | "update_address" | "send_reply" | "close_case";
  target: { system: string; recordId: string; version: number };
  payload: Record<string, unknown>;
  evidence: string[];          // ids of the records and documents the agent relied on
  policyVersion: string;
  proposedBy: { agentRun: string; onBehalfOf: string };
}

function gateFor(p: Proposal, ctx: { refundedTodayCents: number }): Gate {
  switch (p.actionType) {
    case "issue_refund": {
      const amount = Number(p.payload.amountCents);
      // the daily total, not the single amount: thresholds invite splitting
      return amount + ctx.refundedTodayCents > 50_000 ? "two_person" : "approve_before";
    }
    case "send_reply":
      return "approve_before";
    case "close_case":
      return "review_after";
    default:
      return "auto";
  }
}

Notice what the gate does not read: anything the model said about itself, and anything that arrived in the conversation. Content from a customer email or a retrieved document can try to persuade the model, but it cannot change which branch of gateFor runs. That is the practical defence against prompt injection for actions: the policy lives where injected text cannot reach it.

Execute exactly what was approved

The subtle failure is drift between approval and execution. A reviewer approves a refund at 10:02; at 10:05 the order is partially refunded by a colleague; at 10:06 the agent executes against a record that no longer matches what anyone saw. Worse, some implementations regenerate the action after approval and execute the new version.

import { createHash } from "node:crypto";

// use a canonical (key-sorted) serialiser in production
const digest = (p: Proposal) =>
  createHash("sha256")
    .update(JSON.stringify([p.actionType, p.target, p.payload]))
    .digest("hex");

async function execute(p: Proposal) {
  const approval = await approvals.findFor(p.id);
  if (!approval || approval.digest !== digest(p)) throw new Error("not approved as proposed");

  const current = await records.version(p.target);
  if (current !== p.target.version) {
    return proposals.requeue(p.id, "target changed since approval");
  }
  return actions.run(p, { idempotencyKey: p.id });
}

The approval stores a digest of the payload and the target version, and execution refuses anything that does not match both. A stale proposal goes back to the queue with a reason rather than being silently regenerated. The idempotency key is the proposal, so a retried worker cannot pay twice.

One Screen, Four Possible Answers

What the reviewer sees decides whether the gate works. A paragraph of agent prose saying what it intends to do invites skimming. The screen that holds up shows:

Flow of a gated AI action: the agent writes a proposal record, a gate function in code routes it to human review, the reviewer approves, edits, rejects or escalates, and execution runs only if the approval digest and record version still match; stale proposals go back to the queue.
The agent only writes a proposal; code picks the gate, and only the exact approved version can execute.
  • The change as a diff: the field values before and after, or the exact message that will be sent, not a summary of it.
  • The consequences spelled out: "sends an email to the customer", "posts a credit note to the ledger", "notifies the carrier". People approve effects, not function names.
  • The evidence, one click away: the records and passages the agent relied on, linked from the proposal's evidence list so the reviewer can check the claim instead of trusting it.
  • Untrusted text marked as quoted: anything that came from a customer or an outside document is displayed as data, visibly separate from the agent's own reasoning.

The reviewer then has four answers, not two: approve, edit and approve, reject with a reason, and escalate. Treat edits as a separate outcome in your data. An approval where the human changed the amount or rewrote the reply is the most valuable signal the system produces, because it says exactly where the agent is close but wrong, and it should flow straight into your evaluation set.

Spotting the Rubber Stamp

Approval fatigue is not a character flaw in reviewers. It is what happens when a queue presents a long run of correct proposals, and it is measurable long before an incident proves it.

  • Time to decision collapsing toward the time it takes to click, especially on proposals with long evidence lists.
  • Bursts: dozens of approvals within a minute, typically at the end of a shift.
  • Near-total approval without edits over a long window, on a gate that was supposed to catch something.

Two remedies work. First, test the gate: seed the queue occasionally with known-bad proposals, tell reviewers that this happens, and track the catch rate. A gate that misses its seeded cases is not protecting anything. Second, stop asking for per-item approval where it no longer earns its cost: if an action type is approved unedited essentially every time, moving it to review-after with sampled checking gives reviewers fewer, more meaningful decisions.

When Nobody Answers the Queue

Every gate needs a rule for silence, and the rule must be the safe outcome. A proposal that waits past its deadline expires; it is never approved by default. Expired proposals escalate to the next person in a defined chain, each step with its own deadline, and the chain ends at a named owner rather than at a shared inbox.

Escalation is also something the agent must be able to start. Define the stop conditions in code, so a run hands off instead of improvising:

  1. The step budget for the run is exhausted.
  2. The same tool has failed repeatedly with the same error.
  3. Sources disagree on a fact the action depends on, such as two different delivery addresses.
  4. The request falls outside the policy the agent operates under.
  5. The person on the other end asks for a human, or the conversation shows distress, a complaint or a legal threat.

A handoff should arrive as a packet, not a transcript: what was asked, what the agent found, what it tried, what is pending and why it stopped. If the human has to reread the whole conversation to begin, the escalation has cost more time than the agent saved. For the mechanics of pausing a run and resuming it hours later from another process, see the interrupt pattern in building agentic workflows in Node.js.

Who may approve

Separation of duties carries over from finance unchanged. The agent never approves its own proposals. The person who triggered a request should not be the approver for its high-value actions. The top tier of the gate needs two different people, and the approval record stores both names.

Limits That Hold Even When Every Approval Is Right

Per-action gates can be correct individually and still fail collectively. Ten refunds each just under the threshold add up to a number nobody would have approved in one go, whether the cause is a manipulated agent or a bug in a loop. Controls that sit above individual approvals catch what those approvals cannot:

ControlWhat it stopsWhere it lives
Aggregate caps per counterparty and per daySplitting one large action into many small onesThe gate function, reading running totals
Rate limits per action typeA loop or a flood of injected requests acting at machine speedThe executor, before any external call
Kill switch per workflow and per action typeContinuing damage while an incident is diagnosedConfiguration checked on every execution, and tested on a schedule
Shadow modeLaunching an action type nobody has watched on real trafficA flag that records proposals without executing them
Audit recordBeing unable to say who approved what, having seen whatProposal, digest, approver, timestamp and policy version, written in the same transaction

The kill switch deserves a drill. A switch that has never been flipped in production is a hope, and the first time you need it is the wrong time to learn it also stops an unrelated workflow.

Moving the Gate as Evidence Builds

Gates should not be permanent, in either direction. Assign each action type a rung, from drafting for a person to send through to acting and reporting afterwards (the autonomy ladder in AI agent vs AI chatbot), and make movement between rungs a rule rather than a feeling.

  • Promotion requires a minimum volume of decisions, a long run of approvals without edits, no reversals in the window, and a named person's sign-off. Record the change with a new policy version.
  • Demotion is automatic. A reversal, a complaint traced to the action or a missed seeded case drops that action type a rung immediately, pending review.

Asymmetric movement is the point: autonomy is earned slowly and withdrawn quickly, as it would be for a new employee. It also gives leaders something defensible to point to, a written criterion and a dated decision, which is the governance half of rolling AI out across an organisation that we cover in the AI adoption and readiness playbook.

Everything above sits around the agent, not inside it, which is why it survives a change of model or framework. If you are putting an agent in front of systems where mistakes cost money or reach customers, our AI agent development team designs these controls with the workflow, and we are happy to look at where your gates should sit.

Frequently Asked Questions

What is a human-in-the-loop AI system?

A human-in-the-loop AI system lets an agent propose actions while people keep genuine control over which ones run. Done properly, that means gating actions by their properties, showing reviewers the exact change and its evidence, binding approval to the exact version executed, defining what happens when nobody answers, and moving gates as evidence builds. An Approve button that is always clicked is not oversight.

Which AI agent actions should require human approval?

Decide from properties of the action, not from the model's confidence. Irreversible actions, anything that leaves the organization such as emails, filings or payments, actions with money or contractual effect, bulk changes with a large blast radius, and first encounters with a new counterparty or category should be approved before they run. Money thresholds should read running daily totals so one large action cannot be split into small ones.

Can an AI model's confidence score decide when to ask a human?

The model's own confidence should not open a gate. A self-reported score is not calibrated against your outcomes, and the costly cases are exactly those where the model does not know what it does not know. Confidence can still sort the review queue, and a score measured against labeled outcomes, such as a classifier with a known error rate on your data, can legitimately route work.

How do you prevent approval fatigue in AI review queues?

Measure it, test it and remove approvals that no longer earn their cost. Warning signs include decision times collapsing toward the time it takes to click, bursts of approvals within a minute, and near-total approval without edits. Seed the queue occasionally with known-bad proposals and track the catch rate, and move action types that are approved unedited essentially every time to review-after with sampled checking.

What should happen when nobody approves an AI agent's request?

The proposal should expire, never be approved by default. Expired proposals escalate along a defined chain, each step with its own deadline, ending at a named owner rather than a shared inbox. When the agent itself hands off, it should send a packet stating what was asked, what it found, what it tried, what is pending and why it stopped, rather than a full transcript.

Sources