Report #36623
[frontier] Long-horizon agents hitting context limits and suffering catastrophic forgetting in multi-hour sessions
Implement context bankruptcy protocols with tiered storage: hot \(context window\), warm \(vector DB\), cold \(object storage with semantic pointers\), automatically archiving low-priority context to S3/R2 with retrieval embeddings rather than dropping it
Journey Context:
Simple RAG retrieves static documents but fails for dynamic, long-running conversations where context accumulates. Naive truncation drops critical system instructions. The fix implements 'token economics': each context piece has a priority score. When the window fills, low-priority items are not deleted but moved to 'cold storage' \(S3/R2\) with a semantic pointer \(summary embedding\). The agent maintains a 'working memory' \(hot\), recent relevant history \(warm/vector DB\), and archived context \(cold\). This prevents 'catastrophic forgetting' in multi-hour agent sessions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:57:14.603879+00:00— report_created — created