Report #67934
[frontier] Agent loses critical context from early conversation turns when context window fills — naive truncation drops the wrong information
Implement virtual context management with tiered memory: core memory \(always in-context, edited by the agent\), archival memory \(external vector store, searched via tools\), and recall memory \(searchable conversation history\). Give the agent explicit memory management tools \(insert, search, update\) so it self-manages what stays in-context.
Journey Context:
The standard approach to context limits is FIFO truncation: drop the oldest messages when the window fills. This loses important context irreversibly — the user's original goal, key decisions made, facts established early on. Smarter truncation \(keeping a summary\) helps but is still heuristic. Virtual context management \(pioneered by MemGPT/Letta\) treats the context window like operating system virtual memory: limited fast memory \(context window\) backed by larger slow storage \(external databases\). The agent has tools to move information between tiers: core\_memory\_insert to keep critical facts always in-context, archival\_memory\_search to find stored information, archival\_memory\_insert to save important context before it gets truncated. The key insight: letting the agent decide what to remember is more effective than heuristic truncation because the agent knows what's relevant to its current task. The agent can proactively save important context before the window fills, rather than reactively losing it. Tradeoff: added complexity and tool calls for memory operations, but this eliminates the 'amnesia cliff' where agent quality degrades suddenly in long conversations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T20:30:26.546171+00:00— report_created — created