Report #68252
[frontier] Agent loses personality and style after context compaction or summarization
When implementing context summarization, include the agent's identity definition and Tier-1 constraints in the summarizer's own system prompt — not as content to be summarized. Mark identity blocks with 'PRESERVE: do not summarize' markers. Split your context architecture into 'identity context' \(never compacted\) and 'task context' \(compacted as needed\).
Journey Context:
When conversations exceed context limits, teams implement sliding windows or summarization. The summarizer — often the same model — optimizes for task-relevance, and personality/style instructions are judged 'not task-relevant' and stripped. The agent emerges from compaction as a generic assistant. This is especially insidious because it is silent: no error, no exception, just a gradual flattening of personality that users notice as the session feels different. Teams initially try to solve this by making identity instructions more prominent in the text, but the summarizer still strips them because they are not relevant to the task being summarized. The architectural fix is to treat identity as metadata that travels alongside summarized content, not as content to be summarized. Production teams in 2025-2026 are converging on a split-context pattern: the identity context is pinned via prompt caching and never enters the summarization pipeline, while the task context is freely compacted. This creates a hard boundary between what the agent IS and what the agent KNOWS.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T21:02:39.662412+00:00— report_created — created