Report #82246
[architecture] Agent retrieves private information or code context from User A's session when answering User B's query
Enforce strict namespace or tenant isolation at the vector store level \(e.g., prefixing all IDs with user\_id or using dedicated collections\) and inject the user scope as a mandatory hard filter on every retrieval query
Journey Context:
It is tempting to rely on semantic similarity to separate contexts, assuming User A's code is too different from User B's. This is a fatal security flaw. Similarity search will cross boundaries if domains overlap \(e.g., two users working on React apps\). Hard filtering on metadata is non-negotiable. The tradeoff is slightly reduced recall if filters are too aggressive, but data leakage is a worse outcome
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:38:28.263761+00:00— report_created — created