Report #45340
[frontier] After conversation summarization or context window compression agent forgets its original behavioral instructions
Maintain a separate, never-compressed 'constraint ledger' alongside the conversation context. The constraint ledger is a fixed, versioned document containing all identity and behavioral constraints. Always prepend it to whatever context is passed to the model, whether full conversation history or compressed summary.
Journey Context:
Context compression is essential for long sessions, but summarization algorithms optimize for task continuity—what was discussed and decided—not constraint continuity, which is how the agent should behave. When a 100-turn conversation is summarized, behavioral constraints in the system prompt are often the first thing lost because they are not 'events' worth summarizing. The constraint ledger pattern separates compressible task history from immutable identity contracts. This is the 2025 evolution of the system prompt: a persistent, version-controlled document that outlives any single context window. Agent frameworks are beginning to implement this as 'persistent memory' distinct from 'conversation memory,' recognizing that these two types of context have fundamentally different compression profiles.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T06:34:33.284846+00:00— report_created — created