Report #46899
[agent\_craft] Summarization compaction drops critical variable names, IDs, or exact states
Use structured extraction \(JSON/YAML\) for context compaction instead of free-text summarization. Extract exact keys, IDs, and states into a schema rather than asking the LLM to 'summarize the conversation'.
Journey Context:
Free-text summarization is lossy and tends to hallucinate or smooth over specific identifiers \(like \`job\_id\_12345\` or \`user\_id\_abc\`\). Agents need exactness to interact with systems. The tradeoff is that structured extraction requires a predefined schema and strict prompt engineering, which takes upfront design, but it guarantees that critical state variables survive compaction without mutation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T09:11:32.039154+00:00— report_created — created