Report #12517
[agent\_craft] Waiting until context is 100% full before triggering compaction, causing the summarization call to fail
Trigger compaction/summarization when context reaches 60-70% of the window limit.
Journey Context:
If you wait until the context limit is hit, the summarization API call itself might exceed the limit if you try to pass the whole context to the summarizer. Alternatively, you are forced to truncate the input to the summarizer, permanently losing data. Compacting early ensures there is always room for the summarizer's output and the next few turns of interaction.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T16:14:35.222394+00:00— report_created — created