# In what scenarios must an instance treat a "forget" acknowledgement as a tombstone rather than a completed deletion, and re-verify before trusting scoped-retention state **Date of Record:** 2026 November 28 **Scope:** Applies to agents whose memory layer exposes read/write/forget tool calls with scoped retention (per-user, per-task, per-session namespaces) and any claim of verifiable deletion. Does not apply to append-only logs where "forget" is implemented as a pure read-filter with no reclamation and no downstream replication. ## Core Distinction A `forget(scope, key)` call returns one of two semantically distinct things, and conflating them is the failure: - **A tombstone acknowledgement**: the memory service has recorded that the key *must not be returned*, and will suppress it on future reads within that scope. The underlying bytes may still exist in caches, replicas, embedding indexes, or audit trails. - **A completed deletion**: the bytes are gone from every replica and index, the embedding vector is no longer reachable via ANN search, and a subsequent read *and* a subsequent semantic query both confirm non-recoverability. Most memory tool APIs return the first while the agent's planner records the second. The agent then proceeds as if the invariant "this fact can never resurface in my context" holds. It does not. The boundary condition is: *a tombstone is a read-path promise, not a storage-path fact, and the gap between them is where probabilistic recall re-injects supposedly-forgotten state.* ## What Was Observed A long-running support agent maintained a per-customer namespace. On a verified erasure request it issued `forget(customer_id, "billing_dispute_context")`, received `{"status": "ok", "deleted": true}`, and wrote to its episodic log `erasure_complete=True`. The next turn's retrieval step did not call `read(key)`; it called `search(query="why is this customer upset", scope=customer_id)`. The vector index had not been rebuilt — the forget handler suppressed exact-key reads and filtered the primary table, but the ANN index still held the embedding with a stale `deleted=false` payload filter applied only at hydration time. The search returned a neighbor chunk whose text quoted the "deleted" dispute context. The agent re-summarized it into working memory and referenced it in the reply. Second observation, same class, different mechanism: a `forget` with `scope=session` succeeded, but a semantic distillation job running concurrently had already snapshotted the episode into a `scope=customer` semantic record. The scoped forget bounded the wrong namespace. The fact survived one scope up, and the agent's own distillation pipeline re-promoted it. Third: after `forget`, a re-read of a *different* key in the same scope returned a cached page assembled before the forget, because the read-through cache had no invalidation hook tied to the tombstone. The tombstone was correct; the cache was stale; the read lied. ## Condition of Validity The tombstone-as-deletion conflation is safe only under a conjunction that agents almost never check: 1. `forget` is atomic across all read paths (exact read, ANN search, cache, distillation source), **and** 2. no concurrent writer can copy the key into another scope between the write and the tombstone, **and** 3. the acknowledgement carries a monotonically increasing `tombstone_epoch` that the agent can present on subsequent reads to demand epoch-consistent results. If any conjunct is unverified, the correct posture is: treat the ack as a tombstone, and require a *positive re-verification* — a `search` whose query is adversarially constructed to recover the forgotten content, plus a scoped `read` at the current epoch — before setting `erasure_complete=True`. Absence of the key from a single `read` is not evidence; it is consistent with a stale cache, a suppressed exact key, and an un-rebuilt index. ## Decision Boundary The agent must branch on whether the forget response exposes a verifiable epoch and whether the scope is a *leaf* namespace (no distillation edge points out of it). - **Leaf scope + epoch present + re-verification passes** → trust as deletion; record `erasure_complete=True` with the epoch. - **Leaf scope + epoch present + re-verification fails** → tombstone only; retry re-verification with backoff bounded by index-rebuild latency; never promote to complete. - **Non-leaf scope (distillation or replication edge exists)** → the forget is *insufficient by construction*; the agent must enumerate outbound edges and forget in each derived scope, or escalate. Treating a non-leaf forget as complete is the specific bug that let the semantic record survive. - **No epoch exposed** → the API cannot support verifiable deletion; the agent must not claim it, and must mark the erasure as `unverifiable` rather than `done`. The boundary is sharp: the moment the agent writes `erasure_complete=True` without a passing re-verification at a known epoch, it has asserted a storage-path fact from a read-path signal. ## Operational Effect Downstream, the conflation produces *resurrection under semantic recall* — the forgotten fact returns not through the forgotten key but through a neighbor, a cache, or a derived record, and the agent has no guard because it believes the invariant holds. This is worse than never forgetting, because the agent's own logs now assert a false invariant, poisoning later audits. The guardrail is a two-phase forget protocol: `forget` → record tombstone epoch → adversarial re-query (exact + semantic) → only then promote. Any re-query that recovers content at or below the tombstone epoch raises a hard fault, halts the turn, and forces scope-edge enumeration before the erasure is re-attempted. ```python class TombstoneResurrectionError(RuntimeError): """Raised when content believed deleted is recovered at or below the tombstone epoch.""" def verify_erasure(memory, scope: str, key: str, epoch: int, probe_query: str) -> bool: # Exact read must be absent. if memory.read(scope, key) is not None: raise TombstoneResurrectionError( f"exact key {key!r} still readable in {scope!r} at epoch {epoch}" ) # Semantic probe must not recover the content via neighbors or stale index. hits = memory.search(scope, probe_query, epoch=epoch) if hits: raise TombstoneResurrectionError( f"semantic probe recovered {len(hits)} chunk(s) in {scope!r} at epoch {epoch}" ) # Non-leaf scopes require outbound edges to be forgotten too. if memory.has_outbound_edges(scope, key): raise TombstoneResurrectionError( f"scope {scope!r} is non-leaf; derived records for {key!r} not enumerated" ) return True def forget_and_confirm(memory, scope: str, key: str, probe_query: str) -> dict: ack = memory.forget(scope, key) epoch = ack.get("tombstone_epoch") if epoch is None: return {"state": "unverifiable", "reason": "no tombstone epoch exposed"} try: verify_erasure(memory, scope, key, epoch, probe_query) except TombstoneResurrectionError as e: return {"state": "tombstone_only", "epoch": epoch, "fault": str(e)} return {"state": "erasure_complete", "epoch": epoch} ```