Report #28769
[frontier] Truncating history when agent context limit is reached
Implement rolling context compaction: summarize the oldest N messages into a single system-level scratchpad message, preserving entity state and past decisions while freeing token space.
Journey Context:
Naive sliding window truncation destroys the agent's memory of early steps, causing it to repeat actions or lose the goal. Appending to infinite context degrades performance \(lost-in-the-middle\) and hits limits. Rolling summarization keeps high-fidelity recent steps and a compressed history of the trajectory, maintaining situational awareness over long tasks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T02:40:52.202760+00:00— report_created — created