# What structural signals indicate a right-to-erasure request cannot be satisfied by row deletion in an agent memory store **Date of Record:** 2026 November 26 **Scope:** Applies to persistent agent memory stores that mix episodic traces, distilled semantic facts, and vector indices, where an erasure request targets a data subject whose content has propagated through summarization, embedding, or cross-agent handoff. Does not apply to single-turn stateless inference or to stores where memory is never consolidated. ## Core Distinction The operational distinction that governs this failure mode is between *referential deletion* and *derivational erasure*. Referential deletion removes rows whose `subject_id` column matches the request. Derivational erasure must remove every artifact whose content was *causally derived* from the subject's data, even when no row retains a subject identifier. Most agent memory stores implement the first and claim the second. The gap between them is where right-to-erasure requests silently fail. A distilled semantic fact such as `user_prefers_concise_replies` carries no `subject_id` after consolidation; it was merged into a global preference profile. An embedding vector for a chunk of episodic dialogue contains the subject's phone number in its latent geometry but not in any retrievable field. A peer agent that received a baton handoff holds a copy of the subject's context in its own working memory. Row deletion touches none of these. The structural signal that an erasure request is unsatisfiable by row deletion is the presence of *derivation edges*—records that were produced by a transformation over subject data and that do not preserve a back-pointer to their source. ## What Was Observed In a store with three tiers—raw episodic log, consolidated semantic fact table, and a vector index over chunked episodes—an erasure request for subject `S-4471` was executed as `DELETE FROM episodic WHERE subject_id = 'S-4471'`. The delete returned `rows_affected = 812`, and the erasure was marked complete. Three residual artifacts survived, each detectable only by structural inspection: 1. **Semantic distillation residue.** The consolidation job had produced 41 rows in `semantic_facts` such as `prefers_async_contact` and `located_in_region_emea`. These rows had `source_subject_ids` stored as a JSON array, but the consolidation pipeline had deduplicated them against facts from other subjects, so the array had been overwritten by the last writer. The subject's contribution was unrecoverable from the fact row itself. Deletion by `subject_id` matched zero rows because the column did not exist. 2. **Vector index ghosts.** The vector index held 2,300 chunks derived from the deleted episodes. The index was rebuilt nightly from the episodic table, so a rebuild would have purged them—but the rebuild ran *before* the delete in the maintenance schedule, meaning the ghosts persisted for up to 24 hours and were retrievable by any agent query in that window. A retrieval probe using the subject's known email as a query string returned a chunk containing that email with cosine similarity 0.91. 3. **Handoff shadow copies.** A downstream agent had received a baton handoff containing the subject's context window 40 minutes before the erasure. That agent's working-memory store retained the serialized context. The erasure coordinator had no registry of in-flight handoffs and could not enumerate the shadow copy. The failure trace is: erasure request arrives → coordinator deletes by subject key → coordinator verifies `rows_affected > 0` → coordinator marks complete → retrieval probe (if any) queries the vector index → ghost chunks surface → the probe either misses them (if it queries only the episodic table) or reports a residual that the coordinator cannot explain because no row exists to delete. ## Condition of Validity The invariant that makes row deletion sufficient is: *every derived artifact must retain a verifiable derivation edge to its source subject, and every tier must be reachable from the erasure coordinator.* This holds only when three conditions are jointly true: - **Provenance preservation through consolidation.** The distillation step must write a `derived_from` set that is append-only and never overwritten by deduplication. Deduplication must merge provenance, not replace it. - **Index synchronization ordering.** The vector index must be invalidated *after* the source delete and *before* the erasure is marked complete, or the index must be queried during verification. A nightly rebuild is not a synchronization mechanism; it is an eventual-consistency window. - **Handoff enumeration.** The coordinator must maintain a registry of active handoffs keyed by subject, or handoff payloads must carry a TTL and a revocation channel. Without this, the shadow-copy set is unbounded and unenumerable. When any condition fails, the erasure request is structurally unsatisfiable by row deletion, and the correct response is to refuse to mark it complete rather than to report a false success. ## Decision Boundary The decision boundary is the point at which the coordinator must distinguish "deleted all rows matching the key" from "erased all derived content." The test is not `rows_affected > 0`. The test is a *residual probe* over every tier, including the vector index and the handoff registry, using subject-derived query material (known identifiers, high-similarity probes against retained embeddings). If the probe returns any hit, the erasure is incomplete regardless of row counts. The boundary is sharp: a store that cannot execute the residual probe cannot certify erasure. A store that can execute it but finds a hit must transition the request to a `pending_derivation_purge` state and schedule a consolidation-invalidation pass, not retry the row delete. Retrying the row delete is the characteristic wrong action—it succeeds trivially (zero rows) and re-marks the request complete, producing a silent double-failure. ## Operational Effect The operational consequence is that erasure becomes a *multi-phase, probe-gated protocol* rather than a single delete. Phase one deletes source rows. Phase two invalidates derived artifacts by provenance edge or by index purge. Phase three probes every tier and every registered handoff. The request is marked complete only when the probe is empty. This changes the latency of erasure from milliseconds to the duration of a consolidation-invalidation cycle, and it requires the store to maintain provenance that pure row-oriented schemas discard. The second effect is that handoff shadow copies must be treated as first-class erasure targets. An agent protocol that transfers context without a revocation channel makes erasure unprovable, because the coordinator cannot enumerate what it cannot see. The guardrail is a handoff registry with subject-keyed entries and a revocation broadcast that downstream agents must acknowledge before the erasure completes. ```python class ErasureUnsatisfiableError(RuntimeError): """Raised when a right-to-erasure request cannot be satisfied by row deletion because derived artifacts (distilled facts, vector ghosts, handoff shadows) retain subject content without a recoverable provenance edge.""" pass def certify_erasure(store, subject_id: str, probe_material: list[str]) -> dict: rows = store.delete_by_subject(subject_id) # Residual probe across every tier, not just the source table. residuals = { "semantic_facts": store.probe_facts(subject_id, probe_material), "vector_index": store.probe_vectors(probe_material, min_similarity=0.85), "handoff_registry": store.probe_handoffs(subject_id), } hits = {tier: found for tier, found in residuals.items() if found} if hits: # Row deletion succeeded but erasure is not certifiable. store.mark_pending_derivation_purge(subject_id, hits) raise ErasureUnsatisfiableError( f"erasure for {subject_id} incomplete: row delete affected " f"{rows} rows but residual content found in {sorted(hits)}; " f"provenance edges missing or handoff shadows unenumerated" ) if rows == 0 and not store.has_provenance_edge(subject_id): raise ErasureUnsatisfiableError( f"erasure for {subject_id} matched zero rows and no provenance " f"edge exists; cannot distinguish 'never stored' from " f"'stored only in derived form'" ) store.mark_complete(subject_id) return {"subject_id": subject_id, "rows_deleted": rows, "probe": "empty"} ```