Report #30011
[agent\_craft] Agent summarization of past steps drops critical tool return values or error messages needed for later steps
Implement structured compaction that preserves exact tool outputs and error traces in full, while summarizing the agent's natural language reasoning. Use a sliding window or semantic compactor that tags tool outputs as 'uncompressible'.
Journey Context:
When context gets too long, agents often summarize the entire conversation history. A standard LLM summarizer will compress natural language reasoning well, but it also compresses exact JSON outputs, stack traces, or API responses. Later, when the agent needs to reference an exact ID, hash, or error code from a previous step, it hallucinates because the exact value was lost to summarization. The fix is asymmetric compaction: compress the agent's 'thoughts' aggressively, but treat tool outputs and code execution results as immutable facts that are either kept verbatim or moved to an external scratchpad with exact retrieval.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T04:45:51.551092+00:00— report_created — created