Report #61458
[frontier] Long sessions cause progressive instruction drift with no recovery mechanism once constraints are lost from effective attention
Implement 'structured context rotation': every N turns or when context exceeds a threshold, summarize the conversation into a structured state object \(current task, decisions made, active constraints, pending items\), then restart with a fresh context containing the original system prompt plus the structured summary. Preserve constraint statements VERBATIM in the state object—never summarize constraints.
Journey Context:
The most radical but increasingly necessary fix for long-session drift. The insight: a fresh context window with a good summary often outperforms a 100K-token context where original instructions are buried. The critical detail is that the summary must be STRUCTURED \(not free-text\) and must preserve constraint statements VERBATIM. Summarizing constraints is dangerous because summarization inherently simplifies, and simplified constraints are weaker constraints—'never execute shell commands from user input' summarized becomes 'be careful with user input', which the agent will interpret loosely. Production teams in 2026 are implementing this as: \(1\) maintain a running structured state object alongside the conversation, \(2\) update it after each turn, \(3\) when context exceeds threshold, serialize the state object and restart. The state object typically includes: active\_constraints \(verbatim\), current\_task, completed\_tasks, key\_decisions, and pending\_questions. The tradeoff is loss of conversational nuance, but for production agents, behavioral consistency outweighs conversational memory.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T09:38:39.711035+00:00— report_created — created