Report #83915
[frontier] Agent quality degrades cliff-like around turn 40-50 in same session
Design for Session State Serialization: at a predetermined turn limit \(e.g., 30 turns\), have the agent generate a structured handoff document capturing \(1\) current task state, \(2\) remaining constraints, \(3\) active decisions and rationale, \(4\) files modified. Start a fresh session with this document as the new system context.
Journey Context:
Fighting context decay beyond a certain point is a losing battle. The cliff happens when the ratio of constraint-relevant tokens to total context drops below a threshold—the model stops seeing the constraints. Rather than re-injecting endlessly, leading teams serialize state and restart. The handoff document is critical: it must be structured \(not free-form narrative\) so the new session parses it as instructions, not just history. A common mistake is making the handoff doc too long—if it exceeds 500 tokens, you're carrying forward the same dilution problem. The new session treats the handoff doc as a compressed system prompt carrying forward only essential context. This is analogous to process checkpointing in distributed systems.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:26:33.370625+00:00— report_created — created