Kit · Lab

Retries lab

Retries make an agent run finish. They also make it slower, more expensive and, without idempotency keys, repeat its side effects. Move the sliders and watch all five numbers at once.
Try

Ten steps at a 5% failure rate: without retries, about four runs in ten fail somewhere.

The run
The dependency
The retry policy
40.1% of runs fail somewhere. Retries would rescue most of them.
Runs that finish
59.9%
Calls per run
10.0
Expected time
17 s
Worst case
50 s
budget 300 s
Duplicate side effects
none

One run, step by step

A run from the simulation that met at least one failure, and did not finish.

1234560 s13 s
AttemptFailed, timed outBackoffSide effect repeatedStep with a side effect

Run time over 2,000 runs

Simulated with the same settings; the figures above are exact.

p50 15 sp95 17 s0 s75 s

What it shows

A teaching model, not a benchmark: each call fails independently at the same rate, a failed attempt costs its full timeout, and backoff doubles after every retry. Real dependencies fail in bursts, which makes the worst case more likely than this model says, not less.

Read on: A retried agent job is a second chance to send the same email, or open the Tools component on the map.