Skip to content

Your 95% Reliable Agent Fails Half Its 14-Step Tasks

8 min read#ai#agents#reliability#distributed-systems

An agent that's right 95% of the time on every step finishes a 14-step job cleanly only 49% of the time.

That's a coin flip from a model you'd happily call reliable. So what buys the other half back, and what only looks like it helps?

The arithmetic is one line: 0.95 to the power of 14. If your agent chains ten or more tool calls, it's already running on you.

In Do You Really Need AI Agents? I said a fair comparison would report tokens, seconds, and error rate. This is a partial sequel, and only about the error rate. I wrote a seeded simulation of a many-step task and tried five ways of handling failure. It's a model, not a measurement of any real LLM.

My claim: per-step reliability compounds, so long runs fail often even with a good model. Retries only help when failures are transient and steps are safe to repeat. When they are, checkpoints and shorter loops buy back more reliability than a better prompt.

The short version

  • At 95% per step, a run is at 50% by step 14. At 90% it takes 7 steps, and at 99% it takes 69.
  • With transient failures, two retries took a 20-step run from 35.5% to 99.8%. With half the failures persistent: 60.4%.
  • Resuming from a checkpoint finished 100.0% of runs at 95% per step, if failures are transient. A 99% agent with no retries at all finished 81.7%, which isn't a fair fight, but it shows where the cheap gains are.
  • Retrying a step with a side effect can do it twice. Idempotency keys took the duplicates to zero.

Why does 95% per step fall apart so fast?

Because every step has to work, so the chances multiply. It's the same shape as the 5% a day decay from October, with steps standing in for days.

A run drops to 50% after ln 0.5 / ln p steps: 6.6 at 90%, 13.5 at 95%, 69 at 99%. Even the 99% agent is down to two in three by step 40.

Chart: chance an agent finishes every step against number of steps. At 95% per step it falls to 49% at step 14; at 90% it crosses 50% by step 7 and at 99% by step 69

Researchers hit the same wall from the other side. τ-bench scores customer-service agents on whether the database ends in the right state, and adds pass^k: the chance the agent solves the same task in all k trials. The paper reports gpt-4o at about 61% on its retail tasks for one trial, and under 25% for eight.

What did I simulate?

A task is n steps in a row. Each model call attempts one step and succeeds with probability p. I ran 20,000 tasks for 5, 10, 20, and 40 steps at p of 0.90, 0.95, and 0.99, with a fixed seed. At 95% and 20 steps the no-retry run finished 35.5%, against a predicted 35.8%. The script, raw output, and full table are in the repo.

Five strategies: no retries, retry twice on transient failures, retry twice with half the failures persistent, checkpoint every five steps and resume, and retries on steps that aren't idempotent. Checkpoint and restart runs are capped at 3n calls.

Do retries fix it?

Only when the failure goes away on its own. One cell, 95% per step over 20 steps:

Strategy Success Model calls per completed task
No retries 0.355 36.1
Retry twice, transient 0.998 21.1
Retry twice, half persistent 0.604 28.3
Restart from step 1 (capped) 0.888 37.4
Checkpoint every 5 (capped) 1.000 23.4

The last column is cost per finished task. No retries looks cheap per run, but two thirds of runs spend their calls and produce nothing.

The transient row is the dream. Make half the failures persistent and it collapses to 60.4%. That's a tool returning the same error three times: a wrong parameter, a missing permission, a page that changed. Retrying it just buys the same error again.

At 90% and 40 steps it's starker. No retries finish 1.5% of runs, transient retries 95.8%, persistent ones 12.6%.

That's the cheap part. Now the part that actually saves you.

What do checkpoints buy?

Most of it. At 20 steps and 95%, resuming from a checkpoint finished 100.0% of runs for 23.4 calls per success. Restarting from step 1 finished 88.8% for 37.4. At 40 steps the gap is 100.0% against 57.8%. A failure only costs the segment since the last save: fail at step 18 with a checkpoint at 15, and you repeat three steps, not eighteen.

That 100.0% assumes the failures are transient. A checkpoint in front of a persistent failure just replays the same error. Checkpoints make retries cheap. They don't make a broken step work.

What about a better prompt? Say prompt work moves you from 95% to 99% per step, a fivefold cut in failures and hard to get. On 20 steps the run goes from 35.5% to 81.7%. The checkpoint at 95% reached 100.0%. That flatters the checkpoint, since the 99% agent got no retries. Read it as: once failures are transient, structure is cheaper than prompt work. It also protects you the day a prompt change quietly backfires.

Anthropic's advice on building agents points the same way. It warns that autonomy brings compounding errors and suggests pausing for a human at checkpoints. In frameworks like LangGraph, that means persisting state between steps so a run can resume instead of restart.

What happens when a retry isn't safe?

You get the same side effect twice. A step times out after the action landed, the retry does it again, and now there are two charges, two emails, or two tickets.

At 95% and 20 steps, with half of failures being such timeouts, that was 0.537 duplicates per run, and 41.1% of runs had at least one. At 90% and 40 steps: 2.156 per run, 88.0% with at least one. Half being timeouts is my assumption, so trust the shape.

The old fix is idempotency, and Stripe's version is the one to copy. The client sends an Idempotency-Key header, the server saves the first response for that key, and a retry gets the saved response instead of repeating the work. Keys can be pruned after 24 hours. With keys, my simulated runs had zero duplicates at no change in calls.

If an agent can call a tool that moves money or sends a message, the tool needs a key. The agent can't be trusted to remember it already did it.

Where I'd stop trusting this post

Steps aren't independent coin flips. The strongest objection. A strong model often notices a bad result and tries something else, so real curves are flatter than p^n. METR's study of task length found models got better at adapting to mistakes, and that the task length they finish at 50% reliability has doubled roughly every seven months since 2019. That paper is from March 2025, so lean on the trend. Two things keep me from dropping the model: METR's 80% horizons are 4 to 6 times shorter than its 50% ones, and Huang et al. found models can't reliably fix their own reasoning without external feedback. Recovery works when a test fails. It does less when the mistake is silent. τ-bench shows the flattening too: identical 61% coins would pass all eight trials 1.9% of the time (0.61^8), but the paper reports under 25%, because tasks vary.

I assumed failures are detected. My simulation knows instantly when a step fails. A real agent can take a wrong step and carry on confidently. Retries and checkpoints don't fix that. Verification does: tests, schema checks, a second pair of eyes.

The numbers are mine to set. Persistent share, timeout share, a checkpoint every five steps, the 3n cap. The shape holds. The percentages don't transfer.

I didn't run a real model. No tokens, no seconds, no LLM.

The takeaway

Tomorrow, before you make an agent run longer, work out p^n with the per-step success you honestly believe. If it's under 90%, skip the prompt rewrite. Cut the run into segments that save state and can be verified, give every side-effect tool an idempotency key, and add retries only for errors you can show are transient.

That's a rule of thumb from a simulation, not a production system. What would change my mind: a real agent on a real task with detected failures and a much flatter curve than p^n.