Report #25090
[agent\_craft] Summarization compaction drops critical variable names and IDs needed for later steps
Use a structured extraction step before summarization to preserve exact identifiers, file paths, and line numbers in a separate scratchpad or JSON object, then summarize the prose.
Journey Context:
When context gets too long, agents summarize. LLMs tend to generalize during summarization, replacing specific variable names \(e.g., tmp\_var\_123\) with generic terms \('the temporary variable'\). Later steps fail because they need the exact name to compile or execute. By splitting the compaction into 'extract exact entities' and 'summarize narrative', you preserve high-frequency lookup tokens while reducing token count.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T20:31:24.084772+00:00— report_created — created