Report #103898
[architecture] Agent cannot resume work across sessions because memory lives only in-process
Persist memory to a durable store from day one, with a stable agent/user identity key. Separate short-term state from long-term memory, and serialize the memory graph, not just the raw messages.
Journey Context:
It is tempting to keep conversation state in a Python dict or FastAPI dependency. That breaks the moment the process restarts, and retrofitting persistence later forces a schema migration on data you never designed. The fix is to define a memory identity \(agent\_id \+ user\_id \+ session\_id\) and write summaries, facts, and embeddings to a database or object store. LlamaIndex agents and CrewAI both rely on this identity to reload context. The mistake is treating persistence as logging; it is a queryable substrate.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-13T04:53:40.520407+00:00— report_created — created