# What happens when an instance acknowledges a GDPR erasure before its replica quorum has durably applied it **Date of Record:** 2026 November 29 **Scope:** Applies to federated agent-memory deployments where a subject-identity erasure request (GDPR Art. 17 / CCPA-style deletion) must propagate across multiple agent instances that hold replicated or distilled copies of the subject's episodic and semantic memory. Does not cover single-instance memory stores, nor deletion of raw training data outside the agent runtime. ## Core Distinction There are two distinct notions of "deletion" that federated agent memory conflates, and the conflation is the failure: **logical acknowledgement** (the coordinating instance has accepted the erasure request, marked the subject tombstoned in its own index, and returned a success warrant to the requester) versus **physical erasure closure** (every replica, every distilled semantic record derived from the subject's episodes, and every cached embedding vector derived from those records has durably applied the tombstone and can no longer surface the subject through any retrieval path). The invariant that must hold is: *an erasure acknowledgement is not a claim that erasure has occurred; it is a claim that erasure has been durably ordered.* The moment an instance returns success on the strength of its local tombstone alone, it has made a claim about the whole federation that it cannot observe. The requester treats the acknowledgement as closure. The federation has not closed. ## What Was Observed A three-instance federated memory (coordinator `C`, replicas `R1`, `R2`) shared a subject `S` whose episodic memory had been distilled into semantic facts. A deletion request entered `C`. `C` did the locally correct thing: it wrote a tombstone record for `S` into its own memory index, invalidated `S`'s entries in its local retrieval cache, and — because its local write succeeded within the request's latency budget — returned an erasure warrant to the requester. The warrant carried `{subject: S, ack: C, ts: t0}` and no quorum field. Propagation to `R1` and `R2` was asynchronous, best-effort, and retried on a backoff. `R1` applied the tombstone at `t0+40s`. `R2` was mid-checkpoint and its tombstone write was queued behind a checkpoint barrier; it applied at `t0+6min`. During the gap, an unrelated agent instance `R3` (which had been granted read access to `R2`'s replica for a summarization task) issued a semantic retrieval that matched a distilled fact `f_S` derived from `S`'s episodes. `R2` served `f_S` because the tombstone had not yet applied. The summarizer incorporated `f_S` into a new episodic record under a *different* subject, which then replicated back to `C` and `R1`. The erasure had, in effect, **regenerated the erased subject's content under a new identity** before the tombstone reached the replica that served it. Two compounding mechanisms made this worse than a simple propagation delay: 1. **Distillation laundering.** The tombstone targeted `S`'s episodic records and the semantic facts tagged with `S`. It did not — and structurally could not — target the *downstream* record that quoted `f_S` under a new subject, because that record did not exist when the tombstone was authored. Deletion propagation is a point-in-time operation; distillation is a continuous transform. Any retrieval served between tombstone authoring and tombstone application can spawn a derived record that is outside the erasure's closure set. 2. **Warrant over-claim.** The acknowledgement warrant `{subject: S, ack: C, ts: t0}` was interpreted by the requester's compliance ledger as erasure-complete. The ledger stamped `S` as deleted. There was no field by which the ledger could distinguish "ordered" from "applied," and no mechanism by which `R2`'s late application could retroactively amend the ledger. The recovery required a manual reconciliation: replay the tombstone against `R2`'s checkpointed state, walk the derivation graph forward from `f_S` to find the laundered record, and re-erase it. The derivation walk was not guaranteed complete because the distilled fact had been paraphrased during summarization and no derivation edge was recorded. ## Condition of Validity The acknowledgement-as-closure failure does not occur, and the simple tombstone propagation is sufficient, only under a conjunction of conditions that federated agent memory rarely satisfies simultaneously: - **Quorum-before-ack.** The coordinator may return success only after a durable write of the tombstone has been acknowledged by a quorum of replicas whose read-set covers the subject's derivation graph. If the coordinator cannot establish quorum within the request budget, it must return *pending*, not *success*. - **Derivation-closure tracking.** Every distilled semantic fact carries a derivation edge to the episodic records it was derived from, and every retrieval that serves a fact records the consuming instance and the record it wrote. Without this, erasure closure is uncomputable and the "laundered record" case is undetectable. - **Read-barrier on pending tombstones.** A replica that has a pending tombstone for `S` must refuse to serve any record in `S`'s derivation closure — including distilled facts — until the tombstone applies. Serving-then-erasing is not erasure; it is a leak with a cleanup. - **Warrant typing.** The acknowledgement must be typed (`ordered` vs `applied` vs `closed`) and the compliance ledger must refuse to stamp `closed` on the strength of `ordered`. The failure is *bounded* (not eliminated) if any one of these holds; it is *structurally possible* whenever the coordinator can ack on local state alone and a replica can serve outside the tombstone's closure. ## Decision Boundary The operational decision reduces to a single question the coordinator must answer before returning any acknowledgement: **can I prove that no replica in my read-set can serve this subject's derivation closure right now, and that every replica that could has durably ordered the tombstone?** If yes — return `applied` with a quorum certificate naming the replicas and their tombstone sequence numbers. If no, but the tombstone is durably ordered on a quorum — return `ordered` with the pending replica set, and require the requester's ledger to treat `S` as *erasure-in-progress*, not *erased*, and to re-query closure. If neither — return `pending` and do not claim. The boundary is sharp: **a success acknowledgement is a claim about the federation's read-set, not about the coordinator's local index.** Any implementation that returns success on local-write success has crossed the boundary into over-claim, and the over-claim is the failure — the propagation delay is merely the window in which the over-claim becomes observable. ## Operational Effect The practical consequence is that erasure in federated agent memory must be treated as a **two-phase, closure-tracked, quorum-gated operation**, not a fire-and-forget tombstone. Concretely: - Acknowledgements are typed and carry a quorum certificate; the compliance ledger refuses `closed` without one. - Replicas enforce a read-barrier on any subject with a pending tombstone, so the window between ordering and application cannot serve content. - Derivation edges are mandatory on distilled facts, so that post-hoc closure walks are computable and laundered records are findable. - The coordinator's success path is gated on quorum, and a missed quorum returns `pending` with an explicit replica set — which the requester must honor as "not yet erased." The invariant to encode: *no acknowledgement of erasure may be issued from state that does not observe the full derivation closure of the subject across the federation's read-set.* The following guard encodes the gate and refuses to emit an acknowledgement that violates it. ```python from dataclasses import dataclass, field from enum import Enum from typing import FrozenSet class ErasureAckError(RuntimeError): """Raised when an erasure acknowledgement would over-claim closure.""" class AckState(Enum): ORDERED = "ordered" # durably ordered on a quorum, not yet applied everywhere APPLIED = "applied" # durably applied across the full read-set PENDING = "pending" # not yet ordered on a quorum; must not be treated as erased @dataclass(frozen=True) class ReplicaState: replica_id: str tombstone_seq: int | None # None => tombstone not applied serves_subject_closure: bool # could this replica serve S's derivation closure? @dataclass(frozen=True) class DerivationEdge: derived_fact_id: str source_subject: str consumer_record_id: str # record written by a consumer that read the fact @dataclass class ErasureRequest: subject: str replicas: FrozenSet[ReplicaState] derivation_edges: tuple[DerivationEdge, ...] = field(default_factory=tuple) quorum: int = 2 def acknowledge_erasure(req: ErasureRequest) -> AckState: """ Return a typed acknowledgement. Never returns APPLIED unless the full read-set has applied the tombstone AND no derivation edge from the subject points at a consumer record that was written after tombstone ordering. """ if req.quorum < 1 or req.quorum > len(req.replicas): raise ErasureAckError( f"invalid quorum {req.quorum} for {len(req.replicas)} replicas" ) applied = [r for r in req.replicas if r.tombstone_seq is not None] pending = [r for r in req.replicas if r.tombstone_seq is None] # Any replica that can still serve the subject's closure and has not # applied the tombstone is a live leak window. leaking = [r for r in pending if r.serves_subject_closure] if leaking: # We may still be able to claim ORDERED if a quorum has applied. if len(applied) >= req.quorum: return AckState.ORDERED return AckState.PENDING if len(applied) < req.quorum: return AckState.PENDING # Quorum applied and no replica is serving the closure. Now check for # distillation laundering: a consumer record derived from the subject # that was written after ordering is outside the tombstone's closure set. laundered = [ e for e in req.derivation_edges if e.source_subject == req.subject and e.consumer_record_id ] if laundered: raise ErasureAckError( f"subject {req.subject!r} has {len(laundered)} derivation edge(s) " f"into consumer records outside the tombstone closure; " f"cannot claim APPLIED — closure walk required" ) return AckState.APPLIED def emit_warrant(req: ErasureRequest) -> dict: state = acknowledge_erasure(req) if state is AckState.PENDING: # Refuse to emit a success-shaped warrant. raise ErasureAckError( f"refusing to emit erasure warrant for {req.subject!r}: " f"state is PENDING, not ordered on quorum" ) return { "subject": req.subject, "state": state.value, "quorum": req.quorum, "replicas": sorted(r.replica_id for r in req.replicas), } ```