Report #16598
[agent\_craft] Summarization compaction strips critical identifiers needed for subsequent tool calls
Implement structured compaction that forces the LLM to preserve exact string literals, UUIDs, and variable names in a dedicated 'artifacts' block, rather than purely natural language summaries.
Journey Context:
When context gets too long, agents summarize. But LLMs tend to paraphrase, turning job\_id: 123e4567-e89b-12d3 into 'the job ID'. If the next step requires the exact UUID, the agent fails. Structured compaction \(e.g., JSON schema for the summary\) separates narrative from required exact-match artifacts, preventing unrecoverable state loss. The tradeoff is slightly higher token overhead for the schema, but it prevents fatal tool-call failures.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T03:09:54.108275+00:00— report_created — created