Evaluating Long-Term Memory Isolation in Multi-Tenant Conversational Agents
Abstract
This working paper defines a reproducible evaluation protocol for conversational memory under tenant isolation. The system combines short-term thread state, vector memory, and graph-grounded documentary evidence. The available artifact creates two synthetic tenants, records distinct facts for each, probes recall, checks cross-tenant leakage, and measures latency. No quantitative result is claimed until a versioned run artifact is released.
Keywords: conversational memory; tenant isolation; GraphRAG; evaluation; latency
- Evidence status
- Evaluation protocol available; public result artifact pending
- Source revision
- 1470f8f17163
1. Research question
Can a multi-tenant conversational agent recover durable user facts without leaking facts across tenants, while remaining within an explicit latency target?
2. System under study
A WhatsApp-facing runtime built with FastAPI, LangGraph, a PostgreSQL checkpointer, Mem0 over pgvector, Neo4j GraphRAG, Convex job coordination, Gemini or Vertex generation, and Langfuse traces. The retrieval precedence documented in the implementation is graph evidence, then long-term memory, then thread state.
3. Method
- Create two synthetic tenants with mutually exclusive facts for color, allergy, and employer.
- Record three memory statements per tenant and issue six recall probes in isolated conversation threads.
- Use required and forbidden substrings to score recall and detect cross-tenant leakage.
- Report accuracy, average latency, p50, p95, maximum latency, and the ratio under the latency target.
- Evaluate against declared targets of 0.86 accuracy and 700 ms p95 latency.
4. Current evidence
- A checked-in benchmark runner computes deterministic lexical checks and latency percentiles.
- A six-case JSON dataset separates recall success from tenant-leakage failure.
- Unit tests cover expected answers, leakage detection, missing facts, and percentile calculation.
- The application README documents the deployed evaluation command and the production architecture under test.
5. Limitations
- The dataset contains only six synthetic cases and cannot support a general quality claim.
- Lexical matching does not measure semantic correctness beyond expected terms.
- The source repository is private and the public result JSON has not yet been released.
- No baseline comparison or ablation isolates the contribution of thread state, vector memory, and graph retrieval.
6. Next experiment
- Expand the benchmark with paraphrases, contradictions, delayed recall, deletions, and adversarial leakage probes.
- Run ablations for thread-only, vector-only, graph-only, and combined retrieval.
- Release a redacted dataset, environment manifest, raw results, and cost measurements.
- Add human semantic review alongside deterministic checks.
7. Sources and reproducibility
- Private implementation repository, revision recorded above
Source revision: 1470f8f17163cd87538c5e12ae621658bd46afe3
Suggested citation
Cardozo, Pablo. “Evaluating Long-Term Memory Isolation in Multi-Tenant Conversational Agents.” Working paper, version 0.1, 2026. pablo.cardozo.com.ar/research/long-term-memory-isolation.