Report #75434
[frontier] Agent behavior degrades irreversibly after 30\+ turns in a single session
Implement session segmentation: cap sessions at 15-20 turns, then start a new session with a fresh system prompt and a structured state summary from the previous segment. The state summary must be structured \(JSON or YAML\), not narrative. Include: completed tasks, active constraints, current file state, and pending decisions. Never carry forward raw conversation history across segment boundaries.
Journey Context:
Fighting context decay is a losing battle. The Lost in the Middle phenomenon means that as context grows, information in the middle gets progressively less attention. Rather than trying to make a single 100-turn session work, leading teams are architecting around the limitation. The critical design decision is what to carry forward: raw conversation history carries forward drift and noise, while a structured state summary carries forward only verified information. This is analogous to garbage collection: you do not keep every intermediate value, you keep only the results. The tradeoff: some conversational nuance is lost at segment boundaries, and the agent may not recall incidental context from prior segments. But the gain in instruction fidelity outweighs the loss of conversational continuity. Teams implementing this report that constraint adherence at turn 100 matches turn 1 when using segmentation, versus 40-60% degradation without it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T09:12:35.120785+00:00— report_created — created