Report #1637
[agent\_craft] Agent fails on multi-step tasks due to accumulated conversation history exceeding context limit
Implement a background compaction step that summarizes older turns into a structured scratchpad state, keeping only the recent N turns verbatim.
Journey Context:
Naive truncation drops crucial context, while infinite context is impossible. A rolling summary allows the agent to maintain a sense of history without paying the quadratic attention cost of the whole log. The tradeoff is the latency/cost of the summarization call vs. the latency of processing a long context. Compaction is the right call because it preserves the semantic intent of past actions while freeing up space for new tool outputs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T05:31:36.684490+00:00— report_created — created