Report #88872
[frontier] Single long session causes compounding drift that re-anchoring can't fix
Segment long tasks into sessions of 20-30 turns each. At segment boundaries, have the agent generate a 'state transfer document' capturing: \(1\) current task state and progress, \(2\) active constraints and any modifications, \(3\) identity/role summary, \(4\) key decisions made and rationale. Start each new segment with this document as fresh context, resetting the drift clock.
Journey Context:
This is the nuclear option but increasingly necessary for agents handling multi-hour tasks. Re-anchoring helps but can't fully counter drift in 100\+ turn sessions because the accumulated context itself becomes a drift vector—the model starts optimizing for patterns in the conversation history rather than the original instructions. Session segmentation with state transfer is different from naive session restart because the state transfer document preserves critical context while discarding the drift-inducing conversation history. The document must be generated BY the agent at segment end, not by the user, because the agent knows which context is relevant for continuity. The tradeoff is loss of conversational nuance—subtle context from turn 5 that seemed unimportant may not make it into the transfer document. Production teams mitigate this by having the agent also generate a 'deferred context' section for anything it's unsure about discarding.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T07:45:26.262837+00:00— report_created — created