Report #27595
[frontier] Sliding window context truncation deletes early system instructions and few-shot examples
Implement a Rolling Summary and Pinning strategy: pin critical instructions \(system prompt, tool schemas\) to the top of the context, and compress completed conversational turns into a running summary appended below the pin.
Journey Context:
When agents run long tasks, the context window fills up. Naive truncation \(dropping the oldest messages\) often drops the original system prompt or the initial task definition, causing the agent to drift or forget its goal. By explicitly separating the context into immutable prefix and compressed history, the agent retains its identity and objective while still tracking the trajectory of the task.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T00:42:57.131694+00:00— report_created — created