By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
A subscription company let a Claude agent issue refunds below 200 dollars without review. The agent had a good quarter: 4,100 refunds and three complaints.
The fourth complaint was different. A customer asked about a duplicate charge on invoice 88213. The agent found two charges, matched the wrong one to a cancelled subscription, and refunded 199 dollars to a card that belonged to a different account. Every step was permitted. The amount was under the limit. The tool call was valid. Nothing failed except the thing nobody checked: whether the action was correct.
Failure modes are the ways a working system produces a wrong outcome. Human-in-the-loop design starts by naming them, because a review gate that does not target a named failure is theatre.
Most governance reviews look for one failure: the model says something harmful. That is the easiest case and the rarest in enterprise systems. These six cover the ground.
| Failure mode | What you see | Where it starts | First control |
|---|---|---|---|
| Confident wrong answer | Fluent, specific, plausible, no hedge | Retrieval gap or stale document | Require a citation and check it |
| Silent omission | A missing field or a skipped step | Truncated context or a partial document | Schema and completeness validation |
| Out-of-scope action | A valid tool call on the wrong target | Ambiguous instruction, loose arguments | Argument constraints and an approval gate |
| Injection | Behaviour flips after reading a document | Untrusted content inside the context | Treat content as data, allowlist the tools |
| Loop or stall | The same tool call repeats and never finishes | No stop condition or budget | Step budget, timeout, and a stop signal |
| Drift after a change | Quality falls after a model or prompt update | No regression check before release | An evaluation gate on every release |
Two of the six produce no error. The confident wrong answer and the silent omission both look like success. That is why a passing test suite is not evidence of safety, and why the wrong-account refund shipped without a single alert.
A gate is justified by what the action can cost, not by the model's mood. Reversible actions with small blast radius can run automatically. Irreversible actions, or actions that reach many people or a large amount of money, need a person.
The classification step deserves care. Ask three questions about every tool: can the action be undone, how much can it move, and how many records can one call touch. A refund of 40 dollars and a refund of 4,000 dollars are the same tool with different answers.
A common design asks the model to rate its own confidence and routes low scores to a human. This fails in two directions. Models are often fluent when wrong, so the score stays high. And a score needs a labelled set to calibrate against, which most teams never build.
Route on evidence instead of self-report. Use things you can check. Does the answer cite a retrieved passage? Does the extracted field appear in the document? Did the tool return an error? Is the amount inside a known band? A verifiable signal beats a self-assessed one.
If you do keep a confidence score, calibrate it. Plot predicted confidence against observed accuracy on your own evaluation set. If cases scored 0.9 are right 62% of the time, the number is a mood, not a probability.
A human-in-the-loop control is real only when a named person owns the outcome. A shared team inbox is not a control. Write down three things for every gate.
Accountability also sets the bar. A reviewer who approves 400 items a day is not reviewing. Sample their approvals, compare them with a second reviewer, and treat a 99% approval rate as a warning sign rather than a success.
Pick one action in a system you know: issue a refund, send a customer email, change a shipping address, delete a record. Write the gate as data first. A policy you cannot write down is a policy you cannot enforce.
{
"action": "refund.issue",
"reversible": false,
"value_band": "over_150_usd",
"gate": "single_named_approver",
"evidence_required": ["invoice_id", "matched_account_last4", "agent_reason"],
"on_timeout": "hold",
"audit_fields": ["approver_id", "decision", "shown_evidence_hash"]
}Then answer one question in writing: what would have to be true before you removed the gate? Express the answer as a measurement with a number and a date, not as an opinion.
Key takeaways
Name the failure mode first. A gate that does not target a named failure is theatre.
Two failure modes produce no error: the confident wrong answer and the silent omission.
Route on verifiable evidence, not on the model's self-reported confidence.
Every gate needs a named approver, visible evidence, and a durable audit record.
An approval rate near 100% means the gate has stopped working.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.