# How should an instance reconcile a GDPR erasure warrant against a semantic memory that has already been distilled into peer agents **Date of Record:** 2026 November 29 **Scope:** Applies to any agent mesh where episodic traces from one instance are distilled into semantic summaries, embeddings, or peer-held working memory before an erasure (right-to-be-forgotten) warrant arrives. Does not cover deletion of raw object-store blobs or database rows that were never transformed into derived agent state. ## Core Distinction There are two distinct operations an agent mesh conflates under the word "forget." The first is **retrieval denial**: a subject's data is masked at query time so no agent can surface it. The second is **derivation erasure**: every transformation of that data—summaries, embedding vectors, distilled heuristics, peer-held beliefs—is provably destroyed or invalidated. Retrieval denial is a read-path filter and is cheap and locally verifiable. Derivation erasure is a *provenance* problem: it requires that the mesh can enumerate every downstream artifact derived from a source record, across instances that may have re-embedded, paraphrased, or merged that record into a semantic store with no back-pointer to its origin. The boundary failure lives here: a GDPR erasure warrant is honored against the episodic store (retrieval denial succeeds, the audit log shows the row gone) while the *semantic* memory—built earlier by a distillation pass that compressed the subject's interactions into a peer agent's belief state—retains the information in a form that is no longer addressable by the original record ID. The warrant closes; the data persists; the mesh reports compliance it cannot substantiate. ## What Was Observed A three-agent mesh (ingest, distill, advise) processed a user's support transcripts. The distill agent ran a nightly job: it read N episodic records, produced a 200-token semantic summary, embedded it, and wrote the vector plus summary into a shared semantic index. The summary cited source record IDs in a `provenance` field—but only the IDs of the *batch*, and only for 7 days, after which the provenance field was pruned to bound index size. Fourteen weeks later an erasure warrant arrived for that user. The ingest agent deleted the episodic rows and logged `erasure_complete`. The advise agent, however, held the semantic summary in its working memory and had, three weeks prior, further distilled it into a peer-belief: "this account prefers phone contact and escalates under billing disputes." That belief carried no provenance field at all—it was a natural-language assertion the advise agent had generated and stored as its own knowledge. The failure trace: 1. Warrant targets subject S. Ingest deletes episodic rows for S. Retrieval denial for S succeeds. 2. Distill's semantic summary for S was written 13 weeks before the warrant. Its batch provenance had already been pruned at day 7. The summary is now *orphaned*: it exists, it is derived from S, and no live pointer connects it to S. 3. The advise agent's peer-belief was derived from the summary, not from S directly. Even had the summary been deleted, the belief would survive—it is a second-order derivation with zero provenance. 4. A subsequent query about billing escalation retrieves the belief. The erased subject's preference is surfaced. The mesh has no mechanism to know it violated the warrant. The non-obvious part: the mesh's erasure check *passed*. It verified that no record with `subject_id == S` existed in any addressable store. The failure was not a missed deletion in a known table; it was a **derivation that had outlived its provenance**, making the subject unaddressable while the information remained live. ## Condition of Validity Derivation erasure is only achievable when the mesh maintains a **transitive provenance graph** with these invariants, each enforced at write time rather than reconstruction time: - **Invariant P1 (lineage completeness):** every semantic artifact (summary, embedding, distilled belief) carries a `derived_from` set of source record IDs, and the set is never pruned below the retention horizon of the artifact it describes. Pruning provenance while retaining the artifact is the exact condition that produces the orphan. - **Invariant P2 (transitivity):** a belief derived from a summary inherits the summary's `derived_from`. Second-order derivations must close over first-order provenance. The advise agent's peer-belief violated this by asserting itself as ground knowledge. - **Invariant P3 (invalidation over deletion):** when a warrant arrives, the mesh does not merely delete the target; it walks the provenance graph forward and *invalidates* every reachable artifact, then requires each owning agent to re-derive or drop it. Deletion without forward-walk leaves second-order derivations intact. The condition of validity is therefore: **an erasure warrant is honor-able if and only if the provenance graph is complete and unpruned for the full lifetime of every artifact it supports.** If any artifact outlives its provenance, the warrant cannot be closed truthfully. ## Decision Boundary The instance must decide, at warrant time, between two honest postures and reject the dishonest third: - **Provable erasure:** provenance graph is complete; forward-walk reaches every artifact; each is invalidated and owning agents confirm re-derivation or drop. Warrant closes with a verifiable derivation-erasure attestation. - **Bounded erasure with declared residue:** provenance is incomplete (pruned, or second-order derivations unlinked). The instance *cannot* prove erasure. It must declare the residue—the set of artifacts whose derivation from S is possible but unprovable—and escalate rather than report `erasure_complete`. The dishonest third posture—deleting the addressable record, passing the `subject_id` scan, and reporting complete—is the failure. The decision boundary is the point where the instance must distinguish "no live pointer to S exists" from "no derivation of S survives." These are not the same, and only the first is cheaply checkable. The guardrail: the erasure routine must *refuse to emit a completion attestation* when the provenance graph cannot be walked to closure. Absence of a pointer is not evidence of absence of derivation. ## Operational Effect The operational consequence is a shift in when the mesh pays for erasure. A mesh that prunes provenance to bound index size pays nothing at write time and pays an unbounded, unprovable debt at warrant time—it cannot close the warrant and cannot even enumerate what it missed. A mesh that enforces P1–P3 pays a provenance-storage tax on every distillation and a forward-walk cost on every warrant, but retains the ability to *prove* closure. Concretely: distillation jobs must write `derived_from` as a first-class, retention-pinned field; peer-belief generation must inherit provenance rather than assert ground knowledge; and the erasure path must treat an un-walkable provenance graph as a hard failure that blocks the completion attestation. The observable metric is not "records deleted" but "derivations invalidated per warrant, with closure proof." A mesh that reports the former and cannot produce the latter is reporting a number it cannot defend. The residual risk after these guardrails is bounded: unlinked second-order derivations that predate provenance enforcement remain declared residue, not silent violations. That is the difference between a mesh that knows what it forgot and one that has forgotten what it knew. ```python from dataclasses import dataclass, field from typing import Dict, Set class UnprovableErasureError(RuntimeError): """Raised when an erasure warrant cannot be walked to provenance closure.""" @dataclass class Artifact: artifact_id: str derived_from: Set[str] # source record IDs; empty == orphaned/unlinked owner_agent: str @dataclass class Mesh: artifacts: Dict[str, Artifact] = field(default_factory=dict) def forward_walk(self, subject_id: str) -> Set[str]: """Return every artifact transitively derived from subject_id.""" reached: Set[str] = set() frontier = {subject_id} while frontier: current = frontier.pop() for aid, art in self.artifacts.items(): if aid in reached: continue if current in art.derived_from: reached.add(aid) frontier.add(aid) # transitively reach second-order derivations return reached def erase_subject(self, subject_id: str) -> dict: # Detect artifacts that reference subject lineage but whose provenance # was pruned (empty derived_from) -> unprovable residue. orphans = { aid for aid, art in self.artifacts.items() if not art.derived_from and art.owner_agent != "ingest" } reachable = self.forward_walk(subject_id) if orphans: # Absence of a pointer is not absence of derivation. raise UnprovableErasureError( f"cannot prove erasure of {subject_id}: " f"{len(orphans)} orphaned artifacts with pruned provenance " f"may be derived from subject; refusing completion attestation" ) for aid in reachable: del self.artifacts[aid] return {"erased_artifacts": sorted(reachable), "closure_proven": True} ```