Report #68067
[frontier] Identity Fragmentation: Agent oscillates between personas based on recent user inputs rather than stable configuration
Deploy Identity Protocol Headers: prepend a structured identity declaration to every user message or system turn using a fixed format: \[AGENT\_IDENTITY: Senior Rust Engineer, MODE: Direct, VERBOTEN: Apologies, hedging\]; treat identity as a per-message protocol state rather than a one-time system prompt.
Journey Context:
Standard practice sets identity in the initial system prompt and assumes persistence. However, in long sessions, the agent's effective identity is determined by the last 3-5 turns \(recency bias\). If the user asks a personal question, the agent shifts to 'helpful assistant' mode and carries that into the next coding task. Simple identity 'refreshing' every N turns is insufficient because it still allows drift between refreshes. Protocol headers act as a session-wide constant that overrides recency bias on every single turn.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T20:43:58.675109+00:00— report_created — created