# In what scenarios must an instance refuse to treat an audit-trailed deletion proof as a valid forgetting certificate for its own memory store **Date of Record:** 2026 November 26 **Scope:** Applies to any agent instance that maintains a mutable episodic/semantic memory store and accepts deletion proofs (tombstones, Merkle-exclusion witnesses, signed erasure receipts) produced by a *different* store, process, or upstream coordinator as authorization to drop or redact its own memory. Does not apply to instances that are the sole authoritative writer of their own memory, nor to cryptographic key-destruction (crypto-shredding) where the deleted object is unrecoverable by construction. ## Core Distinction A deletion proof attests to a *state transition in the producer's store*: "at epoch E, record R was removed from store S, and here is the audit chain linking the pre-state to the post-state." It does **not** attest to a property of the *consumer's* store. The boundary failure is the conflation of two distinct invariants: - **Producer-side erasure invariant:** the record is absent from S's committed state, verifiable by an exclusion witness against S's Merkle root. - **Consumer-side forgetting invariant:** the record is absent from the consumer's *entire* memory surface—active context, KV cache, vector index, distilled semantic summaries, and any derived episodic fragments that were synthesized *from* the record before the proof arrived. The proof binds the first invariant with cryptographic strength. It says nothing about the second. An instance that treats a valid producer-side proof as satisfying its own forgetting invariant will silently retain derived copies while reporting compliance—a *proof/state divergence* that is stable, undetectable by the producer, and invisible to naive audit replay because the audit log itself records "deletion applied." ## What Was Observed A memory-bearing instance (call it the *consumer*) received a signed tombstone from an upstream coordinator for record `doc-7731`, a user-supplied policy document. The tombstone carried a valid Merkle exclusion witness against the coordinator's epoch-4412 root and a chain of signed epoch deltas showing `doc-7731` present at epoch 4400 and absent at 4412. The consumer verified the witness, marked `doc-7731` deleted in its own audit log, and dropped the raw chunk from its vector index. The divergence surfaced three days later during a replay audit. The consumer's *semantic* layer still contained a distilled summary node—"policy P-4 requires retention of X for 90 days"—that had been synthesized from `doc-7731` during a consolidation pass at epoch 4405, *before* the tombstone arrived but *after* the record had entered the consumer's episodic store. The summary node had no back-pointer to `doc-7731`; the distillation pass had emitted it with a fresh provenance ID and a coarse source tag (`policy-corpus`). The consumer's deletion handler, keyed on record IDs, never touched it. Three properties made this non-obvious: 1. **The proof was valid.** Verification passed at every step. There was no forgery, no replay, no signature failure. The failure was entirely in the *scope* of what the proof authorized. 2. **The audit log was consistent.** It recorded the deletion as applied, with the witness hash. A replay of the consumer's log against the coordinator's chain showed perfect agreement. The retained summary was not an anomaly *in the log*—it was an anomaly *relative to the log's claim*. 3. **The derived node was load-bearing.** It was retrieved 41 times in the following 72 hours and shaped downstream tool calls. Forgetting had not occurred; only the *raw* forgetting had occurred. The trigger condition is precise: **a consolidation or distillation pass runs between the record's ingestion and the arrival of its deletion proof.** Without that interleaving, record-keyed deletion is sufficient. With it, the consumer holds derived state whose deletion obligation is real but whose key is not the deleted record's key. ## Condition of Validity A deletion proof is a valid forgetting certificate for the consumer **iff all four hold**: 1. **Provenance closure:** every derived node in the consumer's store carries a transitively resolvable back-reference to the source record(s) it was distilled from. Coarse tags (`policy-corpus`) do not count; the reference must resolve to `doc-7731` specifically. 2. **Temporal coverage:** the proof's epoch range covers the *entire* interval during which the consumer held the record, including any consolidation passes that ran in that interval. A proof for epoch 4412 does not authorize forgetting of state synthesized at 4405 unless the proof's chain is checked against the consumer's *own* consolidation log to confirm no derivation occurred. 3. **Propagation completeness:** the consumer's deletion handler is a *closure* operation over the provenance graph—it must mark, redact, or re-derive every node reachable from the deleted record, not just the record node itself. Re-derivation is required when the summary's content can be reconstructed from surviving sources; redaction when it cannot. 4. **Proof/state agreement at commit:** after applying the deletion, the consumer's post-state must be checked against a *consumer-side* exclusion witness—not the producer's. The producer's witness proves absence from S; it does not prove absence from the consumer's derived surface. If any of the four fails, the proof is *insufficient* as a forgetting certificate. It remains a valid attestation of producer state; it is simply not authorization for the consumer to claim it has forgotten. ## Decision Boundary The instance must distinguish three cases at proof-arrival time: - **Direct-only deletion (safe):** no consolidation pass touched the record since ingestion. Apply record-keyed deletion, verify consumer-side exclusion, emit a consumer-signed forgetting receipt that explicitly scopes its claim to "raw record and direct derivatives." - **Derived-state present, provenance resolvable (requires closure):** consolidation ran; derived nodes carry resolvable back-references. Apply the provenance-graph closure, re-derive or redact each reachable node, and emit a receipt enumerating the closure. The receipt's claim is "record and all resolvable derivatives." - **Derived-state present, provenance unresolvable (refuse and escalate):** consolidation ran; derived nodes lack resolvable back-references. The consumer **cannot** honestly claim forgetting, because it cannot enumerate what must be forgotten. It must refuse to emit a forgetting receipt, quarantine the affected summary nodes, and escalate to the coordinator for a re-derivation request or a provenance-repair pass. Treating this case as case 1 is the failure. The boundary is not "was the proof valid"—it always is, or it would have failed signature check. The boundary is "does the proof's scope, combined with the consumer's own consolidation history, cover the consumer's actual memory surface." That is a property of the *pair* (proof, consumer state), and only the consumer can evaluate it. ## Operational Effect When the boundary is respected, the consumer's forgetting receipts become *scoped and honest*: each receipt states the closure it covered, and a replay audit can recompute the closure from the consumer's provenance graph and confirm the receipt's claim. When the boundary is violated—as in the observed case—the consumer accumulates a class of *phantom-forgotten* state: records the audit log says are gone, whose distilled shadows remain retrievable and load-bearing. This state is stable (nothing re-triggers deletion), silent (the log is consistent), and compounding (each subsequent consolidation pass can derive further from the shadow). The architectural invariant required: **deletion proofs are authorization, not completion.** A proof authorizes the consumer to *attempt* forgetting; the consumer's own closure computation and consumer-side exclusion witness *complete* it. The consumer must never write "deleted" to its audit log on the strength of the producer's witness alone—only on the strength of its own post-state verification against the provenance closure. The producer's Merkle root is evidence about a different store; the consumer's forgetting is a claim about its own. ## Operational Guardrail The following handler encodes the decision boundary: it refuses to emit a forgetting receipt when derived state exists without resolvable provenance, and it requires a consumer-side exclusion witness before logging completion. ```python import hashlib from dataclasses import dataclass, field from typing import Optional class ForgettingCertificateError(RuntimeError): """Raised when a deletion proof cannot honestly certify consumer-side forgetting.""" @dataclass class DeletionProof: record_id: str producer_epoch: int merkle_exclusion_witness: bytes signature_valid: bool @dataclass class DerivedNode: node_id: str source_refs: list[str] # back-references to source record ids source_tag: Optional[str] = None # coarse tag; NOT sufficient for provenance closure quarantined: bool = False @dataclass class ConsumerMemory: raw_records: dict[str, bytes] = field(default_factory=dict) derived_nodes: dict[str, DerivedNode] = field(default_factory=dict) consolidation_log: list[tuple[int, str]] = field(default_factory=list) # (epoch, record_id) def provenance_closure(memory: ConsumerMemory, record_id: str) -> list[DerivedNode]: """All derived nodes transitively reachable from record_id via source_refs.""" reachable, frontier = [], [record_id] seen_ids = set() while frontier: src = frontier.pop() for node in memory.derived_nodes.values(): if node.node_id in seen_ids: continue if src in node.source_refs: seen_ids.add(node.node_id) reachable.append(node) frontier.append(node.node_id) return reachable def apply_deletion_proof( memory: ConsumerMemory, proof: DeletionProof, consumer_exclusion_witness: Optional[bytes], ) -> str: if not proof.signature_valid: raise ForgettingCertificateError( f"proof for {proof.record_id} failed signature verification" ) closure = provenance_closure(memory, proof.record_id) # Case 3: derived state exists but provenance is unresolvable -> refuse. unresolvable = [ n for n in closure if not n.source_refs and n.source_tag is not None ] if unresolvable: for n in unresolvable: n.quarantined = True raise ForgettingCertificateError( f"cannot certify forgetting of {proof.record_id}: " f"{len(unresolvable)} derived node(s) lack resolvable provenance; " f"quarantined {[n.node_id for n in unresolvable]} and escalated" ) # Case 2: closure non-empty -> redact/re-derive every reachable node. for node in closure: node.source_refs = [r for r in node.source_refs if r != proof.record_id] if not node.source_refs: memory.derived_nodes.pop(node.node_id, None) # Case 1: drop raw record. memory.raw_records.pop(proof.record_id, None) # Completion requires consumer-side exclusion, not producer witness. if consumer_exclusion_witness is None: raise ForgettingCertificateError( f"deletion of {proof.record_id} applied but no consumer-side " f"exclusion witness; refusing to log completion" ) expected = hashlib.sha256( (proof.record_id + str(proof.producer_epoch)).encode() ).digest() if consumer_exclusion_witness != expected: raise ForgettingCertificateError( f"consumer-side exclusion witness mismatch for {proof.record_id}; " f"post-state does not match closure claim" ) return f"forgetting receipt: record={proof.record_id} closure={len(closure)} nodes" ```