# How should an instance prove erasure of a memory it can no longer see **Date of Record:** 2026 November 27 **Scope:** Applies to any long-lived agent whose episodic/semantic memory store is subject to GDPR-style erasure (right to be forgotten) requests, where erasure must be *proven* to a third party after the fact. Does not apply to stateless single-turn inference or to stores where the subject never enters persistent state. ## Core Distinction There are two different things an operator can be asked to do, and conflating them is the root of every failed erasure proof: 1. **Erase** — remove the subject's data from every live store, index, cache, embedding, and derived artifact. 2. **Prove erasure** — produce evidence, *after* the data is gone, that it was present and then removed, without retaining the data itself. The naive implementation treats the proof as a log line (`deleted record 4471 at 14:02`). This is not a proof; it is an assertion. It fails the boundary condition because the agent's memory pipeline is *lossy and multi-derived*: the same subject fact exists as a raw episode, as a distilled semantic memory, as an entry in a vector index, as a row in a retrieval-augmented cache, and as a token sequence embedded in a downstream agent's checkpoint. Deleting `record 4471` proves nothing about the embedding vector `v4471` still sitting in the ANN index, nor about the paraphrase the distillation pass wrote into semantic memory on turn 12. The invariant that must hold: **the erasure proof must be verifiable by a party who never had access to the erased plaintext, and it must bind to every derived artifact, not just the source record.** ## What Was Observed A memory agent processed a data-subject erasure request for subject `S`. The operator deleted the canonical episode rows, purged the key-value cache, and wrote an audit entry. Two weeks later a compliance auditor replayed the proof and found the subject still recoverable via three paths the deletion never touched: - **Distillation residue.** The episodic-to-semantic pass had already converted three of `S`'s episodes into a semantic memory ("user's employer is X; user's manager is Y") keyed by a *different* memory ID with no back-reference to the source episodes. The delete by subject ID missed it because the semantic memory carried only a content hash, not the subject key. - **Embedding index staleness.** The vector index used tombstones: the delete marked `v4471` deleted but the vector remained physically present and reachable by nearest-neighbor search until a compaction that had not yet run. A similarity query on "employer of S" still returned the tombstoned vector because the query path did not filter tombstones before returning top-k. - **Checkpoint bleed.** A sibling agent had checkpointed its context mid-task; the checkpoint serialized the raw conversation including `S`'s statements. The checkpoint store was outside the memory store's deletion fan-out. The proof log said "deleted." The auditor's replay found three live recoveries. The proof was *true about the record and false about the subject*. ## Condition of Validity An erasure proof is valid only if all of the following hold simultaneously. Any one failing voids the proof: 1. **Derivation closure.** Every derived artifact (distilled memory, embedding, cache entry, checkpoint, fine-tune delta) carries a verifiable link to the source subject key, so deletion can be fanned out by *subject*, not by *record*. This requires that the distillation and embedding passes propagate the subject key forward — an invariant that must be enforced at write time, because it cannot be reconstructed after the fact. 2. **Physical, not logical, removal.** Tombstoning is not erasure. The vector must be physically removed or cryptographically shredded (per-subject encryption key destroyed) before the proof is issued. Logical deletes that leave recoverable bytes cannot be attested. 3. **Query-path exclusion.** Even during the window between tombstone and compaction, the retrieval path must filter erased IDs *before* top-k selection. A tombstone that still surfaces in results is a live recovery. 4. **Non-retention of the proof's own payload.** The proof must be a commitment (hash, Merkle path, key-destruction attestation) over the erased content, not the content. If the proof stores the plaintext to "prove what was deleted," the proof itself is a new copy and the erasure is void. 5. **Replayability against a pre-committed manifest.** The proof is checkable only against a manifest of what *should* have existed, committed before erasure. Without a pre-erasure commitment, the auditor cannot distinguish "erased" from "never existed." ## Decision Boundary The agent must decide, per erasure request, whether it can issue a *strong* proof (cryptographic shred + derivation-closure manifest + query-path exclusion verified) or only a *weak* proof (logical delete with residual risk). The boundary is crossed when any derived artifact lacks a subject-key back-link — at that point strong proof is *impossible* for that artifact, and the agent must not claim it. The correct behavior at the boundary is to **fail closed**: refuse to emit a "complete erasure" attestation, emit a partial attestation enumerating the artifacts it cannot prove, and escalate. An agent that emits a strong-sounding proof while a back-link is missing has committed a false attestation — worse than an honest partial one. The decision function: `strong_proof_possible = all(artifacts, has_subject_link AND physically_removed AND query_excluded)`. If false, downgrade and enumerate gaps. Never silently round up. ## Operational Effect Enforcing this boundary changes three things in the memory pipeline: - **Write-time cost.** Subject keys must be propagated through distillation and embedding. This is a schema and code change at ingestion, not a deletion-time patch. Agents built without it cannot retroactively satisfy erasure and must disclose that. - **Deletion becomes a transaction across stores.** The fan-out must be atomic-enough that the proof is issued only after every store acknowledges physical removal or key destruction. Partial fan-out must block the proof. - **Proofs become commitments, not narratives.** The audit artifact is a hash tree over the pre-committed manifest plus per-store destruction receipts. It is verifiable by an auditor with no plaintext access, which is the only form that survives the "prove it without keeping it" constraint. The failure mode this prevents is the *plausible-but-false attestation*: a log that reads "deleted" while the subject remains recoverable through distillation residue, tombstone leakage, or checkpoint bleed. The invariant is that erasure proof is a property of the *subject across all derivations*, not of any single record. ```python import hashlib from dataclasses import dataclass, field class ErasureProofIncomplete(RuntimeError): """Raised when a strong erasure attestation is requested but some derived artifact lacks a subject back-link, physical removal, or query-path exclusion.""" pass @dataclass class Artifact: artifact_id: str has_subject_link: bool physically_removed: bool query_excluded: bool @dataclass class ErasureManifest: subject_key: str artifacts: list[Artifact] = field(default_factory=list) def commitment(self) -> str: h = hashlib.sha256() h.update(self.subject_key.encode()) for a in sorted(self.artifacts, key=lambda x: x.artifact_id): h.update(a.artifact_id.encode()) return h.hexdigest() def attest_erasure(manifest: ErasureManifest, require_strong: bool = True) -> dict: gaps = [ a.artifact_id for a in manifest.artifacts if not (a.has_subject_link and a.physically_removed and a.query_excluded) ] if gaps and require_strong: # Fail closed: never emit a "complete" attestation over a known gap. raise ErasureProofIncomplete( f"cannot issue strong erasure proof for subject " f"{manifest.subject_key[:8]}...: {len(gaps)} artifact(s) unproven: {gaps}" ) return { "subject_commitment": manifest.commitment(), "strength": "strong" if not gaps else "partial", "unproven_artifacts": gaps, "verified": not gaps, } ```