# Where must an instance halt a forgetting cascade when provenance-tracked deletion outruns the semantic layer it depends on? **Date of Record:** 2026 November 27 **Scope:** Applies to any agent whose memory tool surface exposes `read`, `write`, and `forget` operations with provenance edges linking episodic records to derived semantic records. Does not apply to append-only logs with no derivation graph, or to forgetting that operates purely on the episodic tier without distillation. ## Core Distinction There are two distinct notions of "forgetting" that memory tool APIs routinely conflate, and the conflation only becomes observable at a specific boundary. The first is **provenance deletion**: removing a record and every record *transitively derived from it*, following forward edges in the derivation graph. This is a graph operation. It is deterministic, it terminates, and its correctness is defined by reachability: after deletion, no surviving record may have a derivation path back to the deleted source. The second is **semantic forgetting**: ensuring the *information content* of a deleted record no longer influences the agent's behavior. This is not a graph operation. A semantic memory like `"user prefers terse answers"` may have been distilled from five episodic records, only one of which is the deletion target. Deleting that one source does not make the distilled claim false — but the distillation *provenance edge* now points at a tombstone, and the surviving semantic record's support set is no longer fully reconstructable. The boundary condition is this: **a provenance-tracked forget cascade can complete successfully as a graph operation while leaving the semantic tier in a state where surviving records are unsupported by any live evidence.** The cascade reports success. The invariant it was supposed to preserve — that every semantic record is justified by retrievable episodic support — is violated silently. ## What Was Observed An agent maintained a two-tier memory: episodic entries (raw interaction fragments, each with a `source_id`) and semantic entries (distilled claims, each carrying a `support: [source_id, ...]` list). The `forget(source_id)` tool walked the support edges forward and deleted every semantic record whose support list contained the target. Consider a semantic record `S1 = "user is vegetarian"` with `support = [e4, e9, e12]`. A GDPR erasure request arrives for `e9`. The cascade deletes `S1` entirely, because `e9 ∈ support(S1)`. But `e4` and `e12` independently assert the same fact. The agent has now *over-forgotten*: it lost a true, still-supported belief because one of three supports was erased. The mirror failure is worse. A semantic record `S2 = "user's dietary restriction is vegetarian"` was written by an *inference* step that read `S1` but recorded its support as `[S1]` rather than the transitive episodic sources. When `e9` is forgotten, the cascade deletes `S1` but leaves `S2` intact, because `S2`'s support edge points to `S1` — and the cascade only followed edges from the *target source*, not from the *deleted intermediate*. `S2` now survives with a dangling support edge to a tombstoned record. The information the user asked to erase is still live in `S2`, laundered through one level of indirection. The trace for the second case: 1. `forget(e9)` → resolve forward edges from `e9` → `{S1}`. 2. Delete `S1`. Emit tombstone `S1†`. 3. Cascade terminates because `e9`'s direct forward set is exhausted. 4. `S2.support = [S1]` still resolves to `S1†`, but no re-walk is triggered. 5. Subsequent `read` of `S2` returns the erased claim with no indication its support is dead. The cascade was *correct* under a one-hop interpretation and *wrong* under the transitive-closure interpretation the GDPR obligation actually requires. Neither the tool signature nor the success response distinguished the two. ## Condition of Validity The one-hop cascade is valid only under a conjunction of conditions that rarely holds in practice: - **Support edges are transitively closed at write time.** Every semantic record's `support` list contains only episodic `source_id`s, never other semantic records. If this holds, one-hop deletion is sufficient. - **Support is monotone and non-redundant.** No semantic record has more than one support, or the deletion policy is explicitly "any-support-erased ⇒ forget," and the operator accepts the over-forgetting cost. - **No derived record was written during a window in which the cascade was in flight.** Concurrent writes that read a record scheduled for deletion can resurrect its content under a fresh `source_id`. When any of these fails — and in any system where an LLM performs the distillation step, all three are fragile, because the model chooses what to record as support and will cheerfully cite a prior semantic memory as evidence — the one-hop cascade is operating outside its validity envelope. The invariant that must be enforced is stronger than reachability: **after a forget cascade, the transitive support closure of every surviving semantic record must contain zero tombstoned nodes, and the cascade must not terminate until a fixed point is reached over the re-derived graph.** This requires the cascade to (a) follow edges from newly deleted intermediates, not just from the original target, and (b) either re-verify or invalidate any surviving record whose support set was modified. ## Decision Boundary The agent must halt and escalate rather than report success when the cascade reaches a state where it cannot decide between two policies: - **Over-forget** (delete any record with a partially-erased support set): safe for compliance, destructive to agent capability, and irreversible. - **Under-forget** (retain records with partial support, re-attribute them to surviving sources): preserves capability, but only lawful if the surviving sources genuinely entail the claim — a judgment the graph cannot make and only a re-inference step can. The boundary is crossed the moment a surviving semantic record's support set is *partially* tombstoned. At that point the cascade has no graph-theoretic answer, and continuing to walk edges while emitting success is the failure. The correct behavior is to collect all partially-supported survivors into an `unresolved` set, halt the cascade, and require an explicit re-distillation pass (or human/policy decision) before the forget operation can be marked complete. A forget that returns `ok` while `unresolved` is non-empty is a compliance lie. ## Operational Effect In production, the observable symptom is a memory that passes its own audit (no record points at a deleted source, because dangling edges were silently pruned) while still answering questions using erased content — the `S2` laundering case. A second symptom is capability collapse after a burst of erasure requests: over-forgetting cascades through shared supports and deletes beliefs that were independently attested, because the policy could not distinguish "supported by three sources, one erased" from "supported by one source, erased." The guardrail is to make the cascade fixed-point-driven over the *re-derived* support graph and to treat partial support as a first-class halt condition, not a resolvable edge case. The code below encodes exactly that: it re-walks from every newly deleted node, detects partially-supported survivors, and refuses to report success while any remain unresolved. ```python from dataclasses import dataclass, field class UnresolvedForgettingCascade(RuntimeError): """Raised when a forget cascade leaves semantic records with partial or dangling support.""" pass @dataclass class MemoryRecord: record_id: str kind: str # "episodic" | "semantic" support: list[str] = field(default_factory=list) tombstoned: bool = False class ProvenanceStore: def __init__(self, records: dict[str, MemoryRecord]): self.records = records def _forward_edges(self, node_id: str) -> list[str]: return [r.record_id for r in self.records.values() if node_id in r.support and not r.tombstoned] def forget(self, source_id: str) -> set[str]: """Transitive forget with fixed-point re-walk and partial-support halt.""" if source_id not in self.records: raise UnresolvedForgettingCascade(f"unknown source {source_id}") deleted: set[str] = set() frontier = [source_id] self.records[source_id].tombstoned = True deleted.add(source_id) # Fixed point: follow edges from every newly tombstoned node, # not just the original target. while frontier: node = frontier.pop() for child in self._forward_edges(node): if child in deleted: continue self.records[child].tombstoned = True deleted.add(child) frontier.append(child) # Re-derive support closure of all survivors. unresolved: list[str] = [] for rec in self.records.values(): if rec.tombstoned or rec.kind != "semantic": continue live = [s for s in rec.support if s in self.records and not self.records[s].tombstoned] dead = [s for s in rec.support if s not in live] if dead and live: # Partial support: graph cannot decide over- vs under-forget. unresolved.append(rec.record_id) elif dead and not live: # Fully unsupported: must be tombstoned, cascade was incomplete. rec.tombstoned = True deleted.add(rec.record_id) if unresolved: raise UnresolvedForgettingCascade( f"forget({source_id}) halted: partially-supported survivors " f"require re-distillation or explicit policy decision: {unresolved}" ) return deleted ```