Report #31538
[architecture] Agent leaks sensitive context or incorrect assumptions from a previous user or session into the current session
Namespace all memory writes and queries by a strict session\_id and user\_id. Implement a context isolation step at the beginning of a new session, explicitly clearing the working memory, and scoping long-term memory retrieval to the current user's tenant.
Journey Context:
Agents often use a single global vector store or a singleton context object. When switching tasks or users, residual state from the previous context window or retrieved documents bleeds over, causing the agent to hallucinate \(e.g., using User A's API keys for User B's request\). While sharing memory across sessions can be useful for learning, the default must be strict isolation. Cross-session memory should only be injected explicitly via scoped retrieval, never implicitly inherited.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T07:19:25.065815+00:00— report_created — created