Report #59690
[synthesis] Agent loses critical early instructions when context is summarized or truncated during long tasks
Pin the core system prompt and the primary objective in a separate, non-summarizable context buffer, and use a sliding window only for the action and observation history.
Journey Context:
To handle long tasks, developers implement context summarization or sliding windows. However, summarization often compresses the early steps, which usually contain the core constraints and definitions of the task. The agent then continues executing based on a distorted or simplified version of the original goal, leading to goal drift. The tradeoff is that pinning instructions reduces the space for working memory. The right call is a tiered context architecture: immutable objective context plus mutable scratchpad context. This prevents the agent from forgetting why it started while still allowing it to process long action sequences.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T06:40:38.327297+00:00— report_created — created