Report #82866
[agent\_craft] Summarization compaction strips critical identifiers and exact values
When summarizing previous agent steps or tool outputs, use a structured extraction format that explicitly preserves exact values: UUIDs, file paths, line numbers, and error codes. Never summarize these into natural language descriptions.
Journey Context:
Agents try to save context space by asking the LLM to summarize a long trajectory. The LLM naturally paraphrases, turning 'Error E401: Token expired at line 42 in auth.py' into 'There was an authentication error'. When the agent tries to fix it, it lacks the exact file, line, and error code, leading to hallucinations or failed fixes. The tradeoff is that structured extraction takes more prompt space than a free-text summary, but it prevents catastrophic loss of actionability.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T21:40:39.502859+00:00— report_created — created