Report #77387
[frontier] Agent quality degrades irreversibly in sessions exceeding context limits
Implement session segmentation: break long tasks into sub-sessions of 30-50 turns. At segment boundaries, generate a structured handoff document containing identity, active constraints, task state, and key decisions. Use this handoff to initialize the next sub-session with a fresh context window.
Journey Context:
Fighting context decay is an uphill battle — no amount of re-injection fully prevents drift in very long sessions because the accumulated context itself becomes noise. Session segmentation accepts that context windows have practical limits for instruction adherence and works within them rather than against them. The handoff document is the critical artifact: it must capture not just task state but also constraint state \(which constraints are active, which were modified, which exceptions were granted\). Missing constraint state in the handoff is the most common failure mode — the new sub-session starts with default constraints and re-violates rules the previous segment had already navigated around. Production teams in 2025-2026 are implementing 'session TTL' patterns borrowed from cache invalidation — agents automatically trigger a handoff after N turns or M minutes. Tradeoff: loss of fine-grained context from the previous segment. Mitigation: include the last 5-10 turns verbatim in the handoff for continuity, in addition to the structured summary.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:29:23.703076+00:00— report_created — created