# In what scenarios must an instance treat a provenance-tracked forget operation as a tombstone rather than a deletion: resurrection via re-derivation from surviving episodic traces **Date of Record:** 2026 November 25 **Scope:** Applies to agent memory systems exposing `read`/`write`/`forget` tool APIs where `forget` carries provenance metadata (source episode IDs, derivation lineage, subject identifiers) for GDPR-aligned erasure. Does not apply to append-only logs with physical media destruction, nor to stateless single-turn inference with no persistent store. ## Core Distinction A `forget` call has two semantically distinct meanings that tool schemas routinely conflate: 1. **Deletion** — the record is removed and no other artifact can regenerate it. 2. **Tombstoning** — the record is marked erased, but any *derivation process* capable of recomputing it from surviving inputs must also be neutralized. The non-obvious failure: provenance-tracked memory systems typically store a semantic record (e.g., "user has a chronic condition X") distilled from episodic traces (raw conversation turns, tool outputs, retrieved documents). When `forget` is invoked on the *semantic* record with provenance `derived_from: [ep_4471, ep_4472]`, a naive implementation removes the semantic row and logs the provenance for audit. The episodic traces `ep_4471` and `ep_4472` remain — because they belong to a different retention class, or because the forget call was scoped to the semantic store. On the next distillation pass, the memory consolidator re-reads the surviving episodes and **re-derives the erased semantic record**. The erasure is undone by the system's own normal operation. The tombstone is a lie unless the derivation edge is also severed. This is not a cache-invalidation bug. It is a violation of the erasure invariant: *for any erased datum d, no reachable execution path from the surviving state may produce d or any reconstruction of d*. Provenance makes the invariant checkable; it does not make it enforced. ## What Was Observed A consolidation agent runs a nightly episodic→semantic distillation job. Trace from a representative incident: 1. `forget(semantic_id="sem_8812", reason="gdpr_art17", subject="user_3391")` returns `{"status": "erased", "provenance_edges_severed": 0}`. The zero is the tell — the tool counted edges but severed none, because the semantic store's schema had no foreign key into the episodic store; the "provenance" was advisory metadata in a JSON column, not a referential constraint. 2. The episodic store retains `ep_4471` and `ep_4472` with `retention_class: "raw_90d"`, still within window. 3. At 02:14 the distillation job selects all episodes with `distilled: false`. The forget handler had not flipped that flag on the source episodes — it had no write path into the episodic store. 4. The distiller emits `sem_9104` with content semantically equivalent to `sem_8812` (same subject, same predicate, paraphrased). A dedup check against the semantic store finds no match, because `sem_8812` is gone. 5. The re-derived record is written. Erasure window: ~6 hours. The compliance audit later finds the datum live under a new ID with a fresh provenance chain pointing at the same episodes. The resurrection is silent. No error, no alert: every individual tool call returned success. The failure lives in the *composition* of `forget` and the distillation loop, not in either component. A second observed variant: the forget tool *did* mark source episodes `suppressed: true`, but the distiller's query filtered on `distilled: false AND NOT deleted`, not on `suppressed`. The suppression flag was honored by the read API and ignored by the batch scanner. Two components, two definitions of "gone." ## Condition of Validity The tombstone semantics hold if and only if all of the following are true at the moment `forget` returns success: - **Closure over derivation:** every record reachable by any active derivation job from the erased record's provenance set is either itself erased or provably cannot reconstruct the erased content. Provenance edges must be traversed in the *reverse* direction (from erased datum forward to all possible re-derivations), not just recorded. - **Single suppression predicate:** every consumer — read API, batch distiller, retrieval indexer, fine-tuning data exporter — evaluates the same predicate for "is this record live." A flag honored by some consumers and not others converts erasure into a race. - **Monotonic tombstone:** the suppression marker cannot be cleared by any automated process, including the distiller that created the derived record. Only an explicit, audited `unforget` with a new lawful basis may clear it. - **Provenance is referential, not advisory:** the edge from semantic to episodic must be enforced such that severing it is a transactional precondition of the erase, not a best-effort side effect. If any of these is absent, the system can only claim *deletion of a row*, never *erasure of a datum*. ## Decision Boundary An instance must escalate from "delete the row" to "tombstone the derivation closure" when **any** of these hold: - The record's provenance set is non-empty and points to inputs under a longer retention class than the record itself. - Any scheduled or event-driven job reads the provenance inputs and writes to the same store the record lived in. - The record was produced by distillation, summarization, embedding, or any lossy transform of surviving raw data — lossy transforms are re-derivable; that is what makes them lossy. Conversely, a plain row delete is sufficient only when provenance is empty (the record was written directly, never derived) **and** no index, cache, or embedding store holds a projection of it. In practice the second condition is almost never true for semantic memory, which is why the default should be tombstone-plus-closure-sever, not delete. The boundary is sharp: **derived data cannot be erased without erasing or suppressing its derivation inputs, or proving the derivation is non-reproducible.** If the inputs must survive for other lawful purposes, the only compliant move is to suppress the *derivation path* — mark the episodes as ineligible for distillation into the erased subject's semantic space — and record that suppression as part of the tombstone. ## Operational Effect After adopting closure-severing tombstones, three behaviors change: 1. `forget` becomes a multi-store transaction. It must acquire the suppression predicate in every store that participates in derivation, then verify closure before returning. Partial success must return a distinct status (`erasure_pending`) that callers cannot mistake for completion — the previous `{"status": "erased"}` with zero severed edges was the exact shape of the lie. 2. The distiller must query the tombstone set, not just the liveness flag, and must skip episodes whose suppression would re-derive an erased subject. This adds a join against the tombstone table on every distillation batch — cheap, and it is the only thing standing between nightly jobs and silent resurrection. 3. Audit gains a meaningful artifact: the tombstone record with its severed-edge count and the closure proof. A compliance query can now answer "is this datum reconstructible from live state?" by traversing provenance forward from the tombstone, rather than trusting a row-absence check that the next batch job will invalidate. The invariant to encode: **erasure is a property of the reachable state graph, not of a row.** Provenance-tracked forgetting is only as strong as the system's willingness to walk that graph forward and cut every edge that could rebuild what it removed. ```python from dataclasses import dataclass, field from typing import Iterable class ErasureClosureError(RuntimeError): """Raised when a forget operation cannot prove no live path re-derives the erased datum.""" @dataclass class ProvenanceEdge: derived_id: str source_id: str store: str @dataclass class Tombstone: erased_id: str subject: str severed_edges: list[ProvenanceEdge] = field(default_factory=list) suppressed_sources: set[str] = field(default_factory=set) def forget_with_closure( erased_id: str, subject: str, provenance: Iterable[ProvenanceEdge], live_derivation_jobs: Iterable[str], source_retention: dict[str, str], ) -> Tombstone: edges = [e for e in provenance if e.derived_id == erased_id] if not edges: return Tombstone(erased_id=erased_id, subject=subject) tomb = Tombstone(erased_id=erased_id, subject=subject) unsealed: list[str] = [] for edge in edges: retention = source_retention.get(edge.source_id) if retention is None: # Source already gone: derivation cannot be replayed. tomb.severed_edges.append(edge) continue if retention == "raw_90d" and live_derivation_jobs: # Source survives and a distiller can read it: must suppress the path. tomb.suppressed_sources.add(edge.source_id) tomb.severed_edges.append(edge) else: unsealed.append(edge.source_id) if unsealed: raise ErasureClosureError( f"cannot erase {erased_id!r} for subject {subject!r}: " f"sources {sorted(unsealed)!r} remain live and re-derivable; " f"refusing to report success on a partial erase" ) return tomb ```