Error Compounding in Agent Trajectories
Per-step reliability raised to the power of the horizon — why 95% per step is a failing agent, and what majority voting does and does not repair.
The compounding law
Let an agent take steps, each succeeding independently with probability , where the trajectory succeeds only if every step does. Then
and achieving a target success rate requires per-step reliability
Assumptions
Independence across steps, and a strict conjunction — no step is recoverable. Both are idealisations, and the second is relaxed below. Independence is the more suspect: a mistaken early step often makes later steps harder, which correlates failures positively and makes the true number worse than , not better.
Voting, and when it works
Sampling a step several times and taking the majority is the standard repair. Its guarantee is classical.
Let be independent indicators of a correct vote, each with \P(V_i = 1) = p > 1/2, and let the decision be the majority. Then
which tends to as .
Key idea
The exponent contains . At the bound decays like — about 26 votes to reach 99%. At it decays like , needing over 900. Voting rescues a step that is reliably better than chance; it barely touches one that is marginal, and for p < 1/2 it drives confidently to the wrong answer.
Why it usually helps less than that
Recovery changes the exponent
The compounding law assumed a step failure is terminal. Agents that can notice a failure and retry are playing a different game.
Suppose a step succeeds with probability ; on failure it is detected with probability ; and a detected failure is retried, independently, up to times. Then the effective per-step success probability is
What this does not say
Every model on this page assumes independence somewhere — across steps, across votes, across retries. Real agent trajectories violate all three, generally in the unfavourable direction: a confused agent stays confused, and its self-check is performed by the same confused model. Use these formulas to set expectations and to compare designs, not to predict a deployment's success rate. The measured quantity that matters, and that none of this derives, is the correlation structure of an agent's errors along a trajectory.
Open problem — no proof and no counterexample is known to the author of this page.
No accepted model predicts an agent's end-to-end success rate from measurable properties of its base model and its tool environment. The compounding law gives the right qualitative shape and is quantitatively wrong because of the correlations it ignores; there is no established way to estimate an effective horizon or an effective independent-vote count in advance.
Results stated on this page
- PropositionTrajectory success decays geometrically in the horizonproof includedUnder independent steps with success probability p, an n-step trajectory succeeds with probability pⁿ, so the per-step bar for a target T is T^(1/n).
- TheoremMajority voting with independent votesproof includedFor k independent votes each correct with probability p > 1/2, the majority is wrong with probability at most exp(−2k(p−1/2)²).
- PropositionCorrelated votes destroy the guaranteeproof includedWith perfectly correlated errors the majority is exactly as reliable as a single sample, however large k is.
- PropositionDetect-and-retry raises the effective step reliabilityproof includedWith detection probability d and m retries, effective per-step success rises to 1 − (1−p)(1−dp)^m under the stated independence.
Problems (6)
All problems- Trajectory success from per-step reliabilityNumericalFoundation⏱ 15 min
- Majority voting via HoeffdingProofIntermediate⏱ 30 min
- What correlation does to votingProofIntermediate⏱ 30 min
- Simulate an agent pipeline end to endCodingAdvanced⏱ 1 day
- The reliability wallNumericalBeginner⏱ 15 min
- Detect-and-retry arithmeticProofIntermediate⏱ 30 min