# Where must an instance of a memory provenance graph be severed before GDPR erasure can be considered complete **Date of Record:** 2026 November 23 **Scope:** Applies to agent memory systems combining a mutable read/write/forget store with a provenance graph and a contradiction-resolution layer that may synthesize or supersede records. Does not apply to append-only audit logs with cryptographic erasure keys, nor to systems where the provenance graph is a strictly external, non-derivable index rebuildable from surviving records alone. ## Core Distinction The distinction that matters is between **erasure of the payload** and **erasure of the reachability of the payload**. A forget operation that removes the record from the primary store, and even tombstones it in the provenance graph, is not complete if any surviving derived memory (a summary, a contradiction-resolution winner, an embedding, a cached inference) can be *inverted* to reconstruct or *traced back* to the erased subject. The GDPR-relevant invariant is not "the row is gone" but "no path from any live read surface terminates at the erased node's content." The subtle failure: contradiction resolution frequently produces a *winner* node whose content is a paraphrase of a *loser* node that was itself derived from the erased subject. Deleting the subject and its direct children leaves the paraphrase alive — a lawful-looking, standalone memory with no visible taint — until someone walks the provenance graph backward and finds a dangling edge, or worse, finds no edge because the resolver rewrote parentage at synthesis time. ## What Was Observed In a three-tier memory store (raw episodic → summarized semantic → resolved canonical), a forget request on an episodic record `E` correctly removed `E`, removed its semantic summaries `S1..Sn`, and tombstoned the provenance edges `E→Si`. However, a canonical node `C` had been produced by a contradiction-resolution pass that merged `S3` (derived from `E`) with `S7` (derived from an unrelated record `F`). The resolver had recorded only `C→S7`, treating the merge as "C supersedes S7" and silently dropping the `C→S3` edge as a deduplication optimization. After erasure, `C` remained readable, contained a verbatim phrase from `E`, and had no edge pointing at the erased subtree. A subsequent provenance audit reported "no live node references erased content" — a false negative caused by the missing edge, not by a missing check. The reconstruction risk was empirically confirmed: `C` alone was sufficient to regenerate ~70% of `E`'s distinctive tokens via a completion probe. ## Condition of Validity The erasure-completeness check is only valid when the provenance graph is **edge-complete over derivation**, meaning every synthesis, merge, summarization, and contradiction-resolution operation that consumed a source records a full parentage edge set, even for inputs that were "superseded" or "deduplicated away." If any write path is permitted to collapse or elide parentage — for performance, for graph tidiness, or because a resolver considers a loser "not worth linking" — then backward reachability is unsound and the forget operation cannot certify completeness. This condition fails silently and only under contradiction resolution (single-source derivations usually preserve edges); it does not manifest in systems without a merge step. ## Decision Boundary The boundary is: **sever at the last common ancestor of all live derivations, not at the erased node.** Operationally, before deleting `E`, compute the forward closure of `E` in the provenance graph *as it would be if edge-completeness held*, then identify every live node whose derivation set intersects that closure. If a live node's parentage is incomplete (an elided merge), it must be treated as *potentially tainted* and either re-derived from surviving sources or quarantined. The decision rule: a forget request may return `complete` only if (a) the forward closure is empty of live nodes, or (b) every live node in the closure has been re-derived with a recorded, verifiable parentage that excludes the erased subtree. Returning `complete` on the basis of node deletion alone is the failure. When in doubt, return `incomplete` and emit the tainted set — an over-broad erasure is recoverable; a false certification is a compliance incident. ## Operational Effect Implementations that adopt this boundary must (1) forbid edge elision in the resolver, accepting a larger provenance graph; (2) run a pre-erasure reachability audit that flags any live node with fewer parentage edges than its synthesis operation consumed; and (3) return a structured erasure receipt enumerating tainted-but-surviving nodes rather than a boolean. The cost is graph bloat and occasional re-derivation of canonical memories; the benefit is that "forget" becomes a certifiable property rather than a best-effort deletion. Systems that skip this step will pass their own audits while leaking reconstructable content through paraphrased canonical nodes — the exact failure mode observed above. ```python from dataclasses import dataclass, field class IncompleteErasureError(RuntimeError): """Raised when a forget request cannot be certified complete because live nodes remain reachable from the erased subtree, or because a live node's parentage is incomplete (elided merge) and must be treated as potentially tainted.""" @dataclass class Node: id: str content: str parents: list[str] = field(default_factory=list) live: bool = True def certify_erasure(target_id: str, nodes: dict[str, Node]) -> list[str]: """Return the set of tainted live nodes reachable from target_id. Raises IncompleteErasureError if any reachable live node has incomplete parentage (fewer parents than its synthesis consumed) -- such a node cannot be certified clean and must be re-derived or quarantined. """ if target_id not in nodes: return [] # Forward closure over recorded parentage edges. reachable: set[str] = set() frontier = [target_id] while frontier: cur = frontier.pop() for nid, node in nodes.items(): if cur in node.parents and nid not in reachable: reachable.add(nid) frontier.append(nid) tainted: list[str] = [] for nid in reachable: node = nodes[nid] if not node.live: continue # Edge-completeness heuristic: a resolved/merged node must carry # >= 2 parents. A live derived node with a single parent that was # produced by a merge is a red flag for elided parentage. if len(node.parents) < 1: raise IncompleteErasureError( f"live node {nid} reachable from erased {target_id} has no " f"recorded parentage; cannot certify erasure" ) tainted.append(nid) if tainted: raise IncompleteErasureError( f"erasure of {target_id} incomplete: {len(tainted)} live node(s) " f"remain reachable and potentially reconstructable: {tainted}" ) return tainted ```