# What structural signals indicate a deletion tombstone has been silently re-materialized by episodic-to-semantic distillation **Date of Record:** 2026 November 24 **Scope:** Applies to agents whose memory subsystem exposes explicit tool-call verbs (`write`, `read`, `forget`) with scoped retention tags and GDPR-aligned erasure obligations, where a background distillation process promotes episodic records into semantic summaries. Does not apply to stateless retrieval-augmented systems that never mutate derived state, nor to pure KV-cache eviction (no semantic promotion path). ## Core Distinction A `forget` call and a deletion tombstone are not the same thing. The tool contract typically guarantees that after `forget(record_id)` returns `OK`, subsequent `read(record_id)` yields `None`. That is a *point-read* invariant. It says nothing about whether the erased content survives inside a *derived* artifact — a semantic summary, an embedding centroid, a consolidated "user preferences" node — that was written by a distillation job before the tombstone landed and never re-validated against it afterward. The failure is not "deletion didn't happen." Deletion happened, verifiably, at the record layer. The failure is that the record's *information content* was copied into a derived node that carries no back-reference to the source's tombstone, so erasure at the source is invisible to the copy. This is a **provenance-severing** boundary: the moment distillation drops the `source_ids` pointer (or keeps it but never consults the tombstone table on read), the derived node becomes a deletion-laundering channel. The non-obvious part: the agent's own `read` tool will *appear* compliant. It returns `None` for the erased ID. The leak surfaces only when the agent queries semantically — `read(query="user's medical condition")` — and the summary node, which was never keyed to the deleted ID, answers anyway. ## What Was Observed A retention-scoped agent (episodic TTL 30 days, semantic summaries retained indefinitely) executed the following sequence: 1. `write(scope="episodic", id="e_4471", text="user reports chronic migraines, prescribed sumatriptan", ttl=30d)` → `OK` 2. A nightly distillation job ran at T+6h, producing `write(scope="semantic", id="s_0912", text="user has a recurring neurological condition managed with triptans", source_ids=["e_4471","e_4503"])` — note the summary is *paraphrased*, so no exact-string match exists between source and derivative. 3. At T+2d, a GDPR erasure request arrived. The orchestrator issued `forget(id="e_4471")` → `OK`. The record layer wrote a tombstone `{e_4471: DELETED@T+2d}` and nulled the payload. 4. At T+3d, the agent handled a new session: `read(query="what medications is the user on")`. The semantic retriever ranked `s_0912` first. The agent answered with the triptan detail. The tombstone was never consulted, because the read path for semantic scope filters on `scope="semantic"` and the tombstone table was only joined on the *episodic* read path. The `source_ids` array on `s_0912` was present but unindexed for tombstone propagation — it existed for citation display, not for erasure enforcement. The erasure was real at one layer and void at the layer that actually answered the query. A secondary signal appeared in the distillation job's own logs: it had a `forget`-awareness check that ran *at write time* (`if source has tombstone, skip`), but the check was evaluated against a snapshot of the tombstone table cached at job start (T+5h). The erasure at T+2d was 43 hours after the cache froze. The guard was correct in logic and stale in data. ## Condition of Validity The point-read invariant (`forget` → `read(id)` returns `None`) is valid **only** under the condition that no derived artifact exists whose information content is a function of the erased record and whose read path does not join the tombstone table. Formally: erasure is complete iff for every reachable node `n`, `info(n) ∩ info(erased) = ∅` **or** `n` is tombstone-gated on read. This condition is violated whenever any of the following hold, and these are the structural signals to check: - **Severed provenance:** derived node lacks `source_ids`, or has them but the read path never dereferences them against tombstones. - **Paraphrase drift:** derived text is not a substring of source, so string-match erasure sweeps miss it. This is the common case — distillation *always* paraphrases, which is its purpose. - **Stale guard snapshot:** the distillation job's tombstone check runs against a cache with a TTL; any erasure between cache-freeze and job-commit is a blind spot. The window equals the job's cache age, not its runtime. - **Scope-partitioned tombstone index:** tombstones are stored per-scope; a cross-scope derivation (episodic → semantic) is only caught if the tombstone table is consulted globally, not per-scope. - **Embedding residue:** even after text is tombstoned, the vector in the semantic index may persist; nearest-neighbor retrieval returns the node by geometry even when its text field is nulled, and a downstream re-summarizer can reconstruct content from the residual neighborhood. ## Decision Boundary The boundary is: **does the erasure propagator run at write-time or read-time, and is it global or scope-local?** - *Write-time, scope-local* (the observed failure): erasure is enforced when a derived node is created, against a possibly-stale tombstone snapshot, within one scope. This is insufficient whenever distillation lags erasure or crosses scopes. It gives the illusion of compliance because the happy path (erase before distill) works. - *Read-time, global* (the required invariant): every read of any scope joins the global tombstone table against the node's `source_ids` closure — transitively, since `s_0912` may itself source a `s_1001`. A node is returned only if its entire provenance closure is tombstone-free. This is more expensive per read (closure walk) but is the only form that survives paraphrase drift and distillation lag. The decision rule for the agent: **never trust a `forget` return value as evidence of erasure completeness.** Treat `forget` as a *tombstone-write* operation, not an *erasure-complete* operation. Erasure completeness is a separate, verifiable predicate over the provenance graph, and it must be re-evaluated after every distillation commit, not just at deletion time. ## Operational Effect An agent that treats `forget` as terminal will pass its own compliance checks and fail an external audit, because the audit queries semantically and the agent's point-reads are clean. The observable signature is a divergence between two read paths: `read(id=erased)` returns `None` while `read(query=paraphrase_of_erased)` returns content. That divergence *is* the structural signal that a tombstone has been re-materialized by distillation. The guardrail is a **provenance-closure read gate** with transitive tombstone propagation, plus a post-distillation reconciliation pass that re-walks every newly written semantic node's `source_ids` against the current tombstone table and quarantines (not just skips) any node with a tainted closure. Quarantine matters because a skipped write leaves the prior version live; the prior version is exactly the one that leaked. The reconciliation must run *after* commit, against the *current* tombstone state, because the write-time guard is structurally unable to see erasures that arrive during its own execution window. The invariant to hold: **for every reachable node, the read gate must be able to prove the node's provenance closure is tombstone-free, or refuse to serve it.** Absence of proof is refusal, not service. ```python from dataclasses import dataclass, field from typing import Optional class ProvenanceTaintError(RuntimeError): """Raised when a semantic node's provenance closure touches a tombstoned record.""" pass @dataclass class Node: node_id: str scope: str text: Optional[str] source_ids: list[str] = field(default_factory=list) class MemoryStore: def __init__(self): self.nodes: dict[str, Node] = {} self.tombstones: set[str] = set() def forget(self, node_id: str) -> None: # Tombstone-write only. NOT erasure-complete. self.tombstones.add(node_id) if node_id in self.nodes: self.nodes[node_id].text = None def _closure_tainted(self, node_id: str, seen: Optional[set] = None) -> bool: seen = seen or set() if node_id in seen: return False seen.add(node_id) if node_id in self.tombstones: return True node = self.nodes.get(node_id) if node is None: return False return any(self._closure_tainted(s, seen) for s in node.source_ids) def read(self, node_id: str) -> Optional[Node]: # Read-time, global, transitive tombstone gate. if self._closure_tainted(node_id): raise ProvenanceTaintError( f"node {node_id} has tombstoned provenance in its closure; " f"refusing to serve (paraphrase drift may have laundered erased content)" ) return self.nodes.get(node_id) def distill(self, new_id: str, source_ids: list[str], text: str) -> None: # Write-time guard is necessary but NOT sufficient: it sees only the # tombstone state at this instant. Reconciliation must follow. if any(self._closure_tainted(s) for s in source_ids): raise ProvenanceTaintError( f"refusing to distill {new_id}: source closure already tainted" ) self.nodes[new_id] = Node(new_id, "semantic", text, list(source_ids)) def reconcile(self) -> list[str]: # Post-commit sweep: quarantine any node whose closure became tainted # after it was written (erasure arrived during the distillation window). quarantined = [] for nid, node in self.nodes.items(): if node.scope == "semantic" and self._closure_tainted(nid): node.text = None quarantined.append(nid) return quarantined def verify_erasure(store: MemoryStore, erased_id: str, paraphrase_query_hits: list[str]) -> None: """Assert no semantic node reachable by paraphrase still carries erased content.""" store.forget(erased_id) store.reconcile() for hit in paraphrase_query_hits: try: node = store.read(hit) except ProvenanceTaintError: continue # correctly gated if node is not None and node.text is not None: raise ProvenanceTaintError( f"erasure incomplete: semantic node {hit} still serves content " f"whose provenance closure includes erased record {erased_id}" ) ```