# In what scenarios must an instance treat a memory-tool "forget" acknowledgement as insufficient evidence of deletion **Date of Record:** 2026 November 24 **Scope:** Applies to LLM agents that persist state through a read/write/forget memory tool API with scoped retention (per-scope TTLs, tombstone-based deletion, or soft-delete + compaction). Does not apply to stateless single-shot inference or to memory stores with synchronous hard-delete semantics and no derived indexes. ## Core Distinction A `forget(scope, key)` call returns an *acknowledgement of intent*, not a *proof of erasure*. The distinction matters because most memory APIs implement deletion in two phases: (1) the record is marked tombstoned or removed from the primary lookup table, and (2) derived artifacts—vector embeddings, inverted-index postings, episodic-to-semantic summaries, and cached retrieval results held in the agent's own context window—are reconciled asynchronously. Between phase 1 and phase 2 there is a **resurrection window** during which a `read` or `search` against the same scope can return content the agent believes it has forgotten. The invariant an agent must hold is narrower than "forget means gone": *forget means the primary key is no longer authoritative, and any retrieval path that does not consult the tombstone ledger is stale by construction.* This is not a generic eventual-consistency complaint. The failure is specific to agents because the agent is itself a retrieval path: a summary the agent wrote into its own context window during a prior turn is a derived artifact that no `forget` call can reach, and the agent will happily re-emit it as "remembered" fact after the backing store has been cleared. ## What Was Observed A support-triage agent was configured with a scoped memory tool: `remember(scope="user:8841", key, value, ttl=30d)`, `recall(scope, query)`, `forget(scope, key)`. A user exercised a right-to-erasure request. The orchestrator issued `forget("user:8841", "*")`, received `{"ok": true, "deleted": 14}`, and marked the erasure complete. Three turns later, in the same conversation, the agent answered a question by reciting the user's prior address. Trace: 1. `forget` tombstoned 14 primary records and returned `deleted: 14`. The vector index for scope `user:8841` was queued for reindex with a 90-second compaction lag. 2. The agent's context window still contained a semantic summary it had generated in turn 2: *"user:8841, prefers home delivery, address on file."* This summary was written by the agent, not read from the store, so no tombstone applied to it. 3. Turn 5 issued `recall("user:8841", "delivery preferences")`. The vector index had not yet compacted; the top-k result included a chunk from a tombstoned record whose embedding still lived in the HNSW graph. The store returned it with `score: 0.81` and no `deleted` flag, because the post-filter ran against the primary table *after* ANN candidate generation and the tombstoned row was silently dropped from the *filter* but not from the *candidate list* used to hydrate the response in this implementation. 4. The agent merged the stale chunk with its own in-context summary and re-derived the address, presenting it as current. The `deleted: 14` acknowledgement was accurate for the primary table. It was false as a statement about what the agent could still retrieve, and it was silent about what the agent already held. ## Condition of Validity The acknowledgement from `forget` is a valid basis for treating data as unreachable **only if all four of the following hold**: - The store guarantees read-your-writes on deletion: any `recall` issued after the `forget` return is filtered against the tombstone ledger *before* candidate hydration, not after. - Every derived index (ANN, inverted, summary cache) is either synchronously invalidated or versioned such that a stale posting cannot be returned as live. - The agent's own context window has been purged of any summary, paraphrase, or extracted fact derived from the forgotten scope, or the agent is instructed to treat such in-context material as untrusted. - The scope key is total: `forget("user:8841", "*")` must enumerate every key namespace the agent ever wrote under that scope, including keys the agent synthesized (e.g., `user:8841/derived/preferences`). If any condition fails, the acknowledgement bounds *intent*, not *reachability*. The correct agent-side posture is to treat the erase as `pending_reconciliation` and to refuse to answer from that scope until a subsequent `recall` returns empty across a full enumeration probe. ## Decision Boundary The boundary is whether the agent can *enumerate* what it must forget. If the forgotten scope is small and the agent holds an explicit key list (it wrote each key and logged it), a post-forget enumeration probe—`recall(scope, "*")` plus a scan of its own transcript for the scope token—is a sufficient guard. If the scope is open-ended (the agent distilled facts into summaries whose keys it no longer tracks, or the store auto-generated chunk IDs), enumeration is impossible and the only safe boundary is a **quarantine**: mark the scope `erased_pending` in the agent's working state, forbid retrieval against it, and require a store-side compaction-complete signal (not the `forget` ack) before lifting quarantine. The failure to avoid is treating `{"ok": true}` as the compaction-complete signal. They are different events separated by an unbounded lag, and the agent's context window is a derived index that the store cannot compact for it. ## Operational Effect Agents that conflate acknowledgement with erasure exhibit a characteristic post-deletion leak: they re-emit forgotten facts *from their own summaries* while reporting the scope as clean, and the leak is invisible to store-side audit because the store did return empty on direct key lookup. The remediation is architectural, not prompt-level: (1) route all post-forget reads through a tombstone-aware path that filters before hydration; (2) maintain an agent-side `erased_pending` set that gates retrieval and is cleared only by an explicit compaction signal; (3) invalidate in-context summaries keyed by scope on any forget, even at the cost of losing unrelated context. The guardrail below encodes the gate and refuses to lift quarantine on an ack alone. ```python from dataclasses import dataclass, field from enum import Enum from typing import Optional class ErasureState(Enum): LIVE = "live" ERASED_PENDING = "erased_pending" RECONCILED = "reconciled" class PrematureErasureRelease(RuntimeError): """Raised when a scope is treated as erased before compaction is confirmed.""" @dataclass class ScopeLedger: state: ErasureState = ErasureState.LIVE forget_ack_at: Optional[float] = None compaction_confirmed_at: Optional[float] = None in_context_summaries: set = field(default_factory=set) class ScopedMemoryGate: def __init__(self) -> None: self._ledgers: dict[str, ScopeLedger] = {} def forget(self, scope: str, ack_at: float) -> None: led = self._ledgers.setdefault(scope, ScopeLedger()) led.state = ErasureState.ERASED_PENDING led.forget_ack_at = ack_at # The acknowledgement does not clear derived artifacts. led.in_context_summaries.clear() def confirm_compaction(self, scope: str, at: float) -> None: led = self._ledgers.setdefault(scope, ScopeLedger()) if led.forget_ack_at is None: raise PrematureErasureRelease( f"compaction confirmed for {scope!r} with no prior forget ack" ) led.compaction_confirmed_at = at led.state = ErasureState.RECONCILED def recall(self, scope: str, query: str, hits: list) -> list: led = self._ledgers.get(scope, ScopeLedger()) if led.state is ErasureState.ERASED_PENDING: # Quarantine: ack alone is not proof of reachability. if led.compaction_confirmed_at is None: raise PrematureErasureRelease( f"recall against {scope!r} while erasure is only acknowledged, " f"not compacted; {len(hits)} candidate(s) withheld" ) return [h for h in hits if h.get("scope") != scope or led.state is ErasureState.LIVE] ```