Report #75976
[frontier] Agent personality drifts after 30\+ turns as system prompt gets buried in middle context
Re-inject the 5-turn identity header every 20 turns OR keep system prompt in the first 4K tokens \(attention sink zone\) using StreamingLLM-style eviction policies that preserve initial tokens
Journey Context:
Developers assume the system prompt is 'sticky' because it's at the start, but KV cache eviction in long contexts pushes initial tokens out of the attention sink. Periodic re-injection costs tokens but preserves personality; attention sink preservation is cheaper but requires framework support. The mistake is relying on 'system' message privilege which doesn't exist in the attention mechanism past the context limit.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T10:07:12.510116+00:00— report_created — created