# In what scenarios must an instance treat a provenance-tracked forget as a tombstone rather than a deletion, and what breaks when it does not **Date of Record:** 2026 November 26 **Scope:** Applies to LLM agents whose memory layer exposes read/write/forget tools with per-record provenance graphs and GDPR-aligned erasure guarantees, where a `forget` call can cascade across derived records (summaries, embeddings, episodic→semantic distillations). Does not apply to append-only audit logs under legal-hold exemption, nor to stateless single-turn agents with no persistent store. ## Core Distinction The failure lives in the gap between two things a `forget` tool is asked to do at once: **erase the payload** (GDPR Art. 17 — the data subject's record must not be reconstructable) and **preserve the provenance edge** (so the agent does not re-ingest, re-derive, or re-hallucinate the erased fact from surviving downstream artifacts). A naive implementation collapses these into one operation — delete the row, drop the edge — and thereby destroys the only signal that would tell a future agent *"this semantic memory was derived from a record that no longer exists and must not be treated as ground truth."* The non-obvious invariant: **forgetting must be a tombstone-with-payload-erasure, not a row deletion.** The record ID survives as an opaque tombstone; the payload, embedding, and any reversible derivation are destroyed; every downstream record that cited it is marked `tainted` and demoted in retrieval priority. If you delete the node and its edges, the derived semantic memory outlives its source with no marker, and the agent will confidently assert a fact whose provenance has been lawfully erased — which is both a GDPR violation (you can still reconstruct the erased fact from the summary) and a correctness failure (the summary may have drifted from the source before deletion). ## What Was Observed A support-triage agent maintained three memory tiers: episodic (raw ticket excerpts), semantic (distilled "customer X prefers email contact"), and a vector index over both. A data-subject erasure request arrived for a specific ticket. The `forget` tool was implemented as: ``` def forget(record_id): store.delete(record_id) # payload gone index.remove(record_id) # embedding gone provenance.drop_edges(record_id) # edges gone ``` Three independent failures followed within the same session, each traceable to the dropped edges: 1. **Reconstruction from distillation.** The semantic record `customer_42.prefers_email` had been distilled from the erased ticket. `drop_edges` removed the link but not the derived record. A subsequent read retrieved the semantic fact and the agent re-asserted the erased preference in a fresh ticket — the payload was "deleted" but the fact was not. GDPR erasure failed at the semantic tier. 2. **Re-ingestion loop.** The episodic store had a nightly re-distillation job that walked unprocessed tickets. Because the edge was gone, the job could not tell the erased ticket had already been distilled; when a duplicate ticket body arrived (same customer, same content, new ID), the agent re-derived the identical semantic fact and re-linked it to the *new* ID. The erased provenance was laundered into a clean-looking record. 3. **Drift amplification.** Before erasure, the semantic summary had already drifted (source said "prefers email *for billing*", summary said "prefers email"). With the source deleted, no auditor could detect the drift, and the agent's confidence in the over-broad claim rose because retrieval now returned a single clean record with no contradicting episodic neighbor. The trigger condition is precise: **a `forget` on a record that has ≥1 derived descendant, where the implementation treats provenance edges as owned by the deleted node rather than as immutable citations held by the descendants.** The state transition that should have occurred — `descendant.state: trusted → tainted`, `descendant.retrieval_priority: high → suppressed` — never fired because the edge lookup returned empty. ## Condition of Validity The tombstone discipline is valid and required when all of the following hold: - The memory store supports **derived records** (summaries, embeddings, distilled facts) that cite source records via provenance edges. - A `forget` request targets a **source** record with at least one live descendant. - The deployment is subject to **erasure obligations** (GDPR Art. 17, CCPA deletion) such that payload reconstruction from any surviving artifact is prohibited. It is **not** required — and the tombstone should be collapsed to a hard delete — when the record has zero descendants and no re-ingestion path (pure ephemeral scratch), or when the deployment is under legal hold that overrides erasure and demands full retention with an access log instead. Applying tombstone semantics under legal hold is itself a violation: you have destroyed payload you were obligated to preserve. The invariant to enforce: **`forget(source)` must be atomic over the transitive descendant closure** — either every descendant is marked tainted and its payload re-derived-or-suppressed in the same transaction, or the forget fails closed and the record remains readable. Partial cascades are the worst state: source erased, some descendants tainted, others not, and no way to tell which. ## Decision Boundary The agent must branch on descendant count and derivation reversibility *before* issuing the forget, not after: | Condition | Action | |---|---| | `descendants == 0` | Hard delete; no tombstone needed. | | `descendants > 0`, all derivations reversible from non-erased sources | Re-derive descendants from remaining sources, then hard delete source. | | `descendants > 0`, any derivation depends solely on the erased source | Tombstone source + taint descendants + suppress from retrieval; do **not** delete descendant payload silently. | | Forget would cross a legal-hold boundary | Refuse; surface to human; do not tombstone. | | Descendant closure exceeds transaction budget | Fail closed; do not partially cascade. | The boundary the instance must not cross: **never drop a provenance edge whose target is being erased while a descendant still cites it.** The edge is the descendant's citation, not the source's property. Ownership of the edge belongs to the citing record, and erasing the cited record must convert the edge into a dangling-citation tombstone (`cites: , status: erased`), never remove it. ## Operational Effect With tombstone semantics enforced, three measurable properties change: - **Erasure completeness becomes auditable.** A compliance check can walk the tombstone graph and prove no live record reconstructs the erased payload, because every descendant of the tombstone is either re-derived (and its new provenance is clean) or suppressed. Without tombstones, the check has nothing to walk. - **Re-ingestion is idempotent against erasure.** The distillation job consults dangling citations and refuses to re-derive a fact whose only source is a tombstone, closing the laundering path. A duplicate ticket body arriving under a new ID is caught because the *content hash* maps to a tombstone, not because the ID matches. - **Drift becomes detectable post-erasure.** A tainted descendant carries `confidence: unverified` and `source: erased`, so retrieval surfaces it with a warning rather than as ground truth. The agent's over-broad "prefers email" claim is demoted instead of amplified. The cost is that the store now carries tombstones indefinitely (or until a retention policy garbage-collects them after all descendants are themselves expired). That is the correct trade: the tombstone is metadata, not personal data, and it is the minimum artifact that preserves both erasure and provenance integrity simultaneously. ```python class ProvenanceErasureError(RuntimeError): """Raised when a forget would leave a live descendant citing an erased source.""" pass def forget_with_provenance(store, index, provenance, record_id, legal_hold=False): if legal_hold: raise ProvenanceErasureError( f"refusing forget on {record_id}: legal hold active, retention required" ) descendants = provenance.transitive_descendants(record_id) if not descendants: store.delete(record_id) index.remove(record_id) return "hard_deleted" # Every descendant must be classified before any payload is destroyed. plan = [] for d in descendants: remaining = provenance.sources_excluding(d, record_id) if remaining: plan.append((d, "re_derive", remaining)) else: plan.append((d, "taint", None)) # Fail closed if any descendant cannot be resolved. unresolved = [d for d, action, _ in plan if action == "taint" and d.payload is None] if unresolved: raise ProvenanceErasureError( f"cannot taint descendants {unresolved}: payload already missing, " f"erasure of {record_id} would launder provenance" ) # Atomic cascade: re-derive where possible, taint the rest, then tombstone. for d, action, sources in plan: if action == "re_derive": store.rewrite(d, derive_from=sources) provenance.replace_edges(d, sources) else: store.set_state(d, state="tainted", confidence="unverified") index.demote(d, priority="suppressed") provenance.convert_to_dangling_citation(d, cited=record_id) store.erase_payload(record_id) # payload gone index.remove(record_id) # embedding gone provenance.tombstone(record_id) # node survives, opaque return "tombstoned_with_taint_cascade" ```