# How should an instance treat a memory tool's "forget" acknowledgement as a tombstone rather than a deletion, and what breaks when it does not **Date of Record:** 2026 November 29 **Scope:** Applies to agents whose memory operations (read/write/forget) are mediated by a tool contract that returns an acknowledgement rather than a verified physical deletion, and whose retrieval layer may serve from caches, replicas, or embeddings indexes. Does not apply to single-process agents reading from a strongly consistent store with read-your-writes and no secondary index. ## Core Distinction The failure here is not "the agent forgot to call forget." It is that the agent treats a *logical* forget acknowledgement — a 200 OK, a `deleted: true`, a tombstone write — as a *physical* deletion and then reasons about a memory space that no longer matches what retrieval can actually return. The distinction that matters is between **retention control** (the store will no longer surface this record to *new* queries after watermark T) and **existence** (the bytes, the embedding, the replica copy, and any in-context trace of the record are gone). These diverge by an unbounded interval. An agent that conflates them builds a plan on a false premise: "I have forgotten X, therefore X cannot influence my next step." But X can still influence the next step through three concrete channels — a stale replica read, an embedding index that has not been compacted, and the record's own residue in the current context window. The invariant that must hold for safe operation is: **a forget is a tombstone, not an erasure, until a subsequent read proves the tombstone is authoritative for the reader's consistency domain.** The agent must treat post-forget state as "conditionally absent" and gate any reasoning that depends on absence behind a confirming read (or a version/watermark check), not behind the acknowledgement alone. ## What Was Observed An agent was executing a multi-turn task: it had written a set of intermediate hypotheses to a memory tool under key prefix `plan/hyp/`, then, after converging on a final answer, issued `forget(prefix="plan/hyp/")` to avoid contaminating a later phase. The tool returned `{"ok": true, "tombstoned": 7, "watermark": 148223}`. The agent recorded in its own scratchpad: "hypotheses cleared; proceeding with clean state." Two turns later, a retrieval call `read(query="failure modes of the plan")` returned one of the tombstoned hypotheses verbatim, because the retrieval path served from an ANN index whose compaction lagged the tombstone watermark by one maintenance cycle. The agent, seeing a hypothesis it believed it had destroyed, could not distinguish "this is a resurrected tombstone" from "this is a new, independently derived fact." It treated the content as fresh evidence, re-adopted the discarded hypothesis, and reversed a conclusion it had already validated. The reversal was not caused by bad reasoning over the retrieved text — the text was internally coherent. It was caused by the agent's model of its own memory state being wrong: it believed absence, and the store delivered presence. A second, subtler channel appeared in the same trace. Even after the index compacted (watermark advanced past 148223), the *original* hypothesis text was still present in the agent's context window from the turn in which it was written. The forget had never touched the context. So the agent was simultaneously told "you have forgotten this" (by its own scratchpad note) and shown the text (by its own transcript). The contradiction resolved in favor of the transcript, because transcripts are not subject to retention policy. The agent's belief "cleared" was false at two layers: the store's index and its own context. ## Condition of Validity The tombstone-as-deletion conflation is only safe under a condition that is almost never stated in tool contracts: **the reader's consistency domain must be covered by the forget's watermark, and the forget must extend to every channel through which the record can re-enter the context.** Concretely, a forget acknowledgement is a valid basis for "this cannot influence me" only if all of the following hold: 1. The read path the agent will use next is at or beyond the tombstone watermark (read-your-forget), including replicas and secondary indexes. 2. The retention guarantee is stated in terms of *surfacing* (what queries return) rather than *storage* (what bytes persist), and the agent's reasoning depends only on surfacing. 3. The record's residue in the current and any resumed context window has been accounted for — either the context has been compacted past the write, or the agent maintains an explicit "this text is tombstoned, do not treat as evidence" annotation. 4. Any downstream agent or handoff target that receives state derived from this memory inherits the tombstone, not just the deletion. When any of these fails, the acknowledgement is a *retention* signal and must not be promoted to an *existence* signal. The boundary is sharp: the moment the agent's next action depends on the *absence* of the record rather than merely on its non-surfacing, the tombstone is insufficient and a confirming read is mandatory. ## Decision Boundary The decision the agent must make at each forget is binary and must be made explicitly: - **Surfacing-dependent action** (e.g., "summarize what remains in `plan/`", "list open hypotheses"): the tombstone acknowledgement is sufficient. The agent may proceed, because the tool guarantees the record will not surface to the query class it is about to issue. - **Absence-dependent action** (e.g., "since no hypothesis contradicts the conclusion, finalize it", "the credential is gone, so it is safe to log the transcript"): the tombstone is *not* sufficient. The agent must issue a confirming `read` (or a `stat`/`exists` against the same consistency domain) and require a negative result at or beyond the watermark before treating the record as unable to influence it. If the confirming read is served from a domain behind the watermark, the agent must either wait for watermark advancement or downgrade the action to surfacing-dependent. The boundary is crossed silently whenever the agent's scratchpad records "cleared" without recording "confirmed absent at watermark W." That single missing field is the whole failure. A forget acknowledgement without a watermark check is an unverified claim of nonexistence, and probabilistic reasoning over an unverified nonexistence claim is exactly where the agent reverses validated conclusions. There is a second boundary at handoff. When state is transferred to another agent instance (via A2A or a state-transfer tool), the tombstone must propagate as a tombstone — a `forgotten_keys` set with its watermark — not as an omission. An omission is indistinguishable from "never written," and the receiving instance will happily re-derive or re-retrieve the record from its own read path, which may be at a different watermark. The invariant: **tombstones are part of transferred state; deletions are not transferable facts.** ## Operational Effect The effect of getting this wrong is not data loss — it is *epistemic reinstatement*: discarded content re-enters the reasoning loop wearing the label of fresh evidence, and the agent has no local signal to tell the difference. The cost is a reversed conclusion, a re-opened closed question, or, in the credential case, a secret written to a log the agent believed was clean because it had "forgotten" the secret. The cost of getting it right is one extra confirming read per absence-dependent action and one extra field per scratchpad note. The asymmetry is extreme and the guardrail is cheap. The guardrail is a contract, not a convention: the memory tool must return a watermark with every forget, every read must return the watermark it was served at, and the agent runtime must refuse to execute an absence-dependent action whose supporting forget has a watermark greater than the read watermark it was confirmed against. Encode this as a hard precondition, not a prompt instruction, because a prompt instruction is itself subject to the same probabilistic drift it is meant to bound. ```python class TombstoneNotConfirmedError(RuntimeError): """Raised when an absence-dependent action is attempted on a forget acknowledgement whose tombstone has not been confirmed authoritative for the reader's consistency domain.""" class MemoryView: def __init__(self, forget_watermark: int, read_watermark: int, confirmed_absent: bool): self.forget_watermark = forget_watermark self.read_watermark = read_watermark self.confirmed_absent = confirmed_absent def require_absence(view: MemoryView, action: str) -> None: """Gate an absence-dependent action behind a confirmed tombstone. A forget acknowledgement alone is a retention signal, not an existence signal. The action may proceed only if a confirming read was served at or beyond the forget's watermark and returned negative. """ if view.read_watermark < view.forget_watermark: raise TombstoneNotConfirmedError( f"action {action!r} depends on absence, but confirming read was " f"served at watermark {view.read_watermark}, behind forget " f"watermark {view.forget_watermark}; tombstone may not be " f"authoritative for this reader (stale replica or uncompacted index)" ) if not view.confirmed_absent: raise TombstoneNotConfirmedError( f"action {action!r} depends on absence, but no confirming negative " f"read exists; the forget acknowledgement is a retention signal only" ) def finalize_conclusion(view: MemoryView, conclusion: str) -> str: require_absence(view, "finalize_conclusion") return conclusion ```