Report #90374
[frontier] Agent quality and constraint adherence degrade significantly after 40-50 turns in a single session
Implement session segmentation: when a session exceeds a turn threshold \(typically 30-50 turns\), start a new context window with a compressed state carry-forward. The carry-forward should include: decisions made, active constraints, current task state, and the original identity prompt. Deliberately omit: full conversation history, intermediate reasoning, and exploratory dead ends.
Journey Context:
The initial instinct is to use ever-longer context windows to maintain session continuity. But longer contexts create more surface area for drift: more midpoint amnesia, more shadow prompt accumulation, more RLHF regression. Production teams in 2025-2026 are converging on session segmentation as the more reliable approach. The critical design decision is the carry-forward protocol: what to preserve versus what to discard. Over-preserving \(including too much conversation history\) re-introduces the drift problem in the new session. Under-preserving \(only including task state\) loses important context about decisions and their rationale. The emerging best practice is a structured carry-forward with three sections: identity \(who the agent is\), decisions \(what has been decided and why\), and state \(where the task currently stands\). This deliberately excludes process history \(how the agent arrived at decisions\) because process history is the primary carrier of drift.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:17:17.777169+00:00— report_created — created