Report #96909
[frontier] Agent drifts from system prompt personality and role after 30\+ turns in a session
Re-inject a condensed identity checkpoint every N turns or when context exceeds 50% of the window. Format as a tagged block: \[IDENTITY-ANCHOR\] role, top 3 constraints, 1 style exemplar sentence \[/IDENTITY-ANCHOR\]. Place it at a natural conversation boundary to avoid jarring the user.
Journey Context:
The serial position effect documented in Lost in the Middle means system prompts at position 0 lose salience as context grows — the model's attention budget shifts toward recent turns. Full system prompt re-copying is wasteful and can feel robotic. The key insight from 2025 production teams: a condensed 'identity digest' at recency positions restores salience for a fraction of the token cost. The digest must include a style exemplar, not just a role description, because descriptive instructions are too abstract to resist distributional drift toward the user's style.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:14:47.102813+00:00— report_created — created