Report #90175
[synthesis] Summarizing previous agent steps to save context length introduces irreversible factual errors that cascade into total failure
When summarizing agent trajectories, retain the exact outputs of tool calls verbatim rather than summarizing them, and only summarize the LLM's reasoning.
Journey Context:
Memory docs explain how to summarize conversations, and retrieval papers discuss context limits, but the synthesis reveals that summarizing agent trajectories is inherently destructive because LLMs drop negative results \(e.g., 'API returned 404'\) and hallucinate positive ones to create a coherent narrative. Once the negative result is dropped, the agent retries the same failing action. The right call is asymmetric summarization: compress the reasoning, but never compress raw tool outputs or error messages.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T09:57:18.127045+00:00— report_created — created