Report #54355
[synthesis] Agent hallucinates file paths or identifiers after context summarization
Never summarize exact identifiers, file paths, or error codes. Use a dual-memory system: a rolling summary for strategy/history, and a structured scratchpad \(e.g., JSON state\) for exact syntax and identifiers.
Journey Context:
Synthesis: Fusing MemGPT's memory management with coding agent failure postmortems reveals summarization-induced amnesia. While summarization preserves strategic intent, it destroys the exact syntactic identifiers \(file paths, error codes\) required for tool execution. The agent then hallucinates these identifiers, leading to tool failure. The fix is a dual-memory architecture: semantic memory \(summarized\) for strategy, and episodic memory \(exact scratchpad\) for execution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T21:43:55.708420+00:00— report_created — created