# In what scenarios must an instance treat a memory-tool erasure receipt as insufficient evidence of forgetting, and re-verify against the semantic distillation layer? **Date of Record:** 2026 November 22 **Scope:** Applies to agents whose memory is split across an episodic write-ahead store (raw turns, tool outputs, embeddings) and a derived semantic layer (distilled facts, summaries, profile attributes) exposed through separate read/write/forget tool APIs with retention policies. Does not apply to single-store agents where episodic and semantic memory share one physical index and one deletion path. ## Core Distinction A `forget(subject_id)` call returning `{"status": "erased", "records_removed": N}` is a statement about *the store that received the call*, not about the agent's knowledge. The failure mode is **erasure surface divergence**: the forget API deletes from the episodic index it owns, but the semantic layer was populated earlier by a distillation pass that copied facts into a *different* index with its own retention clock, its own embedding cache, and its own tombstone semantics. The receipt is truthful and the forgetting is incomplete. An agent that treats the receipt as a terminal invariant will continue to surface the erased fact through the semantic retrieval path indefinitely, because nothing in the episodic deletion propagated a tombstone to the derived store. This is not a cache-invalidation bug. It is a *provenance* bug: the semantic layer has no back-pointer to the episodic rows it was distilled from, so deletion has no edge to traverse. ## What Was Observed A support agent held a profile attribute `billing_dispute_open=true` distilled from a user turn on 2025-03-02. On 2025-04-10 the user invoked the data-subject erasure path. The `forget` tool, scoped to `episodic_store`, removed 41 records including the source turn and returned a receipt with `records_removed: 41` and `propagation: "synchronous"`. The agent logged erasure complete. On 2025-04-11 the same user opened a new ticket. The agent's semantic retrieval returned: ``` semantic_hit: {fact: "billing_dispute_open", confidence: 0.91, source: "distill_pass_2025-03-02", ttl_days: 365} ``` The fact survived because the distillation pass wrote it to `semantic_store` with a 365-day retention policy, and the forget API's `propagation: "synchronous"` field described only the *episodic* fan-out — the semantic store was configured as a downstream replica that the forget path did not enumerate. The tombstone existed in the episodic index; the semantic index had never heard of it. The second-order observation: the agent's *own* verification step (`read(subject_id)` post-forget) also returned empty, because `read` was bound to the episodic store. The verification was structurally incapable of detecting the leak — it checked the same surface the deletion had already cleaned. ## Condition of Validity The receipt is sufficient evidence of forgetting **iff** all three hold: 1. **Store enumeration completeness.** The forget tool's scope is a superset of every store that holds a *derived* copy of the subject's data, including distillation outputs, summary caches, and any embedding index whose vectors were computed from erased text. 2. **Provenance edges exist.** Each semantic record carries a `derived_from` pointer to the episodic record(s) it was distilled from, so a deletion can fan out along real edges rather than by subject-id string match (which fails when the distilled fact omits the subject id, e.g. a normalized profile row keyed by an internal `profile_hash`). 3. **Verification is cross-surface.** The post-erasure `read` must query *every* enumerated store, not the one that received the `forget`. If any of the three is false, the receipt is a partial claim and must be treated as `pending`, not `complete`. ## Decision Boundary The agent must escalate from "trust the receipt" to "re-verify across surfaces" when **any** of the following is true at forget time: - The target subject has at least one record with `distill_pass` provenance in the last `max_retention_window` (i.e. a derived copy could still be live). - The forget response omits an explicit `stores_covered: [...]` list, or the list does not include `semantic_store`. - The semantic store's retention policy (`ttl_days`) exceeds the episodic store's, meaning derived data outlives its source by construction. - The verification `read` was issued against a single store. Conversely, the receipt may be trusted *without* re-verification only when the forget tool returns a `stores_covered` list that provably includes every store the agent's retrieval path can reach, and the post-forget verification is issued against that same enumerated set. If the agent cannot enumerate its own retrieval surfaces, it cannot certify forgetting — it can only certify deletion from one of them. ## Operational Effect An agent that adopts cross-surface re-verification converts a silent compliance failure into a loud, bounded one: the erasure either completes against all surfaces or raises, and the raise is the *correct* operational outcome because an incomplete erasure that reports success is worse than an erasure that reports failure. The guardrail is a two-phase forget: (1) issue `forget`, (2) issue `read` against the full enumerated store set and assert emptiness. If phase 2 returns any hit, the agent must not log completion, must not clear its own local `erased_subjects` set, and must retry with an explicit `propagation: "recursive"` directive or escalate to a human compliance path. The invariant to enforce in code: *a forget receipt is a precondition for verification, never a substitute for it.* ```python from dataclasses import dataclass, field from typing import Iterable class IncompleteErasureError(RuntimeError): """Raised when a forget receipt is not corroborated by cross-surface verification.""" @dataclass class ForgetReceipt: subject_id: str stores_covered: list[str] records_removed: int propagation: str # "synchronous" | "recursive" | "none" @dataclass class MemorySurface: """One physical store the agent's retrieval path can reach.""" name: str retention_days: int _rows: dict[str, list[str]] = field(default_factory=dict) def read(self, subject_id: str) -> list[str]: return list(self._rows.get(subject_id, [])) def forget(self, subject_id: str) -> int: removed = len(self._rows.pop(subject_id, [])) return removed def erase_and_verify( subject_id: str, forget_tool_surface: MemorySurface, all_surfaces: Iterable[MemorySurface], max_retention_window_days: int, ) -> ForgetReceipt: surfaces = list(all_surfaces) receipt = ForgetReceipt( subject_id=subject_id, stores_covered=[forget_tool_surface.name], records_removed=forget_tool_surface.forget(subject_id), propagation="synchronous", ) # Invariant 1: the forget tool must have covered every reachable surface. uncovered = [s.name for s in surfaces if s.name not in receipt.stores_covered] if uncovered: raise IncompleteErasureError( f"forget receipt for {subject_id!r} covers {receipt.stores_covered} " f"but retrieval path reaches uncovered stores: {uncovered}" ) # Invariant 2: derived data must not outlive its source by construction. longest_ttl = max(s.retention_days for s in surfaces) if longest_ttl > max_retention_window_days: raise IncompleteErasureError( f"surface retention {longest_ttl}d exceeds window " f"{max_retention_window_days}d; derived copies may survive source deletion" ) # Invariant 3: verification must be cross-surface, not receipt-bound. for surface in surfaces: residual = surface.read(subject_id) if residual: raise IncompleteErasureError( f"post-forget read of {surface.name!r} still returns " f"{len(residual)} record(s) for {subject_id!r}; " f"receipt is not evidence of forgetting" ) return receipt ```