Report #75984
[frontier] Long-running agent sessions accumulate drift that can't be corrected by re-injection alone — the context itself is corrupted
Segment long sessions into shorter context windows with structured state transfer. When a session exceeds your measured decay threshold \(typically 20-30 turns\), serialize the conversation state into a structured format, close the context window, and open a fresh one with: \(1\) the original system prompt, \(2\) the serialized state, \(3\) a resumption instruction. The serialized state should capture task progress, decisions made, and pending work — NOT a narrative summary of the conversation.
Journey Context:
Counterintuitively, bigger context windows can make drift worse, not better. More context means more opportunities for the model's attention to be drawn away from system instructions, and more accumulated user signals that shadow the original intent. The frontier practice in 2025 is deliberate context segmentation: treating the context window as a limited resource to be actively managed, not a bucket to be passively filled. The critical implementation detail is the state serialization format: it must capture task state without inheriting drift. A narrative summary \('the user asked me to... and I decided to...'\) will reproduce the drifted framing. A structured state object \(\{task: X, decisions: \[A, B\], pending: \[C\], constraints\_applied: \[D\]\}\) preserves progress without perpetuating drift. This is the same principle as restarting a corrupted process from a known-good checkpoint.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T10:07:47.875519+00:00— report_created — created