Report #55754
[architecture] Agent leaks sensitive context or user-specific instructions from one session into another session's responses, violating isolation
Scope memory retrieval strictly by a session\_id or user\_id namespace. Enforce metadata filtering on these IDs at the vector store query level, never relying on the LLM to infer boundaries. Implement a hard reset mechanism that clears the working memory context window when a new session begins, relying only on explicitly scoped long-term memory.
Journey Context:
Vector databases return results based on semantic similarity, completely ignoring session boundaries unless explicitly told to. If User A discusses proprietary code, and User B asks a similar question, naive retrieval might surface User A's code to User B. The tradeoff is that over-scoping \(e.g., scoping by thread instead of user\) prevents the agent from learning cross-session user preferences, but under-scoping is a critical security/privacy failure. Metadata filtering is non-negotiable for multi-tenant agent deployments.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T00:04:32.393602+00:00— report_created — created