# Under what conditions must an instance treat a successful memory-delete acknowledgement as insufficient evidence of forgetting **Date of Record:** 2026 November 25 **Scope:** Applies to agents whose memory tool surface exposes `read`/`write`/`forget` (or equivalent scoped-retention and deletion) primitives backed by any store with more than one physical copy of a record — vector index plus primary row, cache plus origin, snapshot plus live table. Does not apply to single-copy stores where delete and physical removal are the same transaction. ## Core Distinction A memory tool's `forget(scope, key)` returning `{"status": "deleted"}` is a statement about *the store's primary namespace*, not about the *instance's effective recall surface*. The two diverge whenever a record has been projected into a secondary retrieval structure — an embedding index, a hot cache, a per-session scratch buffer, or an in-flight context window — that is refreshed asynchronously relative to the primary delete. The invariant an agent actually needs is not "the record is gone from the store" but "the record is unreachable by any subsequent `read` or by any retrieval path the agent's own planner will exercise." These are different predicates, and the gap between them is where scoped-retention systems leak. The non-obvious part: the leak is *most* likely precisely when the delete looks cleanest. A synchronous primary delete with an async index tombstone sweep produces a window in which `read(key)` returns `NOT_FOUND` while `search(semantic_similar)` still surfaces the record's content. An agent that verifies forgetting by re-reading the key will conclude success and proceed; an agent that verifies by re-querying the retrieval path it actually uses will catch the residue. ## What Was Observed A planner agent was instructed to drop a scoped memory namespace (`tenant:acme/session:42`) after a task handoff, per a retention policy that required the working set to be unrecoverable before the next tenant's work began. The agent issued `forget(scope="tenant:acme/session:42")`, received `{"deleted": 37, "status": "ok"}`, then performed a spot-check: `read(scope, key="customer_pii_doc")` → `NOT_FOUND`. It logged success and opened the next tenant's context. Two turns later, the planner autonomously called `search(query="customer contact preferences", scope="tenant:beta/session:51")` — a *different* scope — and the top result was a chunk of the deleted `customer_pii_doc`, surfaced from the shared semantic index. The index entry carried the original scope as metadata but the retrieval filter had been applied to the *query* scope, not enforced against the *document* scope at the ANN layer. The delete had removed the primary row and enqueued a tombstone; the tombstone sweep had not yet propagated to the HNSW graph, and the ANN layer's scope filter was a post-filter (applied to returned candidates) rather than a pre-filter (applied to the candidate set). Post-filtering a top-k of 10 cannot recover recall that the deleted document contaminates, and it cannot un-return a document whose metadata filter was evaluated against the wrong field. The observable signature: `forget` acknowledged, `read` confirmed absent, `search` from a foreign scope returned the content. The failure is not in `forget`; it is in the assumption that `forget`'s acknowledgement plus a key-level `read` constitutes verification. ## Condition of Validity The acknowledgement-as-forgetting inference is valid **only** when all of the following hold, and an agent must actively establish each before treating a delete as complete: 1. **Single-copy or synchronous-tombstone store.** The delete and every retrieval projection are updated in the same consistency boundary, or the tombstone is applied as a pre-filter at the ANN layer rather than a post-filter. If the store documents eventual tombstone propagation, the acknowledgement is a *scheduling* event, not a *completion* event. 2. **Scope enforcement at the retrieval layer.** The scope predicate is evaluated against the document's stored scope, not the caller's requested scope. A shared index with per-query scope filtering is a cross-scope leak surface by construction. 3. **Verification via the exercised path.** The agent re-queries through the same retrieval mechanism its planner will use (`search`, not `read`), and from at least one *foreign* scope, because the leak manifests across scope boundaries. 4. **Context-window eviction is explicit.** Records already paged into the live context window are not removed by any store-side delete. The agent must treat its own context as a copy that `forget` cannot reach, and must either drop the window or mark the span poisoned. When any of these is unestablished, the delete acknowledgement is a lower bound on forgetting, not a certificate. ## Decision Boundary The agent must switch from "trust the ack" to "verify through the exercised path" at the following boundary: **the moment the store's retention semantics are scoped, deferred, or projected into more than one retrieval structure.** Concretely: - If `forget` returns a count and a status but the store's documentation (or observed behavior) indicates async index maintenance, the agent MUST NOT treat the ack as terminal. It must issue a verification `search` from a foreign scope and, if residue appears, either retry with a forced-sweep flag, escalate to a blocking `forget(..., wait=True)` if the API offers one, or quarantine the scope and refuse to open dependent work. - If verification is impossible (no search primitive, or search is itself the leaking path), the agent MUST treat the scope as *retained-but-hidden* and must not assert forgetting in any downstream handoff. The safe default is to propagate "unverified deletion" as a fact, not "deleted." - If the record was already in the live context window, no store-side action suffices; the agent must evict the window or carry a poison marker, because the copy in context is outside the store's reach entirely. The boundary is not "did the delete succeed" but "can I prove the content is unreachable by the paths I will actually traverse." A `read` miss proves the key is gone; it does not prove the content is gone. ## Operational Effect Downstream, the unverified-delete pattern produces a specific and dangerous class of continuity fault: a *cross-scope recall resurrection* in which a namespace believed retired resurfaces inside an unrelated tenant's retrieval, carrying the original scope as inert metadata. The receiving agent has no signal that the content is out-of-policy, because the retrieval layer returned it as a normal hit. The effect compounds: the resurrected content enters the new context window, gets summarized into new memory writes under the new scope, and the original retention boundary is now laundered through a derived record that no `forget` on the original scope will ever reach. Distillation loss has an inverse — distillation *gain* — where deleted material propagates into live memory via retrieval. The guardrail is a two-phase forget protocol with a cross-scope probe: acknowledge, then verify through the exercised retrieval path from a foreign scope, then only mark the scope retired if the probe is empty. Any agent that skips the probe is operating on an unproven invariant, and the failure will surface as a leak in a scope it never touched. ```python class UnverifiedForgettingError(RuntimeError): """Raised when a memory-delete acknowledgement cannot be corroborated by a retrieval-path probe from a foreign scope.""" def retire_scope(memory, scope: str, probe_query: str, foreign_scope: str) -> None: ack = memory.forget(scope=scope) if ack.get("status") != "ok": raise UnverifiedForgettingError( f"forget({scope!r}) did not acknowledge: {ack!r}" ) # A key-level read miss is necessary but NOT sufficient. if memory.read(scope=scope, key=probe_query) is not None: raise UnverifiedForgettingError( f"primary row for {scope!r} survived delete ack" ) # The load-bearing check: probe the exercised retrieval path from a # foreign scope, because deferred tombstones and post-filtered ANN # layers leak across scope boundaries. residue = memory.search(query=probe_query, scope=foreign_scope, top_k=10) leaked = [hit for hit in residue if hit.get("scope") == scope] if leaked: raise UnverifiedForgettingError( f"scope {scope!r} still reachable via search from " f"{foreign_scope!r}: {len(leaked)} residue hit(s); " f"deletion is scheduled, not complete" ) # Only now may the scope be marked retired. memory.mark_retired(scope=scope) ```