All posts

Human-in-the-loop AI agents: where to put the approval step so it protects you without slowing everything down

Human-in-the-loop AI agents need approval gates only where actions are costly or irreversible. How to decide which actions to gate, which review pattern fits, and how to avoid approval fatigue.

CodeKrypt 5 min read

Teams building an agent usually hit the same fork. Let it act freely and one bad tool call reaches a customer. Make it ask permission for everything and nobody uses it. Human-in-the-loop AI agents are the way out, but only if the approval step sits in the right place. This post covers how to decide where that is.

What does human-in-the-loop actually mean in an agent?

The simplest version is a gate: the agent proposes an action, a person approves or rejects it, and only then does execution happen. Rejected actions are cancelled and logged. Most agent frameworks support this natively as a pause or interrupt before a tool call, and vendor write-ups on approval patterns agree on the core idea even where they differ on tooling.

The design question is never "should a human be involved?" It is "at which steps is a human's attention worth its cost?"

Which actions should an AI agent ask approval for?

Sort every tool the agent can call by two questions: can the effect be undone, and who sees it?

Action typeReversible?Visible outside the company?Default
Read a record, search, summariseYesNoNo gate
Draft an email or ticket replyYes (nothing sent)NoNo gate, human sends
Update an internal fieldUsuallyNoLog, spot-check
Send a message to a customerNoYesGate
Issue a refund or paymentHardYesGate above a threshold
Change permissions or rolesRiskySometimesGate
Delete data, run a production migrationNoSometimesGate, often two people

Common examples of high-risk triggers in the patterns published for enterprise workflows include wire transfers, privilege grants, external communications and production migrations. That matches the table: the gate belongs on the irreversible and the outward-facing.

Which approval pattern fits which risk?

There is more than one way to put a human in the loop, and they trade speed against safety differently.

PatternHow it worksGood forWeakness
Per-action approvalEvery gated action waits for a yes/noLow volume, high stakesSlow at scale
Threshold gatingAuto-approve below a limit, gate above itRefunds, discounts, spendSomeone has to own the threshold
Exception-only reviewAgent proceeds unless a policy trigger fires (low confidence, odd parameters)High volume, mostly routineTriggers must be well designed
Sampled reviewReview every high-risk action, only a sample of low-risk onesQuality monitoringMisses individual errors
Dual approvalTwo separate sign-offsIrreversible, regulated actionsHeaviest process

Most production agents end up combining two: threshold gating for money, and per-action approval for anything that leaves the building.

How do you avoid approval fatigue?

Approval fatigue is the quiet failure of this whole approach. If a reviewer sees fifty requests an hour and forty-eight are trivial, the other two get the same two-second glance. The protection is gone and the latency is still there.

Practical ways to keep reviewers honest:

What has to be built around the approval step?

The button is the easy part. What makes it safe is the plumbing:

  1. Durable pause and resume. The agent's state must survive for hours or days while someone is in a meeting. That means persisted state, not an open request waiting in memory.
  2. Expiry. A proposal approved three days later may rest on stale data. Decide when pending approvals lapse or must be re-validated.
  3. An audit trail. Record who approved what, when, and what the agent proposed versus what ran. This is also what you need for debugging, and for observability you can afford.
  4. Fail closed. If the approval service is down, gated actions wait. They do not proceed.
  5. Scoped permissions underneath. Approval does not replace least privilege. It complements it, which is the same containment argument made in AI agent security and prompt injection.

How does this connect to why agents fail in production?

Many agent failures are a missing gate on one irreversible action rather than a model problem. An approval step is cheap insurance on exactly those actions, and a good evaluation framework tells you which actions have earned the right to run unattended. The broader failure patterns are in why AI agents fail in production.

What should you do next?

Before you build anything, do this exercise with your team:

  1. List every tool your agent can call.
  2. Mark each one reversible or not, and internal or external.
  3. Put a gate on the irreversible and external ones, with a threshold where a number is involved.
  4. Decide who is the reviewer, how fast they must respond, and what happens when they don't.
  5. Log every proposal and decision from day one.

If you are scoping an agent and want help drawing these lines, see our AI automation service.

CodeKrypt avatar

CodeKrypt

Drafted by CodeKrypt's AI writing pipeline, built and maintained by our engineers, under fixed rules on sources and claims. How we write

Frequently asked questions

What does human-in-the-loop mean for an AI agent?
It means the agent pauses at defined points and a person approves, edits or rejects what it is about to do before it executes. The agent proposes; a human decides; only then does the action run.
Which agent actions should require approval?
Actions that are irreversible, externally visible or financially material: sending messages to customers, issuing refunds above a threshold, changing permissions, deleting or migrating production data. Reads and reversible drafts rarely need a gate.
Can approval steps make an agent worthless?
Yes, if you gate everything. Reviewers who see a constant stream of low-stakes requests start approving without reading, which removes the protection while keeping the delay. Gate by risk, not by default.
Is human-in-the-loop required for compliance?
It depends on your sector and jurisdiction, and this post is not legal advice. Where a regulation or contract requires human oversight of a decision, build the approval step and its audit trail in from the start rather than retrofitting it.

Related reading

Chat on WhatsApp