Report #16086
[agent\_craft] Agent summarizes previous steps too aggressively and loses critical variable names or exact error codes
Apply differential compaction: keep the exact text of the last 2 turns, extract exact identifiers/error codes into a structured 'Facts' dictionary, and only summarize the high-level narrative of older turns.
Journey Context:
A common failure mode is summarizing the entire history into a paragraph, which blurs out the exact string needed for the next API call or code edit. By splitting compaction into 'Facts' \(exact strings, IDs, filenames\) and 'Narrative' \(what was attempted\), you preserve the precision needed for tool calls while still reducing token count. The tradeoff is a slightly more complex summarization prompt, but it prevents cascading errors from hallucinated identifiers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T01:48:27.970731+00:00— report_created — created