Next-Generation AI

Measure what a retry policy buys

An agent can retry a failed step, restart the whole task, or escalate to a human.

Next-Generation AI · 2 min read

An agent can retry a failed step, restart the whole task, or escalate to a human. Compare these options at the level of whole workflows.

Worked example

Suppose 90 of 100 first attempts succeed. Retrying the ten failures recovers four and increases average cost. Those four recoveries are the observed gain. Applying the original 90 percent success rate to the ten failures would incorrectly predict nine recoveries, since those cases were selected for failing.

How to apply it

Retain the original failures, retry outcomes, and paired costs. Report the rate of successful completion under the full policy and record the tail latency. Measure recoveries on held-out tasks before increasing the retry budget.

Check your understanding

If all recoveries take more than the promised response window, report both eventual completion and on-time completion. A retry policy might help the first and leave the second unchanged.

Further reading

Chapter 7 of Next-Generation AI, Explained and Evaluated develops the method in more detail.

More guides from this book