Blog / 23
AI Agent Verification: Trust, but Judge
Agents claim they finished the task. Verification is how you know. The judge-layer pattern for checking agent work, with real builds and failure modes.
Every team that ships an AI agent meets the same ghost within a month: the agent reports success, the log looks clean, and the task is not actually done. The email was "sent" to a draft folder. The record was "updated" in the wrong environment. The onboarding was "completed" except for the two steps that mattered. Agents don't lie, exactly; they conclude optimistically, and an unverified optimistic conclusion in an automated pipeline is a defect with a completion certificate.
The emerging fix has a pleasingly old name, inspection, and a very 2026 implementation: a second model whose only job is to judge whether the first one's claims are true. Verification is LLM-as-a-judge pointed at your own agents, and it's quietly becoming the load-bearing layer of every serious agent stack.
The pattern: claims become questions
An agent finishes and asserts an outcome. Before that assertion triggers anything downstream (a customer notification, a status update, the next agent), a verifier receives the evidence (the final state, the API responses, the artifact) and answers structured questions about it: Does the confirmation page show the correct order number? Does the created ticket contain the required fields? Is the deployed version the one that was requested?
The same shape fits employee onboarding: an agent claims a new hire's accounts and equipment are ready, and a judge verifies each claim against the evidence before anyone celebrates. The agents and browsers category is accumulating variants, and the best browser-agent builds already verify their own steps mid-run: "did the results actually load?" is a verdict, not an assumption.
Why a decision model fits the verifier seat: verification questions are closed-set by nature (present or absent, matching or not, done or not), the verifier runs on every task completion so per-verdict cost compounds, and at reported prices (fractions of a cent per verdict) checking everything costs less than one un-caught failure's cleanup.
Design rules from the builds that work
Verify evidence, not vibes. The verifier must see ground truth (the screenshot text, the API response, the queried record), never just the agent's own narration. An agent grading its own summary of its own work is a mirror admiring itself.
Different model than the actor. Same-family self-preference applies to verification exactly as it does to evals; cross the families.
One claim, one question. "Was onboarding completed?" invites optimism; "Does the IT system show an active laptop assignment for this employee ID?" invites a ruling. The decomposition craft is the judge-question guide, unchanged.
Failure routes to retry-or-human, never to silence. A failed verification with no handler is a log line; a failed verification that re-runs the step or pages a person is a system.
Irreversible actions get pre-verification. Post-hoc checking suits most work; payments, deletions, and sends deserve a judge before the button, which is the same rule the routing architecture applies to escalation.
The bigger picture: agents watching agents
As agent counts multiply, the verifier layer is what keeps compound workflows from compounding errors: each handoff between agents becomes a checkpoint where claims get judged before they become the next agent's assumptions. It's bureaucracy, in the best sense, inspection stamps for software labor, and at current verdict prices there's no economic excuse left for skipping it. The teams that internalize "every agent claim is a hypothesis until judged" are the ones whose demos survive contact with production.
Frequently asked questions
What is AI agent verification?
An automated check, usually a judge model, that inspects the evidence of an agent's completed work and rules on whether each claimed outcome actually holds, before downstream systems act on the claim.
Why do agents report false success?
They infer completion from plausible signals (a submitted form, a 200 response, a confident final state) rather than confirmed outcomes. Optimistic conclusion is the default failure mode of autonomous loops; verification is the antidote, not better prompting alone.
Does verification double my agent costs?
At decision-model prices, verification adds fractions of a cent per task, typically a rounding error against the agent's own run cost, and far below the cost of silently failed work. Reported figures: the cost table.
Can the same model act and verify?
It shouldn't: self-preference bias means models grade their own family kindly. Use a different family for the judge seat, and feed it raw evidence rather than the actor's summary.
Where should I add verification first?
Wherever an agent's false success is most expensive: customer-facing sends, data mutations, and any claim another agent consumes. Start post-hoc there, add pre-action gates for irreversible steps, and grow toward per-step checks as the getting-started guide suggests: measure before you trust.
Numbers throughout are as reported by the build authors, not verified by shipwithjev. Code-shaped examples are pseudocode; the official docs live at docs.typesafe.ai.