Report #43513
[frontier] Agent personality and constraints drift irreversibly after 40\+ turns in a single session
Implement session segmentation: cap sub-sessions at 15-25 turns. At each boundary, generate a structured state transfer document \(current goal, completed steps, active constraints, key decisions made\) and inject it as the seed context for the next sub-session. Reset the system prompt fresh in each sub-session. The state transfer must be structured \(bullet lists, key-value pairs\), never narrative prose.
Journey Context:
Context fidelity degrades non-linearly — the first 20 turns are high fidelity, turns 20-40 are medium, and beyond 40 the agent increasingly operates on pattern completion rather than explicit instructions. Rather than fighting this decay curve with increasingly desperate re-injections, leading teams in 2025 are embracing it by designing for short sessions with explicit handoffs, analogous to shift changes in human teams. The state transfer document is the critical piece: it must be structured because narrative transfers carry drift patterns forward. The tradeoff is engineering complexity and slight loss of conversational nuance, but the gain in instruction fidelity is dramatic. Teams at Cursor and Devin have converged on this independently.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T03:30:45.857551+00:00— report_created — created