Retries consume the same capacity that a failing service needs to recover. A retry helps when another attempt can complete useful work within the caller's deadline. If every layer independently retries an overloaded dependency, one user request can create many repeated attempts, most of which compete with new work and with each other.

Count the attempts through this call tree. The API can call the retriever three times. Each retriever attempt can call the reranker three times. Each reranker attempt can call the model three times. The worst-case total is 3 × 3 × 3 = 27 model calls for one logical request. If a hidden model SDK also makes three attempts per call, the bound becomes 81. These are structural maxima when all branches exhaust their attempts, not predictions that every request reaches them.

For a hypothetical offered load of 30 user requests per second, 27 leaf attempts per request corresponds to 810 model attempts per second from this path alone. A short deadline may prevent the full tree from executing, but failed cancellation can also leave old attempts running after the caller starts a replacement. Instrument the actual tree rather than assuming configured retry counts describe all work performed.

The amplification is harmful during overload because the dependency has less spare capacity, not more. A timeout may occur while the original request is still queued or computing. Repeating it adds another claim on that capacity. When many clients use identical retry delays, they can return together and create another burst just as the service begins to recover. Reducing a retry count from two to one at each of three layers still permits 2 × 2 × 2 = 8 model attempts.

The AWS Builders' Library discussion of timeouts, retries and jitter explains this layered multiplication and ways to reduce synchronized retries. Apply that reasoning to an explicit ownership policy. Usually the layer that understands the end-to-end operation should control its retry budget. Lower-level transport libraries may still need specialized recovery, but their attempts must be visible and included in the same effective limit.

Carry a deadline budget through every hop. Each service uses a local monotonic clock to subtract elapsed processing and waiting time before forwarding the remaining duration, with conservative allowance for transport delay. If using an absolute timestamp, require bounded clock skew and reserve margin. If 2.7 seconds of a three-second budget has elapsed, a new model attempt normally taking one second cannot help. Starting it merely spends resources on a result the caller will discard. Choose connection, queue and execution timeouts with the remaining budget in mind, and propagate cancellation where supported. A cancellation acknowledgement does not prove that a remote provider stopped computation or avoided a side effect.

Classify the error before retrying. Invalid arguments and incompatible schemas will not improve through repetition. A temporary connection failure may justify another attempt. A rate-limit response requires understanding the provider's limit and retry guidance. It can indicate a short capacity window or a condition that will not resolve during this request. A low-quality generated answer is a different problem from a transport failure and needs its own bounded repair policy.

For side-effecting operations, a timeout may mean the write committed but the response was lost. Retrying needs a stable operation identity and a valid external idempotency contract, or reconciliation before another submission. Retry ownership cannot turn an ambiguous payment into a safe repeat. A genuinely read-only operation is simpler, but repeated reads can still consume paid quota and return different source versions.

Use capped attempts with backoff and jitter for eligible failures. Backoff spaces attempts. Jitter varies their timing so clients are less likely to synchronize. Also enforce a retry budget, such as a limited number of retry tokens relative to successful or admitted work, so retries cannot dominate the fleet. Admission control bounds total work entering the overloaded dependency. A queue should not accept more time-sensitive work than can finish before its useful deadline.

Degradation must be an evaluated product behavior. Skipping a reranker or switching models may be acceptable for a low-risk slice, but a fallback that breaks tool behavior or data-handling requirements is not equivalent service. If no safe path exists, return a clear unavailable result. A circuit breaker can temporarily stop calls after failures, but its recovery probes must also be bounded and dispersed across instances.

Validate with injected slow responses, partial outages, SDK retries and clients disconnecting mid-call. Trace attempts per logical request, remaining deadline, queue time, cancellation outcome and cost per successful task. The policy succeeds when it preserves useful completions while limiting excess work during failure. A lower error count achieved by allowing requests to run past every user deadline would not demonstrate recovery.