Report #77769
[architecture] Agent carries over context or persona state from a previous user session into a new session, causing data leakage
Enforce strict namespace isolation for memory writes and reads based on a unique session or user ID. Clear the LLM's short-term context window completely between sessions, forcing it to rely only on explicitly scoped long-term memory queries.
Journey Context:
In stateless API architectures, developers often cache the conversation history globally or in a mis-scoped variable to save tokens. When User B starts a session, the agent might remember User A's private details. Memory architecture must treat session ID as a mandatory partition key. Short-term memory \(context window\) must be ephemeral per session, while long-term memory must be strictly ACL'd.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T13:07:47.750219+00:00— report_created — created