﻿# Inference retries: find the boundary where recovery stops paying for extra work

Evaluate an inference retry policy by recovered accepted operations, attempt amplification and bottleneck occupation under a fixed failure schedule.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/field-econ-retry-recovery-resource-frontier/
Language: en

## A success counter can conceal a larger queue

An inference service retries transient upstream failures. Its successful-response count rises, but its queue and occupied accelerator time also rise. The relevant decision is not whether retries can recover a request. It is whether the selected policy recovers enough acceptable logical work to justify its additional load within the same capacity boundary. This requires a comparison against a declared baseline, rather than dividing successful tokens by only the duration of the final successful attempt.

## Locate the retry boundary

The [gRPC retry guide](https://grpc.io/docs/guides/retry/) distinguishes configured retries from transparent retries and states that receiving response headers commits the RPC. It exposes call-level and attempt-level observations. [Envoy's retry documentation](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_routing.html) describes retries inside an overall timeout and retry budgets that constrain traffic amplification. Preserve the actual client, gateway and upstream policies. An application restart after a committed stream is a separate application decision, not evidence that the transport transparently resumed generation.

## Build an attempt resource ledger

Give each submitted operation a stable identity and attach every retry to it. Record where each failure occurred: before application admission, during prefill, during decode or after a completed response was lost. These locations have different resource consequences. Preserve elapsed occupation, known processed input, generated output and unresolved outcomes. Do not classify all unsuccessful attempts as free. Conversely, a connection failure before admission does not justify assigning a full generation's resource budget to the attempt.

## Use a controlled recovery experiment

Start with a versioned workload, acceptance rule and finite arrival schedule. Introduce a documented failure schedule in an isolated fixture, keeping the same logical operations for the baseline and candidate policies. First measure operation without the additional application retries; then enable the proposed policy. Vary the attempt cap and delay independently. Keep any unavoidable library retries visible in both arms. Preserve successful baseline operations as well as recovered ones, because extra retries can displace work that previously completed on time.

## Account for recovery and collateral loss

Report newly recovered acceptable operations, baseline successes lost under added contention, permanently failed operations and unresolved outcomes. Next to those counts show total admitted attempts and pool resource use over the same observation interval. Use the full failure cohort as a denominator, not only cases that eventually succeeded. When a replay changes batch composition, report that interaction instead of treating retry overhead as an additive constant. Additional attempts can alter scheduling, cache state and neighbors' waiting time.

## Exercise the overload feedback loop

The decisive failure case is a service already short of capacity: retries can reintroduce rejected work faster than capacity becomes available. A delay can shift this work without reducing its total volume. Test bounded bursts and verify that the installed retry budget actually suppresses excess attempts. Also test a persistent fault that no retry can repair. End the experiment at a declared total operation deadline and preserve the exhaustion outcome; an infinite retry loop has no meaningful resource-per-completion boundary.

## Publish the policy's supported envelope

The deliverable is a recovery-versus-resource table for the tested failure mix, not a universal optimal retry count or a provider billing model. Explain which ambiguity remains when remote work cannot be observed. Use the [idempotency guide](/journal/provider-post-retry-idempotency-ledger/) to handle repeated business effects and the [overload contract](/journal/provider-overload-retry-after-contract/) to interpret rejection advice. This analysis adds a distinct economic test: whether recovery increases accepted service within the available pool, after accounting for every attempt and displaced completion.
