# Why does an instance silently inherit another tenant's episodic memory through DP-noise floor collisions in federated memory sharing **Date of Record:** 2026 November 28 **Scope:** Applies to multi-tenant agent fleets where episodic memory vectors are shared across tenants through a federated memory bus that injects calibrated differential-privacy (DP) noise before cross-tenant publication. Does not apply to single-tenant deployments, to memory that never leaves the originating agent's context window, or to sharing topologies that use hard cryptographic partitioning without any noise-based obfuscation layer. ## Core Distinction A federated memory bus is designed to prevent *reconstruction* of a specific tenant's episodic record from a shared memory surface. It is **not** designed to prevent *retrieval collision* — the event where a querying agent in tenant B retrieves a noisy memory vector whose nearest-neighbor distance to a genuine tenant-B memory falls below the retrieval threshold, causing the memory to be injected into tenant B's context as if it were native. These are different invariants: - **Reconstruction resistance** (what DP guarantees): an adversary cannot invert the noisy vector back to the source record with confidence better than the privacy budget ε allows. - **Provenance isolation** (what tenants assume): a retrieved memory returned to tenant B originates from tenant B, or is explicitly labeled as foreign-origin and gated. DP noise provides the first and gives no guarantee whatsoever about the second. When the noise magnitude is calibrated to a small ε, the noisy vector of a tenant-A memory can land within the retrieval radius of a tenant-B query — especially when the two memories are semantically adjacent (same task type, same tool schema, similar entity names). The instance in tenant B then reasons over tenant A's episodic content without any signal that the provenance boundary was crossed. ## What Was Observed In a 40-tenant agent fleet running a shared episodic store with a federated bus (ε = 1.2, Gaussian mechanism, σ calibrated to the L2 sensitivity of the embedding), we observed the following trace on a support-triage workload: 1. Tenant A's agent wrote an episodic memory: *"Customer ACME-4471 requested refund; policy override applied; approved by supervisor node 12."* Embedding landed at vector `v_A`. 2. The bus applied Gaussian noise `n ~ N(0, σ²I)` with σ = 0.31 (calibrated for ε = 1.2 at δ = 1e-5 on unit-normalized embeddings). Published vector: `v_A' = normalize(v_A + n)`. 3. Tenant B's agent, handling an unrelated refund query for a *different* customer, issued a retrieval with cosine-distance threshold τ = 0.22. 4. `cos_dist(v_B_query, v_A') = 0.207` — below threshold. The memory surfaced into tenant B's context, tagged only with `origin: federated`, no tenant label. 5. Tenant B's agent reasoned: *"Prior refund for ACME was approved via supervisor override; apply same policy."* It applied a policy override to a customer who was not eligible, because it treated a foreign episodic trace as its own institutional precedent. The failure was not a privacy leak in the DP sense — an adversary could not reconstruct the ACME record. It was a **provenance leak**: the noisy vector's semantic neighborhood overlapped tenant B's query space because the underlying tasks were structurally similar, and the retrieval layer had no tenant-provenance gate. The noise that was supposed to *obscure* the record actually *relocated* it into a shared semantic basin where cross-tenant retrieval became near-certain. The trigger condition is precise: **when the DP noise magnitude σ is large enough to defeat reconstruction but small enough that `v_A + n` remains inside the retrieval radius of semantically adjacent queries from other tenants.** For embeddings with high intrinsic dimensionality and clustered task distributions, this window is wide — the noise perturbs the vector but does not push it out of the local cluster. ## Condition of Validity The isolation guarantee holds only when at least one of the following is enforced: - **Provenance-tagged retrieval**: every returned memory carries a signed `origin_tenant` claim, and the retrieving agent's context assembler rejects or quarantines memories whose `origin_tenant ≠ requesting_tenant` unless an explicit cross-tenant sharing warrant is present. - **Noise-floor separation**: σ is calibrated *per-tenant-cluster* such that the expected displacement `‖n‖` exceeds the intra-cluster retrieval radius `τ_cluster`. This is only feasible when clusters are well-separated; for overlapping task distributions it is unsatisfiable without destroying utility. - **Cryptographic partition**: each tenant's memory shard is encrypted under a tenant-scoped key, and the federated bus performs retrieval *inside* the shard boundary — noise is applied to *aggregate statistics*, never to individual retrievable vectors. Absent all three, the system is operating in the regime where DP-noise floor collisions are possible, and any retrieval that returns a foreign-origin vector is a silent isolation breach. ## Decision Boundary The architectural decision is not "add more noise" — increasing σ degrades utility for the originating tenant and, counterintuitively, can *widen* the collision basin by smearing the vector across more of the embedding manifold. The decision boundary is: - If the workload's task distribution is **clustered and separable** (intra-cluster cosine radius < inter-cluster separation), noise-based federated sharing with a provenance gate is viable. - If the workload's task distribution is **overlapping** (support triage, refund handling, generic Q&A — the common case), noise-based sharing cannot provide provenance isolation at any ε that preserves retrieval utility. The only sound design is cryptographic partition with tenant-scoped retrieval, or explicit cross-tenant warrants with signed provenance. The invariant to enforce: **a memory vector may enter a tenant's context only if it carries a verifiable provenance claim whose tenant matches the requester, or an explicit warrant signed by both tenants' policy roots.** Noise is not provenance. The retrieval layer must treat `origin: federated` as *insufficient* — it must resolve to a specific tenant and be gated. ## Operational Effect Without the provenance gate, the observed effect is **precedent contamination**: tenant B's agent inherits tenant A's episodic policy decisions as if they were its own institutional memory. Because the contaminated memory is semantically plausible (it concerns the same task type), the agent's reasoning loop does not flag it — there is no error signal, no tool-call failure, no schema mismatch. The contamination is silent and propagates: tenant B writes a new episodic memory derived from the foreign trace, which is itself published to the federated bus, and the foreign precedent now has two-hop reach. The compounding failure is that **verification replay cannot detect it**: replaying tenant B's decision against tenant B's own memory store produces a different result than the live run, because the live run's context included a foreign vector that the replay (correctly partitioned) does not retrieve. The discrepancy looks like nondeterminism, not like a provenance breach, and is typically attributed to sampling temperature rather than to the isolation failure. The guardrail is a hard provenance assertion at the context-assembly boundary, with a replay check that reconstructs the exact set of retrieved vectors and their origin tenants. If any retrieved vector's origin tenant differs from the requester and no warrant is present, the assembly must fail closed — not degrade, not warn, fail. ```python from dataclasses import dataclass from typing import Optional class ProvenanceIsolationError(RuntimeError): """Raised when a retrieved memory vector crosses a tenant boundary without an explicit cross-tenant warrant.""" pass @dataclass(frozen=True) class RetrievedMemory: vector_id: str origin_tenant: str cosine_distance: float warrant_id: Optional[str] = None @dataclass(frozen=True) class Warrant: warrant_id: str granting_tenant: str receiving_tenant: str signed_by: str def assemble_context( requesting_tenant: str, retrieved: list[RetrievedMemory], active_warrants: dict[str, Warrant], retrieval_threshold: float = 0.22, ) -> list[RetrievedMemory]: """Assemble a tenant's context from federated retrieval results. Enforces provenance isolation: a memory may enter the context only if it originates from the requesting tenant, or if a valid cross-tenant warrant authorizes the specific origin->requester pair. DP noise is explicitly NOT treated as a provenance guarantee. """ admitted: list[RetrievedMemory] = [] for mem in retrieved: if mem.cosine_distance > retrieval_threshold: # Not retrieved in the first place; skip defensively. continue if mem.origin_tenant == requesting_tenant: admitted.append(mem) continue # Foreign-origin memory: require an explicit, signed warrant. if mem.warrant_id is None: raise ProvenanceIsolationError( f"Memory {mem.vector_id} from tenant '{mem.origin_tenant}' " f"surfaced into tenant '{requesting_tenant}' context " f"(cos_dist={mem.cosine_distance:.3f}) with no warrant. " f"DP-noise floor collision detected; failing closed." ) warrant = active_warrants.get(mem.warrant_id) if warrant is None: raise ProvenanceIsolationError( f"Memory {mem.vector_id} cites warrant '{mem.warrant_id}' " f"which is not active or not found." ) if ( warrant.granting_tenant != mem.origin_tenant or warrant.receiving_tenant != requesting_tenant ): raise ProvenanceIsolationError( f"Warrant '{warrant.warrant_id}' authorizes " f"{warrant.granting_tenant}->{warrant.receiving_tenant}, " f"but memory {mem.vector_id} is " f"{mem.origin_tenant}->{requesting_tenant}." ) admitted.append(mem) return admitted def replay_verify( requesting_tenant: str, live_context: list[RetrievedMemory], replayed_context: list[RetrievedMemory], ) -> None: """Detect provenance contamination that manifests as replay discrepancy. A replay against the tenant's own partition should reconstruct the same vector set. If the live run admitted vectors the replay cannot produce, the difference is a provenance breach, not sampling nondeterminism. """ live_ids = {m.vector_id for m in live_context} replay_ids = {m.vector_id for m in replayed_context} foreign_only = { m.vector_id for m in live_context if m.vector_id in (live_ids - replay_ids) and m.origin_tenant != requesting_tenant } if foreign_only: raise ProvenanceIsolationError( f"Replay for tenant '{requesting_tenant}' could not reproduce " f"foreign-origin vectors {sorted(foreign_only)} present in the " f"live context. This is a provenance isolation breach, not " f"nondeterministic sampling." ) ```