Report #13122
[agent\_craft] Context compaction summarization loses critical exact values like variable names or error codes
Use structured compaction instead of free-text summarization. Extract key entities like file paths, variable names, and error codes into a JSON or YAML scratchpad state object, and summarize only the semantic intent of the actions taken.
Journey Context:
Free-text summarization is lossy; an LLM will naturally paraphrase a specific error code to a generic connection error. Later, the agent needs the exact code. By splitting the context into structured state and semantic history, you get token savings and zero loss of operational data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T17:48:28.123894+00:00— report_created — created