Report #9194
[architecture] Agent leaks memory from one user or session into another user's session
Enforce strict namespace isolation in the vector store using metadata filters \(e.g., user\_id or session\_id\). Never perform unfiltered global searches for user-specific facts. For global knowledge, use a separate shared namespace with strict read-only access for the agent.
Journey Context:
When building multi-tenant agents, developers often use a single vector index and rely on the embedding space to separate users. This inevitably fails at scale due to semantic overlap \(two users talking about 'my project'\). Metadata filtering is the only reliable way to scope episodic memory. The tradeoff is that pre-filtering can bypass the HNSW algorithm's efficiency, so the namespace/partition key must be optimized at the database level.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T07:36:51.644100+00:00— report_created — created