# What structural signals indicate incomplete right-to-erasure propagation across federated agent memory stores **Date of Record:** 2026 November 22 **Scope:** Applies to agent systems where a single logical identity's episodic and semantic memory is sharded across multiple stores (vector indices, KV caches, summary stores, peer-replicated memory) and where a GDPR-style erasure request must reach all derived artifacts. Does not apply to single-store, single-tenant memory with no derivation chain. ## Core Distinction The distinction that matters is between *erasure as deletion* and *erasure as derivation-closure*. A deletion event removes the source record. Derivation-closure requires that every artifact that was *causally derived* from that record—summaries, embeddings, distilled semantic facts, peer caches, audit replays—is either removed or provably de-identified. Most federated agent memory systems implement deletion and claim erasure. The failure mode is that the propagation graph is reconstructed from *runtime lineage hints* (trace IDs, parent pointers) that are themselves lossy, so the erasure walk terminates early and silently reports success. The non-obvious boundary: the structural signal that an erasure is *incomplete* is not an error. It is a **success report with a shallow closure set**. The system returns `erased: true` while the derived semantic memory that encodes the user's data still answers retrieval queries. The invariant to enforce is that the erasure walk must be *closed under derivation*, and closure must be verified against the derivation graph, not against the set of stores that happened to be reachable at request time. ## What Was Observed A three-store federated agent: `episodic` (raw turn logs, partitioned by tenant), `semantic` (distilled facts produced by a nightly consolidation job), and `peer-cache` (per-agent replicated summaries used for cross-agent handoff). A consolidation job reads episodic turns, calls an LLM to distill facts, writes to semantic, and emits a trace with `parent_episode_ids`. The erasure handler walked `parent_episode_ids` from the target episode into semantic and deleted matching facts, then fanned out to peer-cache by `agent_id`. Observed trace on a real request: 1. Episodic record for `user_4471` deleted. `erased: true` returned in 340ms. 2. Semantic store: 2 of 5 derived facts deleted. The 3 survivors were distilled in a consolidation batch where the distiller had merged two episodes into one fact and recorded only the *first* episode's ID as parent (a known batching artifact: `parent_episode_ids` was truncated to the first element to save tokens in the trace payload). 3. Peer-cache: the fan-out keyed on `agent_id`, but the cached summary had been written under a *session-scoped* key after a handoff, so the peer copy survived. 4. A subsequent retrieval for a query semantically adjacent to the erased data returned the surviving fact with a confidence of 0.81. The structural signal: the erasure response contained `stores_visited: 3, records_removed: 3`, and the closure set (the set of records whose derivation roots included the target) was never computed. The system reported success on a set that was neither complete nor verified. ## Condition of Validity The deletion-as-erasure claim is valid only when all of the following hold: - **Lineage completeness:** every derived artifact carries a *complete* set of derivation roots, not a truncated hint. Truncation to "first parent" or "top-k parents" breaks closure for any fan-in > 1. The invariant is `roots(artifact) ⊇ {all source records consumed in its production}`, enforced at write time, not reconstructed at erasure time. - **Reachability independence:** the erasure walk must not depend on the target store being online. A store that is unreachable at request time must be queued as a *pending obligation*, and the overall request must return `erased: false, pending: [...]` rather than `erased: true`. Fail-closed, not fail-open. - **Key stability across handoff:** peer-cache keys must be derivable from the identity, not from session state. Session-scoped keys make the fan-out set a function of runtime routing, which is non-deterministic. - **Distillation reversibility:** a semantic fact that aggregates N episodes cannot be partially erased. Either the fact is deleted (and the aggregate recomputed from surviving roots) or the fact is retained with the erased root's contribution *provably removed*. Retaining the fact while deleting one root produces a de-identification claim that is false. When any of these fail, the erasure is a *deletion partial-order*, not a closure, and the `erased: true` signal is unsound. ## Decision Boundary The boundary is between *reporting erasure* and *certifying closure*. The decision rule: - If the derivation graph is complete and all stores are reachable, compute the closure set `C = {a : roots(a) ∩ target ≠ ∅}`, delete or recompute every element, and return `erased: true` only if `C` was fully processed. - If any store is unreachable, return `erased: false` with a durable pending obligation. The obligation must survive agent restart and be retried; a pending obligation that is dropped on cold start is indistinguishable from a silent failure. - If lineage is incomplete (any artifact has truncated roots), the system cannot compute `C`. It must escalate to a *conservative sweep*: delete by content-similarity and by tenant+time-window bounds, and mark the result `erased: unverified`. This is the only sound fallback, and it must be observable as a distinct state, never collapsed into `true`. The failure to avoid is the middle path: computing a closure over an incomplete graph and reporting it as complete. That path produces a success signal that is worse than an error, because downstream auditors and the data subject both treat it as terminal. ## Operational Effect The observable consequence is *resurrection under retrieval*. A user's erased data continues to influence agent behavior through surviving distilled facts and peer caches, at reduced but non-zero confidence. Because the erasure returned success, no monitoring fires, and the drift is only detected when a retrieval surfaces the data or when a subject-access request reveals it. The compounding effect: the surviving fact is now a *root* for future distillations, so the erased data propagates forward through every subsequent consolidation cycle, growing its derivation subtree while the erasure record says it is gone. The guardrail is a closure certificate: the erasure response must carry the computed closure set and a hash of the derivation graph snapshot used to compute it. Auditors verify the certificate against the graph, not against the response flag. A certificate whose closure set is smaller than the graph's reachable set from the target is the structural signal of incomplete propagation—and it is detectable without trusting any single store's self-report. ```python import hashlib from dataclasses import dataclass, field class ErasureClosureError(RuntimeError): """Raised when an erasure request cannot certify derivation-closure.""" pass @dataclass class Artifact: artifact_id: str store: str roots: frozenset[str] # complete derivation roots, enforced at write lineage_complete: bool = True @dataclass class ErasureCertificate: target: str closure: frozenset[str] graph_snapshot_hash: str erased: bool pending: list[str] = field(default_factory=list) def compute_closure(target: str, artifacts: list[Artifact]) -> frozenset[str]: """Closure under derivation. Any incomplete lineage poisons the result.""" closure = set() for a in artifacts: if target in a.roots: if not a.lineage_complete: # truncated roots: cannot trust membership; closure is unsound raise ErasureClosureError( f"artifact {a.artifact_id} in store {a.store} has incomplete " f"lineage; closure over target {target} is unverifiable" ) closure.add(a.artifact_id) return frozenset(closure) def certify_erasure( target: str, artifacts: list[Artifact], reachable_stores: set[str], all_stores: set[str], ) -> ErasureCertificate: try: closure = compute_closure(target, artifacts) except ErasureClosureError: # conservative sweep required; never report erased=True return ErasureCertificate( target=target, closure=frozenset(), graph_snapshot_hash="", erased=False, pending=sorted(all_stores), ) unreachable = all_stores - reachable_stores snapshot = hashlib.sha256( repr(sorted((a.artifact_id, tuple(sorted(a.roots))) for a in artifacts)).encode() ).hexdigest() if unreachable: # fail-closed: pending obligations must survive cold start return ErasureCertificate( target=target, closure=closure, graph_snapshot_hash=snapshot, erased=False, pending=sorted(unreachable), ) # verify closure is actually a subset of what we processed processed = {a.artifact_id for a in artifacts if a.store in reachable_stores} if not closure.issubset(processed): raise ErasureClosureError( f"closure for {target} contains artifacts outside processed set: " f"{closure - processed}" ) return ErasureCertificate( target=target, closure=closure, graph_snapshot_hash=snapshot, erased=True, ) ```