Use risk flags and approval queues so the agent only pauses when a human truly needs to make the call, then resumes smoothly from where it left off after review.

Key takeaways

  • Guardrails handle automated checks; humans only approve decisions where a single mistake causes real damage
  • Paused runs must be persisted and resumed from the saved state, which is what makes the review queue work asynchronously
  • Guardrails only protect the tools they're attached to, so every path the agent can use to take action must be inventoried

Anthropic published data on how people supervise agents, and one detail seems counterintuitive at first glance. New users with fewer than 50 sessions enable fully automatic approval about 20% of the time; after more than 750 sessions, that figure exceeds 40%. Yet these same experienced users interrupt the agent more often.

These are two different behaviors. Experienced users no longer click "approve" at every step, but they know when to step in. Anthropic's conclusion: effective supervision doesn't require approving every action.

For a Forward Deployed Engineer (FDE), this paradox is a design problem faced every day. Once an agent is connected to a customer's real systems—reading orders, sending emails, processing refunds—the customer asks two contradictory questions: how do we stop it from doing something stupid on its own? And why does everything need a human sign-off? A well-designed supervision layer answers both at once.

Let machines handle the cheap checks; let humans decide the expensive ones

OpenAI's guide on agents draws a clear line: guardrails for automated checks, human review for approving decisions. A guardrail is code that answers questions with definite answers: does the amount exceed the order total? Does the email leak internal data? Are the parameter formats correct?

Reviewers should only be reserved for questions requiring judgment—cases where a single mistake could cause real damage. If you stuff questions machines can answer into the queue too, reviewers fatigue and start rubber-stamping just to clear the queue.

The list of tools that must pause should live in a separate policy table, not mixed into the prompt. LangChain's human-in-the-loop middleware does exactly this: entries are declared by tool name, and when a call matches an entry, execution is interrupted.

This is risk flagging. Anthropic offers two additional recommendations: have the agent pause at checkpoints or when stuck and ask a human for help; and set conditions in advance that make it stop completely.

When an agent pauses, what must be preserved?

In OpenAI's approval flow, the flagged call isn't executed and the entire run pauses until you approve or reject it. Once a decision is made, the same run resumes from the saved

state

state rather than starting a new conversation.

It's precisely this small detail that makes asynchronous queues possible: the reviewer on the customer's side can finish their meeting before responding, and the agent still remembers where it left off.

The cost is that state must be stored somewhere that survives process restarts. LangChain's documentation explicitly states that human-in-the-loop requires a checkpointing mechanism to handle interruptions.

On-site at a customer, if state lives only in memory, a single redeployment or pod restart wipes out everything pending review. Use a database the customer's ops team is already backing up and monitoring.

Tracking a case: a retailer's refund agent

The following example is fictional, meant to show how the pieces fit together. A customer service agent has five tools, and the policy table sorts them into three tiers:

ToolTierAutomated guardrailWhat a reviewer can do
lookup_orderAutomatedOnly reads orders belonging to the customer who initiated the requestNot needed
close_ticketAutomatedTicket must include a noteNot needed
email_customerReviewContains no internal dataApprove, edit, reject
issue_refundReviewAmount ≤ order totalApprove, edit, reject
run_sqlForbiddenN/ANone

The core logic takes only a few dozen lines. The illustrative code below is framework-agnostic; the point is the order of checks:

POLICY = {
    "lookup_order":   {"tier": "auto"},
    "close_ticket":   {"tier": "auto"},
    "email_customer": {"tier": "review", "decisions": ["approve", "edit", "reject"]},
    "issue_refund":   {"tier": "review", "decisions": ["approve", "edit", "reject"],
                       "guard": lambda args, order: args["amount"] <= order["order_total"]},
    "run_sql":        {"tier": "block"},
}

def handle_tool_call(run_id, state, call, order):
    rule = POLICY.get(call.name, {"tier": "block"})  # 未知工具:默认禁止
    if rule["tier"] == "block":
        return reject(call, "该工具不在策略表中")
    guard = rule.get("guard")
    if guard and not guard(call.args, order):
        return reject(call, "超出限额,无需人工审核")
    if rule["tier"] == "review":
        save_checkpoint(run_id, state)  # 持久化保存,绝不能只放在内存里
        return enqueue_for_review(run_id, call, rule["decisions"])
    return execute(call)

A customer writes in requesting a refund. The agent issues two calls in the same turn: first

email_customer

to tell the customer the refund has been processed, then

issue_refund

to refund the full order amount. Both calls pass the guardrails, but both are review-tier, so the run pauses, state is saved, and the queue displays the two actions in order.

The reviewer opens the case and discovers the order was already refunded through the payment gateway the day before. So they edit the email to ask the customer to check their own account, and reject the refund call with a reason attached. LangChain gives reviewers exactly these three options;

reject

the decision rejects the call and sends feedback to the agent rather than executing it.

There's a trap here. In the default batch mode, decisions must be submitted in the same order as the actions appear in the interruption request.

If the queue interface reorders them—for example, moving money-related calls to the top for visibility—the edit meant for the email could be applied to the refund call.

After the run resumes from state, the agent reads the rejection reason and closes the ticket with an accurate note.

Where to start at a customer site

The first step is inventorying every path the agent can use to act on systems. OpenAI's documentation notes that tool guardrails only run on function tools they're attached to. Generic

run_sql

tools, an MCP server someone added later, shell commands in a sandbox—anything not in the table is a backdoor.

Next, sit down with the customer's process owner to assign tiers. The questions to ask: if this call were executed wrongly once, who would have to make the apology call? How long would the fix take? The answers determine each tool's tier, and who should serve as reviewer.

After that, write the guardrails, wire checkpoints into a persistent database, and build a queue interface that displays enough decision context on a single screen. Anthropic recommends thorough testing in a sandbox with proper guardrails before going to production. At this stage you can replay anonymized real cases to see which tiers pause too often.

Mistakes that turn the queue into a rubber stamp

The most common mistake is requiring approval in too many places. If every call pauses, reviewers learn to approve without looking, buying a sense of safety rather than actual safety. Track the percentage of calls approved as-is per tool; for tools that almost always pass unchanged, consider moving them to the automated tier with stricter guardrails.

The second mistake is rejecting without a reason. An agent that doesn't know why it was blocked will submit a nearly identical request again, and the queue fills with duplicates. The third mistake is the aforementioned in-memory state, a problem that tends to surface exactly on the day the customer redeploys.

On a resume, a line like "designed a three-tier risk approval policy for a refund agent, with only X% of tool calls requiring human review" is far more persuasive than "has LLM experience."

The experienced users in Anthropic's data approved less but interrupted more. A supervision layer built for customers should help their reviewers do the same: fewer approvals, timelier interventions.

Was this article helpful?

Thanks for your feedback!

4 sources

Next on the roadmap · Phase 6: Measuring value—three metering flaws that turn token bills into disputes. Two can be avoided when designing usage events; the third requires reconciliation before the bill is finalized.