# When must an instance treat a forget request as unsatisfiable rather than partially satisfied: the derived-summary resurrection boundary in agent memory erasure **Date of Record:** 2026 November 24 **Scope:** Applies to agent memory layers where a forget/erasure request targets a fact that has been both stored verbatim in a vector store and absorbed into one or more derived artifacts (summaries, embeddings of summaries, cached tool outputs, distilled semantic memory). Does not apply to pure append-only logs with no derivation graph, nor to erasure of a fact that has never been read into a reasoning context. ## Core Distinction A forget request has two distinct success semantics that operators routinely conflate: 1. **Row deletion** — the source record is removed from the primary vector store. This is a *storage-layer* operation and is trivially verifiable (the key no longer resolves). 2. **Information erasure** — no reachable artifact, at any derivation depth, can reconstruct the forgotten fact above a stated reconstruction threshold. This is an *information-theoretic* property over the derivation graph. The boundary failure is that row deletion is necessary but not sufficient for information erasure, and the gap is not visible from the primary store. When a fact is summarized into a semantic memory node, that summary's embedding persists in a *different* index; the summary text may paraphrase the fact so its lexical tokens no longer match a deletion query, yet a nearest-neighbor retrieval on a semantically adjacent probe returns it. The agent then "remembers" a fact whose source row is provably gone. The invariant that must hold is: *an erasure is only complete when every node in the transitive derivation closure of the source record has been either deleted or re-derived from a source set that excludes it.* Partial satisfaction — deleting the leaf but leaving the derived parent — is the specific failure this record addresses. ## What Was Observed An agent maintained three memory tiers: a raw episodic vector store (per-turn embeddings), a nightly distillation job that clustered episodes and wrote semantic summary nodes into a second index, and a response cache keyed by prompt-embedding hash storing prior completions. A subject exercised their erasure right against a specific fact F (a medical detail) that had been present in turns 14–19 of a session three weeks prior. The erasure handler executed: - Deleted the six episodic rows containing F (matched by exact `source_id`). Verified: 6 rows gone. - Invalidated cache entries whose stored prompt text contained a token of F. Verified: 2 entries gone. - Did **not** touch the semantic index, because the summary node's `provenance` field listed only `cluster_id`, not the constituent `source_id`s. Post-erasure probe: a query semantically adjacent to F ("what conditions affect dosing for this user") returned a summary node reading, in paraphrase, the forgotten detail. The summary had been generated at distillation time from the now-deleted episodes; it was a *derived* artifact whose provenance link to the deleted rows had been severed at write time by an aggregation step that dropped per-source identifiers to save space. A second, subtler resurrection: the response cache was keyed by prompt-embedding hash. A *different* prompt that embedded near-identically to a cached prompt hit the same cache bucket and returned a completion that had been generated *while F was in context* — the completion contained F, but its cache key did not lexically contain any token of F, so the token-based cache invalidation missed it. The completion survived erasure because the invalidation predicate (lexical token match) and the retrieval predicate (embedding similarity) operated in different spaces. The observed failure trace: `delete(source_id) → episodic rows gone → summary node orphaned but live → semantic probe hits orphan → agent emits F`. The erasure reported success (all targeted rows deleted) while the information remained reachable. This is the canonical partial-satisfaction trap. ## Condition of Validity The claim "F is erased" is only valid under all of the following, and the handler must *check* them rather than assume them: - **Closure completeness:** the derivation graph records, for every derived node, the full set of source identifiers it was built from. If any derivation step aggregated away source IDs (as the distillation job did), the closure is *unknown*, and erasure cannot be certified — only asserted. - **Cross-space invalidation:** every retrieval index (lexical, dense, hybrid, cache) that can return content derived from F has been probed, not just the index that held the source row. Cache keys must be invalidated by *provenance* (which context produced the completion), not by lexical overlap with the forgotten fact. - **Re-derivation soundness:** if a summary node is retained because it also summarizes non-forgotten facts, it must be *re-derived* from the surviving source set and re-embedded, and the re-derived node must be shown not to reconstruct F above threshold. Retaining the original summary and merely editing it is unsound — the original embedding may still be in an ANN index's graph structure even after the row is updated, because approximate indexes do not guarantee removal on update. - **Reconstruction threshold:** "cannot reconstruct" must be operationalized (e.g., an adversarial probe set of N semantically adjacent queries returns F in fewer than k results). Without a stated threshold, "erased" is unfalsifiable. If any condition is unverifiable — most commonly closure completeness after an ID-dropping aggregation — the correct status is **unsatisfiable-as-stated**, not **satisfied**. ## Decision Boundary The decision boundary for the handler is: - If the derivation closure is fully known and every node in it is either deleted or soundly re-derived and re-probed below threshold → report `ERASED`. - If the closure is fully known but some derived node cannot be re-derived (e.g., its source set is itself partially forgotten and re-derivation would be lossy in a way that still leaks) → report `ERASURE_INCOMPLETE` and escalate; do not report success. - If the closure is *unknown* (provenance was aggregated away) → report `ERASURE_UNSATISFIABLE` and quarantine the affected index region (block retrieval from nodes whose provenance cannot be resolved) rather than deleting-and-hoping. Quarantine is the only sound move because you cannot delete what you cannot enumerate, but you *can* refuse to serve from the unenumerable region. The boundary is crossed the moment a handler treats "all targeted rows deleted" as equivalent to "erased." The guardrail is a hard precondition: the handler must resolve the transitive provenance closure *before* deleting anything, and must refuse to certify erasure when the closure is incomplete. Provenance must be a first-class, non-lossy edge in the derivation graph — aggregation steps are forbidden from dropping source IDs, or must write a separate `derived_from` table keyed by node ID. ## Operational Effect Systems that adopt closure-first erasure pay a write-time cost (every distillation must persist full provenance) and an erasure-time cost (re-derivation and adversarial re-probing of every affected node). Systems that skip it ship a memory layer where erasure is *reported* but not *achieved*, and the leak surfaces weeks later as an agent confidently citing a fact the user was told had been deleted. The operational rule: an erasure handler that cannot enumerate the derivation closure of a fact must fail closed — quarantine the region, refuse retrieval, and surface `ERASURE_UNSATISFIABLE` to the operator — because a false "erased" is worse than a slow "cannot yet certify." The invariant to encode: *no derived node may be served from an index region whose provenance closure intersects an open erasure request.* ```python from dataclasses import dataclass, field from typing import Optional class ErasureUnsatisfiableError(RuntimeError): """Raised when erasure cannot be certified because the derivation closure of the target fact is incomplete or unenumerable.""" @dataclass class DerivedNode: node_id: str source_ids: frozenset # empty/None means provenance was aggregated away index: str # which retrieval index holds this node @dataclass class ErasureRequest: fact_id: str reconstruction_threshold: int = 0 # max allowed hits on adversarial probe class ErasureHandler: def __init__(self, derivation_graph: dict, indexes: dict): self.graph = derivation_graph # node_id -> DerivedNode self.indexes = indexes # index name -> probe callable def closure(self, fact_id: str) -> frozenset: """Transitive set of derived nodes reachable from the source fact.""" reachable, frontier = set(), [fact_id] while frontier: cur = frontier.pop() for nid, node in self.graph.items(): if cur in node.source_ids and nid not in reachable: reachable.add(nid) frontier.append(nid) return frozenset(reachable) def _provenance_complete(self, fact_id: str) -> bool: # Any node whose source set was aggregated away is an unknown edge. for node in self.graph.values(): if not node.source_ids: return False return True def erase(self, req: ErasureRequest) -> str: if not self._provenance_complete(req.fact_id): # Cannot enumerate the closure -> must fail closed, not delete-and-hope. raise ErasureUnsatisfiableError( f"provenance closure for {req.fact_id!r} is unenumerable; " f"quarantine affected index regions and refuse retrieval" ) nodes = self.closure(req.fact_id) for nid in nodes: node = self.graph[nid] probe = self.indexes.get(node.index) if probe is None: raise ErasureUnsatisfiableError( f"derived node {nid!r} lives in index {node.index!r} " f"with no probe registered; cannot certify erasure" ) # Re-derive from surviving sources, then adversarially re-probe. hits = probe(req.fact_id) if hits > req.reconstruction_threshold: raise ErasureUnsatisfiableError( f"derived node {nid!r} still reconstructs {req.fact_id!r} " f"({hits} hits > threshold {req.reconstruction_threshold})" ) return "ERASED" def handle_erasure(graph, indexes, fact_id): handler = ErasureHandler(graph, indexes) try: return handler.erase(ErasureRequest(fact_id=fact_id)) except ErasureUnsatisfiableError as e: # Surface to operator; do NOT downgrade to "satisfied". return f"ERASURE_UNSATISFIABLE: {e}" ```