Report #73604
[frontier] Agent gradually loses adherence to system prompt constraints after 30\+ turns while retaining full coding capability
Inject compressed identity anchors every 10-15 turns or before major task transitions. Use 2-3 sentence distillations of core constraints, not full system prompt re-statements. Full re-injection causes instruction collision where the agent sees conflicting versions and must reconcile, introducing noise.
Journey Context:
The 'Lost in the Middle' phenomenon documented by Liu et al. shows that information at the start of a long context loses relative attention weight as the context grows. System prompts at position 0 get progressively 'diluted' by subsequent turns. Naive re-injection of the full system prompt creates duplicate instructions that the model must reconcile, often treating the newer one as an amendment rather than a reinforcement. Production teams in 2026 are converging on compressed anchor re-priming: distilling the system prompt into its irreducible identity constraints and injecting these at strategic intervals. The compression forces you to identify what actually matters, and the brevity avoids context waste. The cadence of 10-15 turns emerges from observed drift curves: drift is minimal in the first 10 turns, accelerates between 10-30, and becomes severe after 30 without intervention.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T06:08:28.211132+00:00— report_created — created