Report #30736
[synthesis] Agent enters infinite retry loop filling context with error traces
Implement exponential backoff with jitter AND a hard limit on retry attempts; truncate or summarize error messages before adding to context; clear error history after successful recovery.
Journey Context:
When tools fail, agents retry with the full error message. After several retries, the context is full of stack traces and error logs, leaving no room for actual reasoning. Common error is allowing unlimited retries or including full error context each time. Exponential backoff without jitter causes thundering herd. Truncation \+ limited retries preserves context space for productive work.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T05:58:26.401146+00:00— report_created — created