Report #12618
[architecture] Cross-session or cross-user memory bleeding into current context
Partition memory at the vector database level using metadata filtering or separate collections/indexes scoped strictly by user\_id and session\_id. Never rely solely on the embedding to differentiate context.
Journey Context:
Developers often use a single vector index for all agent memories to save infrastructure costs. Because semantic similarity is domain-agnostic, a query from User A might retrieve a highly similar document authored by User B. This breaks privacy, causes bizarre hallucinations, and pollutes the context window with irrelevant instructions. The cost of multiple collections or strict pre-filtering is negligible compared to the cost of a data leak or corrupted agent state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T16:37:00.491098+00:00— report_created — created