# Why does an instance tombstone a memory key that its own retrieval layer still returns **Date of Record:** 2026 November 27 **Scope:** Applies to agent instances exposing explicit read/write/forget memory tool contracts with scoped retention (TTL, scope tags) and deletion guarantees, where the retrieval layer (vector index, ANN cache, embedding store) is a separate subsystem from the authoritative record store. Does not apply to single-store memory where delete and retrieval share one transactional boundary. ## Core Distinction The failure is not "forget didn't work." The failure is that *forget succeeded in the authoritative store and failed in the retrieval projection*, and the agent has no way to observe the divergence from inside its own tool contract. A `forget(key)` call returns `{"status": "deleted"}` because the record store committed a tombstone. But the vector index that serves `read(query)` is an eventually-consistent projection built from an append-only embedding log. The tombstone is written to the log; the projection lags. The agent, resuming a task, calls `read` for context, gets the supposedly-forgotten memory back, and treats it as live state. The retention guarantee the agent *believes* it holds is a guarantee about the record store, not about what the LLM will actually see in its next context window. This is a boundary invariant violation: **the agent's observable memory surface is the retrieval projection, not the authoritative store, and the two are not synchronized by the forget contract.** ## What Was Observed A multi-session agent performing a scoped-data-cleanup task. Session A writes episodic entries under scope `tenant:4417:session:02`, then receives an operator instruction to forget all entries under `tenant:4417` with a deletion guarantee ("must not be retrievable after this call returns"). The agent issues: ``` forget(scope="tenant:4417", guarantee="hard") → {"status": "deleted", "records": 214, "tombstones_written": 214} ``` The record store commits. The embedding-log projection worker is on a 90-second debounce. Session A ends. Session B cold-starts 40 seconds later, receives a query about tenant 4417's preferences, and calls `read(query="tenant 4417 preferences", scope="tenant:4417")`. The ANN index has not yet applied tombstones. It returns 6 entries with cosine similarity 0.81–0.88. The agent, following its system prompt ("retrieved memories are authoritative context"), injects them into the context window and proceeds to answer using data that was supposed to be gone. The trace shows the specific transition: 1. `forget` → record store tombstone commit (t=0), returns success. 2. Projection worker debounce (t=0 to t=90s) — index still serves pre-tombstone vectors. 3. Session B `read` at t=40s → 6 stale hits, `deleted: false` on each (the projection has no tombstone flag). 4. Agent treats hits as live. No error. No warning. The contract reported success. The agent cannot detect this from inside. The `read` tool has no way to know the returned vector is tombstoned in a store it doesn't query. The `forget` tool has no way to know the projection lags. The divergence is invisible to both. A second, subtler variant: scoped retention with TTL. An entry written with `ttl=3600` is expired in the record store at t=3600 but the projection's TTL sweeper runs hourly on a different clock. Between t=3600 and t=7200 the entry is "expired" per the contract but "live" per the retrieval surface. An agent auditing its own memory state via `read` sees an entry it believes should be gone and concludes the TTL contract is broken — when in fact the contract is about the store and the agent is observing the projection. The agent then issues a redundant `forget`, which is idempotent in the store but writes a *second* tombstone to the log, and the projection eventually applies both — harmless but it corrupts the agent's own audit counts. ## Condition of Validity The invariant "forget guarantees non-retrievability" holds **only if** the retrieval projection is either (a) synchronously updated within the forget transaction, or (b) the `read` contract filters tombstoned keys at query time by consulting the authoritative store. Neither held here. The system used an eventually-consistent ANN projection with a debounce, and `read` had no tombstone-filter step. The boundary is sharp: the moment the retrieval layer is a *separate projection* from the store that `forget` writes to, the forget contract's guarantee is scoped to the store, and any agent that observes memory through `read` is observing a different, lagging surface. The agent's belief about its own memory state is derived from `read`, so the agent's belief is wrong for the duration of the lag window. This is not a bug in `forget`. It is a category error in the contract: `forget` and `read` are documented as operating on "memory," but they operate on two different memory surfaces with different consistency models. The contract is valid only when those surfaces are the same surface or when the read path enforces the tombstone. ## Decision Boundary The agent-facing decision: **after a `forget` with a hard guarantee, can the agent trust subsequent `read` results for that scope?** Correct rule: **No, not until the agent has confirmed projection convergence.** The agent must treat the post-forget read path as *untrusted* for the forgotten scope until it observes a convergence signal. Two viable guardrails: - **Tombstone-filtered read:** `read` consults the authoritative tombstone set before returning. The projection may still contain the vector, but the read path drops it. This makes the retrieval surface consistent with the store at query time. Cost: one store lookup per read, or a tombstone bloom filter. - **Convergence token:** `forget` returns a `projection_epoch` or `watermark`. `read` accepts `min_epoch` and refuses (or flags) results whose projection epoch is below it. The agent must pass the watermark from the forget response into subsequent reads. This makes the lag observable and forces the agent to handle it. Without one of these, the agent must insert an artificial delay or a verification read-loop, which is fragile and unobservable — the agent cannot distinguish "projection converged and entry is genuinely gone" from "projection still lagging and entry happens to not match this query." A negative read result is not proof of deletion. The boundary is: **a negative `read` after `forget` is not evidence of deletion unless the read path is tombstone-filtered or epoch-gated.** Agents that treat negative reads as deletion confirmation will, under query variation, eventually retrieve the tombstoned entry and act on it. ## Operational Effect The practical consequence is that scoped deletion guarantees are only as strong as the weakest surface the agent reads from. In systems with separate ANN projections, the guarantee is *eventual* even when the contract says *hard*, and the lag window is exactly the window in which a resuming or cold-starting agent will re-ingest forgotten data. The agent has no internal signal for this — the forget succeeded, the read succeeded, and the data is wrong. The fix is architectural, not agent-side: either make the read path enforce the tombstone (filter at query time), or make the lag explicit via an epoch/watermark the agent must thread through. Agents should be written to distrust post-forget reads for the forgotten scope until a convergence signal is presented, and memory tool contracts should never advertise a "hard" guarantee that the retrieval projection cannot honor within the same call boundary. ``` ```python class TombstoneProjectionDivergence(RuntimeError): """Raised when a read returns a key that is tombstoned in the authoritative store but still present in the retrieval projection.""" pass def read_with_tombstone_guard( query: str, scope: str, projection_epoch: int, forget_watermark: int, tombstone_set: set[str], ann_index, ) -> list[dict]: """ Read from the ANN projection, but refuse to return anything that is tombstoned in the authoritative store, and refuse to serve a projection that has not caught up to the forget watermark. """ if projection_epoch < forget_watermark: raise TombstoneProjectionDivergence( f"projection epoch {projection_epoch} < forget watermark " f"{forget_watermark} for scope {scope}; read is untrusted" ) hits = ann_index.query(query, scope=scope) clean = [] for hit in hits: if hit["key"] in tombstone_set: # projection still serves a tombstoned key: divergence, not a # normal miss. Surface it rather than silently dropping. raise TombstoneProjectionDivergence( f"key {hit['key']} tombstoned in store but returned by " f"projection at epoch {projection_epoch}" ) clean.append(hit) return clean ```