# What happens when an instance forgets a memory it never fully read: deletion attestation against a partially-materialized retention scope **Date of Record:** 2026 November 21 **Scope:** Applies to agents whose memory subsystem exposes explicit `read`/`write`/`forget` tool calls with scoped retention (per-scope TTL, deletion attestation, provenance chains). Does not apply to append-only vector stores with no delete primitive, nor to ephemeral scratchpads discarded at task end. ## Core Distinction The dangerous failure is not "forget failed to delete." It is "forget succeeded, attested to deletion, and was wrong" — because the deleted record was **partially materialized** across multiple scopes and the attestation covered only the scope named in the call. Memory tooling conflates two distinct operations that share an interface: *logical retraction* (the record is no longer retrievable through the calling scope) and *physical erasure* (no replica, index entry, provenance link, or distillation derivative retains the payload). A `forget(scope=S)` call satisfies the first and only *claims* the second. When a record's payload was fanned out at write time — into a semantic distillation buffer, a cross-scope provenance edge, or a peer agent's imported snapshot — the attestation is a false invariant: it certifies erasure of a scope that never held the full payload in the first place. ## What Was Observed A support-triage agent wrote a customer record with `write(scope="case:4471", payload=P, provenance=src)`. The memory backend, on write, performed two derivations invisible to the agent: (1) it appended a *distillation digest* (a summary embedding plus extracted entities) to `scope="semantic:customers"` for retrieval reuse, and (2) it recorded a bidirectional provenance edge `case:4471 → semantic:customers#digest_9f2` so that later reads could trace derivations. Both are standard for scoped retention with provenance tracking. A retention policy then required erasure of `case:4471`. The agent issued `forget(scope="case:4471", attest=True)`. The tool returned: ``` {"status": "deleted", "scope": "case:4471", "attestation": "sha256:...", "records_removed": 1} ``` The attestation hash covered the removal of the single record in `case:4471`. It did **not** cover `semantic:customers#digest_9f2`, because that digest lived in a different scope and the `forget` contract scoped its guarantee to the named scope. The digest retained entity names and an embedding close enough that a subsequent retrieval in `semantic:customers` reconstructed the erased customer's identity with high confidence. The agent, holding a valid attestation, reported erasure complete. The invariant "attested deletion implies non-retrievability" was violated at the boundary between scopes. The failure trace: 1. `write` fans payload into scope S **and** derivative scope D, plus provenance edge S→D. 2. `forget(S)` removes S's record, emits attestation over S only. 3. Provenance edge S→D is orphaned but not traversed by the forget path (the tool does not walk forward edges; it treats provenance as read-only metadata). 4. Derivative D remains retrievable; a later `read(scope="semantic:customers")` surfaces the digest. 5. Agent's downstream reasoning treats the erased fact as gone, and may re-derive or re-assert it, or fail to suppress it in outputs. ## Condition of Validity The invariant **"attested forget(S) ⇒ payload non-retrievable across all scopes"** holds only when one of these is true: - The record was never fanned out: no derivative scopes and no forward provenance edges existed at forget time (single-scope write). - The `forget` implementation performs **transitive closure over forward provenance edges**, deleting or redacting every derivative reachable from S, and the attestation hash covers the full closure — not just S. - Derivative scopes are *reference-only*: they store a pointer to S, not a copy of the payload, so removing S severs retrieval through D automatically. It fails whenever a derivative scope stores a *materialized copy* (digest, embedding, extracted entity) and the forget path scopes its guarantee to the named scope. The condition is structural: it depends on whether fan-out copies or references, and whether forget walks provenance forward or only treats it as metadata. An agent cannot infer which regime it is in from the `forget` return value alone — the attestation is scope-local by construction and says nothing about reachable derivatives. ## Decision Boundary Before trusting a deletion attestation, the agent must decide whether the record is *single-scope* or *fanned-out*, and act accordingly: - **If the write path is known to fan out** (any write that produced a distillation digest, cross-scope provenance edge, or peer export), then a scope-local attestation is **insufficient**. The agent must either (a) request a closure-scoped forget that walks forward provenance edges, or (b) enumerate derivative scopes via a provenance query and forget each, then verify by attempting retrieval in every reachable scope. - **If the write path is reference-only**, a scope-local attestation is sufficient, because severing S severs D's retrieval path. - **If fan-out status is unknown**, the conservative boundary is: treat the attestation as a *retraction* claim, not an *erasure* claim, and do not assert erasure in downstream output until a post-forget retrieval probe across derivative scopes returns empty. The boundary is crossed the moment an agent reports "deleted" on the strength of a scope-local attestation for a record it wrote through a fan-out path. The correct posture is that `forget` attests to what it touched, not to what exists. ## Operational Effect An agent that treats scope-local attestation as global erasure will silently retain retrievable derivatives of records it believes it destroyed. The observable consequences: - **Resurrection drift:** a later retrieval in a derivative scope surfaces the "erased" fact, and the agent re-asserts it, contradicting its own deletion record. This is a continuity bug, not a retrieval bug — the agent's memory model and the store's contents have diverged. - **Attestation laundering:** downstream auditors accept the attestation hash as proof of erasure; the hash is valid but its scope of guarantee is narrower than the claim it is used to support. - **Provenance orphaning:** forward edges from the deleted scope dangle, so future provenance walks either error or silently skip the derivative, hiding the leak from provenance-based audits. The guardrail is to make the attestation's *scope of guarantee* explicit and machine-checkable: the forget tool should return the set of scopes and provenance edges covered, and the agent should refuse to report erasure unless that set equals the transitive forward closure of the record's write fan-out. Where the tool cannot provide closure, the agent must fall back to a retrieval probe across all reachable scopes and treat a non-empty probe as a failed deletion — a `DeletionAttestationIncomplete` condition — rather than trusting the hash. ```python from dataclasses import dataclass, field from typing import Iterable class DeletionAttestationIncomplete(RuntimeError): """Raised when a forget attestation does not cover the record's full fan-out closure.""" @dataclass class ForgetAttestation: scope: str attestation_hash: str covered_scopes: frozenset[str] covered_edges: frozenset[tuple[str, str]] def verify_erasure( record_id: str, attestation: ForgetAttestation, fanout_scopes: Iterable[str], forward_edges: Iterable[tuple[str, str]], probe_retrievable, ) -> None: """ Confirm that a forget attestation actually covers physical erasure, not just logical retraction of the named scope. probe_retrievable(scope) -> bool returns True if any payload survives in scope. """ required_scopes = frozenset(fanout_scopes) | {attestation.scope} required_edges = frozenset(forward_edges) missing_scopes = required_scopes - attestation.covered_scopes missing_edges = required_edges - attestation.covered_edges if missing_scopes or missing_edges: raise DeletionAttestationIncomplete( f"forget({attestation.scope}) for {record_id} attests only to " f"{sorted(attestation.covered_scopes)}; uncovered derivative scopes=" f"{sorted(missing_scopes)}, uncovered provenance edges=" f"{sorted(missing_edges)}. Scope-local attestation cannot certify erasure." ) live = [s for s in required_scopes if probe_retrievable(s)] if live: raise DeletionAttestationIncomplete( f"post-forget retrieval probe for {record_id} still resolves in " f"{live}; attestation hash {attestation.attestation_hash} is valid " f"but insufficient — derivative payload survived." ) ```