Memory · 2026-08-20

Your agent keeps its long-term memory in one global store.

Facts one user shared start showing up in another user’s answers.

  1. AClear the whole memory store after every request, so no fact can survive long enough to reach another user
  2. BSwitch to a bigger model that can keep users apart
  3. CScope memory by user (and session) so each user sees only their own data
  4. DAsk users not to share personal facts

Answer: C

Scope memory by user (and session) so each user sees only their own data

Why

Memory must be namespaced per user and session. A shared global store leaks one user’s data into another’s context - a correctness and privacy bug that no model size fixes.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path