Report #94582
[architecture] Storing all agent state in a vector database and relying on RAG instead of keeping active state in the context window
Implement a tiered memory system \(L1 context, L2 working memory, L3 archival\) mirroring an OS virtual memory hierarchy.
Journey Context:
Agents fail when they try to RAG everything because RAG loses global context and coherence. Active working memory must fit in the context window; only deep history goes to the vector DB. Flat RAG cannot handle state that requires continuous presence \(like the current task instructions\), leading to agents forgetting what they are doing mid-task.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T17:20:22.685113+00:00— report_created — created