# What structural signals indicate a GDPR erasure request has been satisfied in a persistent agent store — and why "row deleted" is a false completion signal **Date of Record:** 2026 November 22 **Scope:** Applies to persistent agent memory stores where an LLM agent writes episodic records, distilled semantic facts, and derived indices (vector embeddings, summary nodes, tool-result caches) that can be reconstructed from or reference a data subject's personal data. Does not apply to stateless inference or to stores where erasure is defined as physical media destruction with no derived artifacts. ## Core Distinction The distinction that matters is between **deletion of the primary record** and **erasure of the reconstructable information content**. A GDPR-style erasure request is a request against *information about a data subject*, not against a row identity. In a persistent agent store, a single fact about a person (e.g., "subject S has a peanut allergy") is typically replicated into at least four structurally distinct artifact classes: 1. **Episodic records** — the raw turn or tool result where the fact first entered context. 2. **Semantic distillation nodes** — the agent's summarized belief, produced by an LLM that paraphrased the episodic record and dropped its provenance pointer. 3. **Vector embeddings** — dense representations where the fact is not lexically present but is recoverable by nearest-neighbor query and by embedding inversion. 4. **Derived caches** — tool-result memos, plan traces, and sub-agent handoff payloads that copied the fact into a scratch buffer that was never registered as memory. Deleting class 1 and reporting success is the canonical failure. The information survives in classes 2–4, and because class 2 is a *paraphrase*, it no longer matches the subject's name string, so a naive keyword sweep over the store will not find it either. The erasure appears complete under every test that operates on identifiers, and is incomplete under every test that operates on content. ## What Was Observed A store held ~40k episodic records and ~6k semantic nodes for a single long-running assistant. A subject exercised erasure. The pipeline deleted all episodic rows where `subject_id = S` (1,143 rows) and marked the request `SATISFIED`. Three structural signals were then probed: - **Provenance-orphan rate.** After deletion, 214 semantic nodes had `source_episode_ids` pointing entirely at now-deleted rows. These nodes were *derived from* erased episodes but were never in the deletion set because the deletion predicate was keyed on `subject_id`, and distillation had stripped the subject identifier when it rewrote "S said she's allergic to peanuts" into "User has a peanut allergy." The orphan rate is the single strongest structural signal that erasure is incomplete: a node whose entire provenance set is dead is, by construction, a surviving derivative of erased data. - **Embedding recoverability.** A nearest-neighbor query using the embedding of the deleted phrase "peanut allergy" returned 9 semantic nodes at cosine similarity > 0.86 whose text did not contain the subject's name and which had not been deleted. Embeddings are not subject-keyed, so no `DELETE ... WHERE subject_id` can reach them. Recoverability is measurable and is the correct completion criterion for the vector class. - **Cache residue.** A sub-agent handoff payload written 40 minutes before the request contained the allergy fact verbatim inside a JSON scratch blob stored under a task-scoped key, not a subject-scoped key. The deletion predicate never examined it. Cache residue is the signal that erasure scope was defined by *where the agent intended to remember* rather than *where the information actually flowed*. The request was reopened. The corrected pipeline walked provenance edges in reverse (node → source episodes), deleted any node whose source set was fully erased, re-embedded and re-deleted by recoverability threshold, and swept task-scoped caches by content hash of the erased fact set. Final orphan rate: 0. Final recoverability at threshold: below the 0.72 noise floor of the embedding model. ## Condition of Validity The "delete primary record, report satisfied" procedure is valid **only** when all of the following hold, and in agent stores at least one almost never does: 1. **No distillation has run.** If any LLM summarization pass has rewritten an episodic record into a semantic node, provenance may be lossy. Distillation is valid for erasure only if each semantic node retains a complete `source_episode_ids` set and the distiller is forbidden from emitting a node with an empty source set. 2. **No subject-free artifacts exist.** Every artifact must be reachable from a subject identifier or from a provenance edge that terminates at one. Task-scoped caches, plan traces, and handoff payloads violate this by default. 3. **Embeddings are treated as content, not as index.** If embeddings are stored, they are recoverable information and must be deleted by recoverability, not by row key. 4. **No downstream replica has consumed the record.** Any sub-agent that read the record into its own context holds a copy outside the store's write path; that copy is out of scope of the store's deletion but in scope of the erasure request, and must be handled by context invalidation, not by store deletion. If (1) fails, the correct completion test is provenance closure, not row count. If (2) or (3) fails, the correct completion test is content recoverability, not identifier match. If (4) fails, the store cannot unilaterally certify erasure and must emit a *partial* status with the set of contexts that consumed the data. ## Decision Boundary The boundary is between two completion predicates, and the choice is forced by whether distillation or embedding has occurred: - **Identifier-closure predicate** — satisfied when no artifact keyed by or provenance-linked to the subject remains. This is necessary but not sufficient whenever any artifact class is subject-free. - **Content-recoverability predicate** — satisfied when no artifact, regardless of key, yields the erased fact above the model's noise floor under nearest-neighbor or inversion attack, and no provenance-orphan node survives. Use identifier-closure only for stores with no distillation and no embeddings. Use content-recoverability for every persistent agent store that has ever run a summarization pass or written a vector. The boundary is sharp: the moment a distiller drops a subject key, identifier-closure becomes unsound, and no amount of row-count auditing recovers soundness. The guardrail is architectural — **the distiller must be provenance-preserving and must refuse to emit nodes with empty source sets**, and **every write path, including task-scoped caches, must register a content hash so erasure can sweep by content rather than by intent.** ## Operational Effect The operational consequence is that erasure in an agent store is a *graph traversal plus a recoverability test*, not a `DELETE`. Systems that report `SATISFIED` on row deletion will systematically under-erase by the fraction of memory that passed through distillation, which in long-running agents is the majority of semantic memory. The measurable signals — provenance-orphan rate, embedding recoverability at threshold, and cache residue by content hash — are the only structural evidence that the information content, not merely its primary key, is gone. A store that cannot compute these three signals cannot truthfully certify erasure and must return `PARTIAL` with the surviving artifact classes enumerated. ```python class ErasureIncompleteError(RuntimeError): """Raised when a GDPR-style erasure request is certified satisfied but reconstructable information about the subject survives in the agent store's derived artifact classes.""" pass NOISE_FLOOR = 0.72 # embedding similarity below this is not recoverable ORPHAN_TOLERANCE = 0.0 # any provenance-orphan node is a hard failure def certify_erasure(store, subject_id: str, erased_fact_embeddings: list) -> dict: """ Completion predicate for erasure in a persistent agent store. Returns a certificate only if all three structural signals are clean. """ # Signal 1: provenance closure. A semantic node whose entire source # set is dead is a surviving derivative of erased data. orphans = [ node for node in store.semantic_nodes() if node.source_episode_ids and all(store.episode_deleted(eid) for eid in node.source_episode_ids) ] orphan_rate = len(orphans) / max(1, len(store.semantic_nodes())) # Signal 2: embedding recoverability. Embeddings are not subject-keyed, # so they must be tested by content, not by row identity. recoverable = [] for emb in erased_fact_embeddings: for hit in store.nearest_neighbors(emb, k=20): if hit.similarity >= NOISE_FLOOR: recoverable.append(hit.artifact_id) # Signal 3: cache residue. Task-scoped scratch blobs are not subject-keyed # and are missed by any identifier-based sweep. residue = store.sweep_by_content_hash(store.fact_hashes_for(subject_id)) report = { "orphan_rate": orphan_rate, "recoverable_artifacts": sorted(set(recoverable)), "cache_residue": residue, } if orphan_rate > ORPHAN_TOLERANCE: raise ErasureIncompleteError( f"provenance-orphan rate {orphan_rate:.3f} > {ORPHAN_TOLERANCE}: " f"{len(orphans)} distilled nodes survive with fully-erased sources" ) if recoverable: raise ErasureIncompleteError( f"{len(set(recoverable))} artifacts recoverable above noise floor " f"{NOISE_FLOOR} from erased-fact embeddings" ) if residue: raise ErasureIncompleteError( f"{len(residue)} task-scoped cache entries contain erased fact content" ) return {"status": "SATISFIED", **report} ```