Retrying an agent after failure can complete more tasks while increasing the cost per completion. We study a static policy that stops at verified success or an attempt cap and otherwise resets the original prompt and workspace without passing feedback to the next request. Under stationary task success probabilities, independent attempts conditional on the task, and a common attempt cost, easier tasks tend to succeed earlier. When task success probabilities differ, the unresolved mix shifts toward harder tasks. Specializing classical survivor selection, we show that cost per completion is at least as high as in one-shot serving and that marginal cost per additional completion is nondecreasing wherever the completion increments are positive. These are different quantities: one averages spending over all completions, while the other prices the completions added by another attempt. We then arrange each task's existing benchmark runs in different orders, stop each sequence at verified success or the attempt cap, and average the resulting completion and spending at each supported cap. For one OpenHands configuration, replay estimates completion of 59.7 percent with one attempt and 70.0 percent with four, while cost per completion rises from about USD 0.70 to USD 1.32. The recorded trade-off describes fixed configurations on the available tasks. Choosing a cap requires comparing the additional spending with the application's value for the additional completions.
Figures & tables
Figure 1. Static retries and their measurement. (a) Success stops the service; failure permits another attempt on the same task through cap K . (b) The equal-weight easy/hard mixture and the homogeneous population have the same one-shot success rate. Displayed mixtures and ratios use stationary success probabilities, conditional independence, and constant attempt cost. (c) Averaging stopped orders of recorded outcome-cost pairs gives completion Q , stopped spend B , cost per completion E , and the ratio R to one-shot serving. Three panels show the stop-on-success retry rule, the changing unresolved task mix in a heterogeneous example alongside a homogeneous control, and the calculation from repeated recorded runs.
Quantity
One attempt
Up to four attempts
Completion
59.7%
70.0%
Cost per completion
$0.70
$1.32
Table 1. Recorded-run replay for one OpenHands configuration on 500 tasks.
Quantity
Question answered
Q(K)
What share of incoming tasks completes within the cap?
B(K)
How much does the stopped service spend per incoming task?
E(K)
How much does it spend per completion?
R(K)
How does cost per completion compare with one-shot serving?
Mr
What does attempt r cost per completion that it adds?
Table 2. Retry quantities and the questions they answer.
Figure 2. OpenHands, n=500 incoming tasks. Left: completion Q(K) (%) and stopped spend B(K) (recorded USD/task); segments join adjacent discrete caps. Right: marginal cost Mr (USD/additional completion). Point estimates; no uncertainty intervals. The completion axis is focused. M1=E(1) is the one-shot cost per completion. Marginal costs are calculated from unrounded estimates. The first panel marks completion and stopped spending at each of the four OpenHands retry caps. The second marks the corresponding marginal cost per additional completion at each attempt.
Panel
Tasks
Configs.
Cost ratio ( R4 )
95% interval
Primary
500
12
1.7731
[1.7096, 1.8476]
τ2
164
4
1.2365
[1.1500, 1.3309]
OpenHands
500
1
1.9036
[1.7860, 2.0232]
Table 3. Cost per completion at four attempts relative to one.
Figure 3. All 12 primary configurations, n=500 incoming tasks each. Completion Q(K) (%) versus stopped spend B(K) (attempts/task). Segments join adjacent discrete caps K=1,…,10 . Point estimates; no uncertainty intervals. Twelve configuration-specific panels show completion and mean stopped unit-cost attempts at every supported cap in the primary panel.
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 4. All four τ2 configurations, n=164 incoming tasks each. Completion Q(K) (%) versus stopped spend B(K) (recorded USD/task). Segments join adjacent discrete caps K=1,…,4 . Point estimates; no uncertainty intervals. Completion axes are focused. Four configuration-specific panels show completion and mean stopped monetary spend at every supported cap in the tau-squared benchmark panel.
Target
Contrast in logR4 [95% CI]
c01
0.0065 [0.0027, 0.0107]
c02
0.0095 [0.0050, 0.0148]
c03
0.0043 [-0.0005, 0.0100]
c04
-0.0004 [-0.0061, 0.0055]
τ2D
0.0054 [0.0024, 0.0086]
τ2 diff.
0.0046 [0.0006, 0.0088]
Appendix
Table 4. Log-ratio contrasts under cost replacements and plug-in replay.
Design
Target
Coverage
MC 95%
Simultaneous F13
Shared tie
percentile
60/64
[0.8476, 0.9827]
[0.7988, 0.9918]
Shared tie
BCa
61/64
[0.8691, 0.9902]
[0.8222, 0.9962]
Independent sham
percentile
63/64
[0.9160, 0.9996]
[0.8746, 1.0000]
Independent sham
BCa
63/64
[0.9160, 0.9996]
[0.8746, 1.0000]
High homogeneous
percentile
61/64
[0.8691, 0.9902]
[0.8222, 0.9962]
High homogeneous
BCa
54/64
[0.7314, 0.9224]
[0.6755, 0.9469]
Appendix
Table 5. Synthetic interval coverage and delivery diagnostics.