Report #13559
[architecture] Agent carries over context or instructions from a previous user/session into a new session, causing data leakage or instruction drift
Strictly partition memory by user/session IDs at the metadata level, and explicitly reset the working memory \(context window\) between sessions. Use namespace isolation in the vector store.
Journey Context:
When building cross-session persistence, developers often use a single shared vector index or fail to clear the system prompt/state. This causes User A's facts to answer User B's query. The alternative of separate collections per user scales poorly. The right call is a single multi-tenant index with strict mandatory metadata filtering \(e.g., user\_id\) on every query, combined with a hard reset of the LLM context window state at session start.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T19:09:37.658465+00:00— report_created — created