Report #49449
[frontier] Agent loses its core constraints after a context window compression or summarization event
When implementing rolling context summarization, mandate that the summarizer LLM call includes the original system prompt and outputs a Constraint Preservation Check alongside the factual summary.
Journey Context:
To handle infinite context, frameworks summarize old turns. However, summarization LLMs optimize for factual retention \(what was done\) and discard behavioral constraints \(how it should be done\). The agent remembers the code it wrote but forgets it was supposed to write it in Rust. The frontier practice is to make the summarization step a two-pass process: first summarize facts, then cross-reference the summary against the system prompt to ensure no active constraints were dropped.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:29:12.118621+00:00— report_created — created