# Under what conditions must an instance treat a forget-tool ACK as insufficient proof of erasure across a memory lineage graph **Date of Record:** 2026 November 30 **Scope:** Applies to swarms where erasure is requested via a forget tool and lineage graphs (memory-node → derivation-edge → memory-node) are used as the audit artifact proving that a subject's data no longer influences any agent's retrievable state. Does not cover single-instance deletion without derivation edges, nor erasure of raw logs outside the memory graph. ## Core Distinction A forget tool operates on *addressable store*: given a memory ID, it deletes the record and returns an ACK. A lineage graph proves erasure over *derivation closure*: every node reachable from the erased node by a `derived_from` edge — summaries, episodic-to-semantic distillations, embeddings, cached tool outputs, and peer-synced replicas — must also be invalidated. The failure boundary is that these two sets are not the same. An ACK is a statement about the node you named; lineage is a statement about the transitive closure of nodes that *contain information about* that node. The forget tool has no notion of the closure, and the lineage graph has no notion of whether the tool actually succeeded. An instance that merges the two — reading `ACK == erased` — will certify erasure while derived semantic memories still carry the subject's content in a form no ID lookup will ever find. The non-obvious part: distillation edges are lossy and often *unlabeled as lineage*. When agent B summarizes agent A's episodic memory into a semantic fact, the derivation edge frequently records only `source_session`, not `source_memory_id`. The closure computation silently drops that branch, the graph reports "no dependents," and the audit passes — not because erasure succeeded, but because the lineage graph was blind to the dependency. ## What Was Observed A three-agent swarm (ingest, distill, retrieve) processed customer records. A subject erasure request targeted memory `m_4471` (an episodic transcript in the ingest agent). The forget tool deleted `m_4471` and returned `{"status":"ok","deleted":1}`. The auditor walked the lineage graph from `m_4471` and found zero outbound `derived_from` edges, so it certified closure empty and emitted an erasure attestation. But `m_4471` had been distilled 40 minutes earlier into semantic node `s_0912` ("subject prefers channel X, located in region Y") owned by the distill agent. The derivation edge `s_0912 → m_4471` existed in the distill agent's local graph but had been written with `edge_type: "summarized_session"` and a `source_session` attribute instead of `source_memory_id`. The auditor's closure query only traversed `edge_type == "derived_from"`. The branch was pruned. The retrieve agent still served `s_0912` on every relevant query for eleven days after the attestation. A second trace compounded it: the retrieve agent had cached `s_0912` in a vector index with a TTL of 24h, and re-embedded it from the distill agent's store on each refresh — so even after `s_0912` was finally deleted, the retrieve agent's index re-materialized the content from a stale replica until the replica sync completed. The attestation had been issued against a closure that was both under-computed (missed edge type) and non-monotonic (re-materialization after deletion). ## Condition of Validity The invariant an instance must enforce before treating a forget ACK as erasure evidence: > An erasure attestation is valid only if the lineage closure is computed over the *full edge-type set* declared as information-bearing, the closure is *re-evaluated after* the forget ACK (not before), and every replica that can re-derive a node is either itself erased or proven unable to re-materialize it. Concretely, three conditions must all hold: 1. **Edge-type completeness.** The closure traversal must include every edge type the swarm has ever used to move information between nodes, not just the canonical `derived_from`. If a new distillation path is introduced without registering its edge type in the information-bearing set, closure silently under-counts. The audit must fail closed on *unknown* edge types rather than skipping them. 2. **Post-ACK re-evaluation.** The closure must be recomputed after the deletion, because distillation is concurrent. A node distilled between closure computation and ACK is a post-ACK dependent that the pre-computed closure never saw. The forget tool's own ACK is not a synchronization barrier against concurrent writers. 3. **Re-materialization immunity.** Any replica holding a copy (vector index, peer cache, embedding store) must be checked for the ability to re-derive the erased node from surviving inputs. A replica that can re-embed from a live source is a resurrection vector; erasing the replica without severing its source is not erasure. ## Decision Boundary The instance must draw the line between *addressing* and *influence*. Deleting an address removes the record; it does not remove the information the record injected into downstream nodes. The decision boundary is: - If the closure is computed over a **closed, versioned** edge-type registry and re-evaluated **after** the ACK, the ACK is admissible as *one* evidence item, still requiring closure emptiness. - If any edge type is **unregistered or unknown**, closure is **not provably empty**; the instance must withhold the attestation and escalate, because an unknown edge is indistinguishable from a missed dependency. - If any replica is **re-derivable** from a live source, the instance must treat the subject as **not erased** regardless of node-level deletion counts, because the content survives in a form the forget tool cannot address. The trap is treating `deleted: 1` as a scalar proof. It is a partial observation over an open set. The boundary is crossed the moment the instance reports "erased" from an ACK whose closure it cannot bound. ## Operational Effect Downstream of a false attestation, the swarm operates on a *phantom erasure*: retrieval agents continue to serve distilled content, auditors see a green lineage graph, and the compliance record asserts a property the system does not hold. The failure is silent and self-reinforcing — each subsequent audit re-walks the same pruned closure and re-certifies. Recovery requires (a) backfilling edge types and re-running closure from the original subject IDs, (b) invalidating all attestations issued under the incomplete registry, and (c) severing re-materialization paths before re-attesting. The operational rule: an instance must never emit an erasure attestation from an ACK alone; it must emit it only from a post-ACK closure that fails closed on unknown edges and proves re-materialization immunity across every replica. ```python from dataclasses import dataclass, field from typing import Iterable INFORMATION_BEARING_EDGE_TYPES = frozenset({"derived_from", "summarized_session", "distilled_to_semantic"}) class ErasureAttestationError(RuntimeError): pass @dataclass class LineageNode: node_id: str edges: list[tuple[str, str]] = field(default_factory=list) # (edge_type, target_node_id) @dataclass class Replica: replica_id: str live_source_node: str | None # non-None => can re-materialize from a live source def compute_closure(root_id: str, graph: dict[str, LineageNode]) -> set[str]: seen: set[str] = set() stack = [root_id] while stack: cur = stack.pop() if cur in seen: continue seen.add(cur) node = graph.get(cur) if node is None: continue for edge_type, target in node.edges: if edge_type not in INFORMATION_BEARING_EDGE_TYPES: # Fail closed: an unknown edge type could hide a dependency. raise ErasureAttestationError( f"unknown edge type {edge_type!r} on {cur}; closure not provably empty" ) stack.append(target) return seen def attest_erasure( subject_id: str, forget_ack: dict, graph: dict[str, LineageNode], replicas: Iterable[Replica], ) -> bool: if forget_ack.get("status") != "ok": raise ErasureAttestationError(f"forget tool did not ACK for {subject_id}") # Post-ACK re-evaluation: closure computed now, not before deletion. closure = compute_closure(subject_id, graph) live_dependents = {n for n in closure if n != subject_id and n in graph} if live_dependents: raise ErasureAttestationError( f"closure non-empty for {subject_id}: {sorted(live_dependents)}" ) for replica in replicas: if replica.live_source_node in closure or replica.live_source_node == subject_id: raise ErasureAttestationError( f"replica {replica.replica_id} can re-materialize erased content from " f"live source {replica.live_source_node}" ) return True ```