Forward-deployed / Learning zone
Agentic AIa standalone module
Lesson 06

Reliability & evals

TL;DR

Agent reliability is ruled by one brutal equation: errors compound across steps. A step that succeeds 95% of the time sounds fine, until the task takes 20 such steps and end-to-end success drops toward 36%. That's why agents demo brilliantly and deploy disappointingly. It's also why the reliability toolkit looks the way it does: shorten the chain (fewer, higher-level steps), verify mid-flight (checkpoints that catch errors before they propagate), recover (retries, revisions, escalation), and measure like you mean it — evals that grade both outcomes and trajectories, plus tracing that lets a human replay any run. An agent without evals and traces isn't unreliable — it's unknowable, which is worse.

🎯 For the AI PM

Why it matters — The gap between "worked in the demo" and "works for customers" is precisely this lesson. Reliability determines the two numbers that make or break agent economics: task completion rate and human-intervention rate.

What it changes in your decisions — Spec reliability the way you spec features: target completion rate per task tier, maximum intervention rate, and the recovery behaviour when — not if — a step fails. Refuse to scale an agent whose failures you can't see, replay, and categorize.

Ask yourself — "How many sequential things must go right for this task — and what's our measured per-step success rate, not our hoped one?"

Risk if ignored — You promise autonomy on 30-step tasks with 5%-per-step error, ship a coin flip, and learn about it from churn instead of dashboards.

The compounding law

The compounding law

End-to-end success vs. task length · errors compound across steps

A "good" 95%-per-step rate still collapses to 36% success by step 20.

0 25 50 75 100% 1 5 10 20 30 50 Steps in the task
99% per step 95% per step 90% per step
Going from 95% to 99% per step takes a 20-step task from 36% to 82% success — small per-step gains are enormous end-to-end.

The top curve is 99% per step. The middle is 95%. The bottom is 90%. Read the middle one: a good per-step rate (95%) yields near-total failure on 50-step work. Three consequences are worth tattooing on every agent roadmap:

Design recovery in tiers. Retry handles transient failures, with backoff and a cap — the same action repeated identically five times is a loop, not persistence. Revise feeds the error back and lets the model change approach; this is where teaching errors pay off. Restart rolls back to a checkpoint, because that beats forty steps of drift. Escalate hands off to a human with context — a feature, not a failure. An agent that says "I'm stuck, here's where" keeps trust that a confident wrong answer destroys.

Evals: grade the journey, not just the destination

Everything from eval-driven development applies. Agents add a layer, because two runs can reach the same answer — one cleanly, one via eleven wasted tool calls and a lucky guess. Grade both:

Two agent-specific measurement traps deserve attention. Non-determinism: run each eval task several times and report pass rates with spread, since a single green run proves little. Environment drift: agent evals need stable sandboxed environments (seeded data, frozen APIs). An eval that flakes because the test environment changed teaches teams to ignore evals.

There's also a multi-turn debugging discipline, since agent failures rarely live where they surface: annotate the first upstream failing step, not the visibly wrong final answer. Twenty downstream turns of confusion usually trace to one bad retrieval or tool result. In multi-agent systems, log traces per agent but stitch them into one session view, or every incident becomes four transcripts and no story. For sessions with human handoffs, evaluate the agent's work up to the handoff — and whether it escalated at the right moment — rather than blaming it for what happened after. Above all, before building elaborate multi-step evaluators, try simplifying the workflow. A step that's hard to evaluate is often a step that shouldn't exist.

Observability: every run replayable

The non-negotiable is full traces: every model call, every tool call and result, every decision point, linked per run. Traces are how you debug ("why did it delete that?"), how you build eval sets (yesterday's weird trace is tomorrow's test case), and how you audit (governance). On top of traces, the dashboard that matters tracks: completion rate by task tier, intervention/escalation rate, steps and cost per task, tool-error rates by tool, and — the sleeper metric — user overrides. That's how often humans redo the agent's work. It's the truest quality signal you have, and it arrives before churn does.

Failure modes

Practitioner checklist