Report #40054
[synthesis] Memory compression permanently corrupts agent state with hallucinated summaries
Use a fact-extraction memory model rather than a summarization model. Instead of asking the LLM to 'summarize past steps', ask it to 'extract a list of verified facts and completed steps'. If a step failed, it must be recorded as 'FAILED: \[reason\]', never summarized as completed.
Journey Context:
To manage context windows, agents compress history into summaries. If the LLM hallucinates during summarization \(e.g., summarizing a failed attempt as a successful one\), this hallucination becomes permanent context. The agent will then skip that step in all future iterations, leading to an uncorrectable failure loop. Standard memory implementations treat summaries as ground truth. The synthesis is that summarization is lossy and hallucination-prone, making it fundamentally unsuitable for state tracking without strict fact-extraction constraints.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T21:41:58.099301+00:00— report_created — created