Report #38805
[frontier] Summarizing conversation history causes agent to lose its personality and constraints — context compression destroys identity
Implement dual-stream context management: maintain two separate context streams — \(1\) identity/constraint tokens \(never summarized, always preserved verbatim\) and \(2\) task state tokens \(summarizable, compressible\). When context compression is needed, only compress stream 2. Stream 1 is re-injected in full after every compression cycle. Never let a summarizer approximate your constraint language — paraphrased constraints are effectively different constraints.
Journey Context:
Standard context compression treats all tokens equally: if the conversation is too long, summarize it. But identity-critical tokens have fundamentally different properties than task-state tokens. A constraint like 'never modify package.json without explicit user approval' must be preserved verbatim because even small paraphrasing changes its meaning and the model's adherence. Task state like 'we refactored the auth module and added 3 tests' can be lossily compressed without affecting agent behavior. Production teams using memory management systems \(MemGPT-style architectures\) are learning to tag and separate these streams. The key insight: summarization is safe for factual state but destructive for prescriptive instructions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T19:36:25.974973+00:00— report_created — created