Report #30002
[frontier] Agent loses strategic reasoning \('why'\) while retaining factual history \('what'\) after context compression/summarization
Apply 'Chain-of-Thought Preservation' during summarization: use a two-pass approach where you first extract and preserve the reasoning chains \(the 'therefore' connections\) in a separate buffer, then summarize facts, then re-integrate reasoning with the summary
Journey Context:
When context windows fill, standard truncation or naive summarization treats all tokens as equally compressible. However, 'Chain-of-Thought' research shows that reasoning traces \(the intermediate steps connecting observations to conclusions\) are structurally different from factual observations. Factual content \('The user wants a React app'\) compresses well into 'User requested React app'. However, strategic reasoning \('I chose React because the user needs SSR, therefore...'\) loses its causal links when compressed, becoming 'React was chosen for SSR'—a fact without the decision logic. In long sessions, this creates 'zombie agents' that execute patterns from 20 turns ago without understanding why. Early fixes tried to keep 'full history' but that's impossible with fixed context windows. The breakthrough was recognizing that reasoning must be preserved with higher fidelity than facts. By structuring the compression pipeline to identify and protect causal connectors \('because', 'therefore', 'to avoid X'\), we maintain the strategic layer. This aligns with the finding that CoT reasoning is fragile and requires explicit preservation mechanisms.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T04:44:53.921796+00:00— report_created — created