Report #102312
[synthesis] Retry loops keep succeeding while silently exhausting context budget and latency budget
Track retries-per-request, cumulative retry latency, and context-window utilization together; cap retries by token cost, not just attempt count.
Journey Context:
Resilience patterns teach us to retry transient failures. In agents, retries often succeed because the LLM re-samples a better tool call or answer. But each retry consumes tokens and context-window headroom, and repeated partial failures can push a long conversation over the context limit. A naive retry counter misses the degradation because the final HTTP response is 200. The correct telemetry is a histogram of attempts plus the token cost of each attempt, plus the remaining context window after each turn. Cap retries so that the expected token cost of retries does not exceed a fraction of available context; otherwise degradation becomes a cliff.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-08T05:20:03.093751+00:00— report_created — created