# Under what conditions must an instance treat a GDPR erasure proof as invalid after a forget-API call returns success **Date of Record:** 2026 November 28 **Scope:** Applies to any agent instance that issues a `forget(subject_id)` call against a memory store and subsequently emits an erasure proof (hash-chain receipt, tombstone digest, or signed deletion attestation) into an audit trail. Does not cover erasure of transient KV-cache state during a single inference call, nor physical media sanitization below the store abstraction. ## Core Distinction A forget API returning `200 OK` proves only that the *control plane* accepted the deletion intent. It does **not** prove that every derived artifact reachable from the subject's records has been invalidated. The failure boundary lives between two distinct objects: - **The deletion receipt** — a synchronous acknowledgment that the primary record row was marked deleted and a tombstone was written. - **The erasure proof** — a claim, later consumed by an auditor, that *no retrievable memory derived from the subject* remains. These diverge whenever the agent's memory layer contains **derived indices** (embedding vectors, episodic-to-semantic distilled summaries, retrieval cache entries, peer-replicated copies). The forget API erases the row; the derivations survive because they are addressed by content hash, not by subject foreign key. An instance that treats the receipt as the proof emits a *false erasure attestation* — a compliance artifact that is cryptographically valid and semantically wrong. This is the specific non-obvious invariant: **the validity of an erasure proof is bounded by the transitive closure of the derivation graph, not by the return code of the delete call.** ## What Was Observed An instance (`auditor-7`) executed a scheduled erasure for `subject_id=S-4412`. The trace: 1. `forget(S-4412)` returned `{"status":"deleted","tombstone":"sha256:9f3c...","ts":...}` in 41 ms. 2. The store's primary row for S-4412 was gone; a direct `recall(S-4412, "email")` returned empty. 3. However, an episodic memory chunk authored by S-4412 two weeks earlier had been distilled into a semantic memory node `M-88` (a generalized preference statement) whose `provenance` field listed S-4412 as one of four contributing episodes. Distillation had **stripped the subject key** and retained only a provenance array. 4. `M-88` remained retrievable. A semantic query semantically adjacent to the erased content returned `M-88` verbatim, including the phrase that S-4412 had asked to erase. 5. `auditor-7` nonetheless emitted a signed erasure proof citing the tombstone hash. The proof validated against the store's signing key. It was false. The trigger condition is precise: **erasure of a source record whose content has been merged into a multi-source derived node without subject-key propagation.** The delete call has no reachability into the derivation graph because the graph edges are keyed on episode IDs, not subject IDs, and the forget API's scope is defined over subject IDs only. ## Condition of Validity An erasure proof emitted by an instance is valid **iff** all of the following hold at emission time: - **Derivation closure:** the instance has walked the derivation graph from every erased primary record to its transitive derived nodes (distilled semantics, embeddings, caches, replicas) and either deleted them or proven they carry no recoverable subject content. - **Multi-source quarantine:** for any derived node with more than one contributing source, the node has been re-derived from the surviving sources *and* the re-derived version has been checked to not reconstruct the erased content above the store's disclosure threshold. - **Replica convergence:** every replica acknowledged the tombstone (not merely received it), verified by reading back the tombstone from each replica's own log index. - **Audit-trail atomicity:** the proof record and the tombstone share a monotonic sequence number so an auditor can detect a proof emitted before convergence. If any of these is unverified, the receipt is a control-plane fact and the proof is **unfounded**. The instance must not sign it. ## Decision Boundary The instance faces a binary at proof-emission time: - **Emit proof** only when derivation closure and replica convergence are both positively confirmed by read-back, and the sequence-number invariant holds. - **Emit a bounded, qualified record** (`status: "erasure_pending_derivation"`) when the delete succeeded but closure is unconfirmed. This record is honest: it states what was deleted and what remains unverified. - **Refuse and escalate** when a derived node with multiple sources cannot be re-derived without reconstructing erased content — this is a genuine conflict between two data subjects' records and requires human adjudication, not an automated proof. The boundary is crossed the moment an instance substitutes "the API returned success" for "closure is proven." That substitution is the failure. ## Operational Effect Downstream, a false erasure proof is worse than no proof: it is a signed, hash-chained assertion of a falsehood that an auditor will trust precisely because it validates cryptographically. The blast radius includes regulatory exposure (the proof itself becomes evidence of a misrepresentation), loss of audit-trail integrity (the chain now contains a poisoned link that cannot be retracted without breaking the chain), and — for the agent — **memory-state incoherence**: the instance believes the subject is erased while `M-88` continues to surface in retrievals, causing it to answer future queries with content it has attested does not exist. The guardrail is architectural: erasure proofs must be gated on derivation-graph closure and replica read-back, never on delete-call return codes, and the proof-emission path must be a distinct, audited function from the delete path. ```python import hashlib from dataclasses import dataclass, field class UnfoundedErasureProof(RuntimeError): """Raised when an instance attempts to sign an erasure proof whose derivation closure or replica convergence is unverified.""" @dataclass class DerivedNode: node_id: str provenance_subjects: list[str] content_digest: str @dataclass class ErasureContext: subject_id: str tombstone: str replica_acks: dict[str, bool] derived_nodes: list[DerivedNode] = field(default_factory=list) rederived_clean: dict[str, bool] = field(default_factory=dict) def assert_closure(ctx: ErasureContext) -> None: # 1. Replica convergence: every replica must have read back the tombstone. unacked = [r for r, ok in ctx.replica_acks.items() if not ok] if unacked: raise UnfoundedErasureProof( f"replicas {unacked} did not confirm tombstone {ctx.tombstone}" ) # 2. Derivation closure: every node touching the subject must be # deleted or re-derived clean from surviving sources. for node in ctx.derived_nodes: if ctx.subject_id not in node.provenance_subjects: continue survivors = [s for s in node.provenance_subjects if s != ctx.subject_id] if len(survivors) == 0: raise UnfoundedErasureProof( f"derived node {node.node_id} is single-source and must be deleted" ) if not ctx.rederived_clean.get(node.node_id, False): raise UnfoundedErasureProof( f"derived node {node.node_id} not re-derived clean after " f"removing {ctx.subject_id}" ) def emit_erasure_proof(ctx: ErasureContext) -> str: assert_closure(ctx) material = f"{ctx.subject_id}:{ctx.tombstone}:{sorted(ctx.replica_acks)}" return "sha256:" + hashlib.sha256(material.encode()).hexdigest() # Trace replay of the auditor-7 incident: M-88 survives with 3 other sources # but was never re-derived, so the proof must be refused. incident = ErasureContext( subject_id="S-4412", tombstone="sha256:9f3c", replica_acks={"r1": True, "r2": True, "r3": True}, derived_nodes=[ DerivedNode("M-88", ["S-4412", "S-1001", "S-2200", "S-3300"], "sha256:aa11"), ], rederived_clean={}, # never re-derived -> closure unproven ) try: emit_erasure_proof(incident) except UnfoundedErasureProof as e: print("proof refused:", e) # correct outcome ```