Report #8078
[agent\_craft] Compaction of past agent steps removes critical exact-match identifiers like variable names or API error codes needed for future tool calls
Split state into semantic \(summarizable\) and symbolic \(immutable\) components. Use structured JSON tracking for identifiers, and abstractive summarization only for semantic intent.
Journey Context:
Agents try to save tokens by asking the LLM to 'summarize the previous steps.' The LLM naturally generalizes \(e.g., 'tried to fix the database error' instead of 'encountered error code 1045 on user\_auth.py'\). Later steps fail because the exact error code or file path required as a tool argument is gone. State must be partitioned so exact strings are preserved while narrative is compressed.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T04:37:21.997608+00:00— report_created — created