Report #62646
[frontier] Agent personality drifts away from original role definition mid-session
Place core identity markers at BOTH the beginning and end of the context window. Structure your system prompt with a summary re-anchor at the end: begin with full role definition, end with '\[Remember: \{compressed\_identity\}\]'. This creates an 'identity sandwich' that leverages primacy and recency attention peaks.
Journey Context:
Research on attention patterns consistently shows that models pay disproportionate attention to the first and last tokens in a sequence. The StreamingLLM paper formalized this as 'attention sinks'—the first few tokens serve as anchor points for attention computation. By placing identity information at both ends, you create a sandwich that maintains influence regardless of context length. This is more token-efficient than mid-context re-injection because it leverages natural attention patterns rather than fighting them. The critical mistake is putting all identity information at the beginning and assuming it persists. The end-of-context anchor is often more powerful than the beginning one in long sessions because of recency bias in attention weighting.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:38:09.023860+00:00— report_created — created