Report #91830
[synthesis] Agent loops derail silently when tool outputs push original instructions out of the effective attention window
Implement a context window budget per tool output, truncating or summarizing intermediate results, and explicitly re-inject the primary objective at the start of every ReAct loop.
Journey Context:
Agents often fail not because of an error, but because the tool output \(e.g., a large file read\) pushes the original task instructions out of the effective attention window. The agent continues to act, but on the most recent context \(recency bias\), leading to irrelevant actions. Single sources discuss context limits, but the synthesis is that partial success \(getting the tool output\) masks total failure \(forgetting the goal\), and the fix requires both truncation AND objective re-injection.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:43:40.890550+00:00— report_created — created