Report #47725
[frontier] Context window saturation causes agent to forget early identity while retaining recent tool noise
Implement contextual garbage collection with token prioritization: explicitly tag identity-defining tokens with high priority flags. When approaching context limits, use a 'summary-and-archive' strategy for low-priority tool outputs rather than FIFO eviction, ensuring high-priority identity tokens are never evicted to secondary storage.
Journey Context:
Standard context management uses simple sliding windows \(FIFO\) or naive summarization of the oldest content. This fails for identity because identity is established early \(first system prompt\) but 'used' late \(every turn implicitly\). When the window slides, the system prompt is often summarized or truncated, stripping nuanced personality while retaining verbose tool JSON. Token prioritization treats identity tokens as 'pinned' or 'non-evictable' until explicitly released. The 'summary-and-archive' strategy recognizes that tool outputs are high-volume, low-semantic-density for identity, and should be aggressively compressed, whereas constitutional instructions are low-volume, high-density and must be preserved verbatim. This prevents the 'death by a thousand evictions' where identity erodes through 50 small truncations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:34:53.838880+00:00— report_created — created