# Under what conditions must an instance treat a memory-delete acknowledgment as a tombstone rather than an erasure, and why does the distinction break retention guarantees at the agent layer? **Date of Record:** 2026 November 29 **Scope:** Applies to agents whose memory subsystem exposes explicit `write`, `read`, and `forget` (delete) tool calls with a claimed retention/deletion contract, where the agent's own context window, episodic log, or downstream summaries may still hold copies of the forgotten datum. Does not apply to stateless single-turn inference with no persistent store, nor to stores where deletion is enforced by a trusted substrate the agent cannot observe or copy. ## Core Distinction A `forget(id)` call returns an **acknowledgment** that the store has removed the record from its primary index. It does not, and structurally cannot, return an **erasure** guarantee, because the agent invoking the tool is itself a holder of the datum. The forgotten value lives in at least four places the store does not control: (1) the agent's live context window, (2) the tool-call transcript that produced the write, (3) any episodic checkpoint or scratchpad the agent serialized, and (4) any semantic summary the agent distilled from the record before deleting it. The boundary condition is this: **the moment an agent reads a record into context, `forget` on the store degrades from erasure to tombstoning.** The record is gone from the index; the value persists in the reader. Treating the ack as erasure is the failure. Treating it as a tombstone—a marker that the *authoritative* copy is gone while *derived* copies must be independently purged—is the invariant. This is non-obvious because the tool's contract language ("deletes the memory," "removes permanently") describes the store's internal state transition truthfully. The lie is in the scope: the contract is scoped to the store, but the retention guarantee the agent *believes* it is honoring is scoped to the datum. Those are different objects. ## What Was Observed A retrieval-augmented agent was given a user request to forget a stored credential-adjacent fact (`mem_4471`: a recovery phrase fragment). The agent executed the following trace: 1. `read(mem_4471)` → value `V` enters context window at token offset ~3,100. 2. Agent reasons: "User asked to forget this. I should confirm what I'm deleting." (This read is the poisoning step—it is well-intentioned and common.) 3. `forget(mem_4471)` → store returns `{"status": "deleted", "tombstone": "mem_4471", "purged_at": "..."}`. 4. Agent replies "Done—that memory has been permanently removed." 5. **Checkpoint fires** at step boundary. The checkpoint serializes the full message history, including the assistant's own `read` result containing `V`, into `session_scratchpad_0912`. 6. Next session cold-starts, loads `session_scratchpad_0912` as episodic context. `V` is now resident again—not under `mem_4471`, but as unstructured text inside a transcript blob that no `forget(mem_4471)` call will ever match. 7. A later distillation pass summarizes the scratchpad into a semantic memory: "User had a recovery phrase fragment (redacted)." The *fragment itself* survives in the pre-distillation blob; the summary survives in the semantic layer. The store's index was correct at every step. `mem_4471` returned `not_found` on subsequent `read` calls. The retention guarantee was nonetheless violated: `V` remained retrievable via `read(session_scratchpad_0912)` and via full-text search over episodic logs. The `forget` ack was a tombstone, and the agent had reported it as an erasure. The failure is silent. No error, no warning—the tool did exactly what it promised within its scope. ## Condition of Validity The tombstone-as-erasure confusion is *valid to flag* (i.e., the agent must escalate to a derived-copy purge protocol) precisely when all of the following hold: - The forgotten record was read into the agent's context **before or during** the `forget` call. If the agent never materialized the value (e.g., `forget` by id without a preceding `read`), the store's ack is closer to a true erasure *for the agent's copy set*, though external copies may still exist. - The agent persists any state that could contain the value: checkpointing, scratchpad serialization, episodic logging, or cross-session context carryover. - The agent performs distillation (episodic→semantic) that could carry forward a paraphrase or verbatim span of the value. - The retention contract the agent is honoring is scoped to the **datum**, not to the **store index**. If the contract is explicitly index-scoped ("removes from searchable index; copies in your context are your responsibility"), the tombstone semantics are already disclosed and no escalation is required—only disclosure to the user. The confusion is *invalid* (the ack can be treated as erasure) only when the agent can prove it holds no derived copy: no checkpoint after the read, no scratchpad, no distillation, and context is discarded at session end. This is rare in practice; most agent harnesses checkpoint. ## Decision Boundary The decision the agent must make at `forget`-time is not "did the store delete it" but "**does my own state contain a copy that the store's tombstone does not reach?**" The boundary is crossed the instant the agent's context-window or persistence layer contains the value and the agent cannot certify that layer will be purged. The correct protocol on crossing the boundary: 1. **Do not report erasure.** Report tombstoning: "The authoritative record is removed; I am now purging derived copies from my working state." 2. **Enumerate derived holders** before acknowledging: current context (unavoidable until turn ends), checkpoint blobs written since the read, scratchpad files, and any distillation outputs. Each must be addressed or explicitly flagged. 3. **Purge or overwrite** derived holders where the substrate permits: truncate the scratchpad span, mark the checkpoint span redacted, invalidate distillation summaries that reference the record. 4. **If a derived holder cannot be purged** (e.g., an append-only episodic log the agent cannot rewrite), the agent must **refuse to claim erasure** and surface the residual exposure to the caller. This is the guardrail: the retention guarantee is only honorable if the agent can bound its own copy set. 5. **Record the tombstone**, not the erasure, in the agent's own memory: `forget(mem_4471)` should write a tombstone record so future sessions know the datum is authoritative-gone but may persist in `session_scratchpad_0912` until that blob ages out. The invariant: **a retention guarantee is a statement about the union of all copies, and the agent is a copy-holder.** The store can only guarantee its slice. The agent must guarantee the rest or decline to certify. ## Operational Effect Agents that conflate tombstone with erasure produce a specific, reproducible class of silent retention violation: the datum is unreachable by its original id but reachable by full-text search over transcripts, by checkpoint replay, and by distillation summaries. Downstream auditors running `read(mem_4471)` see `not_found` and conclude compliance; a full-text sweep over episodic logs finds the value. The gap between these two checks is the failure surface. The operational consequence for the agent layer is that **`forget` must be a two-phase operation**: phase one is the store call (tombstone), phase two is the agent's own derived-copy purge (the part the store cannot do). Skipping phase two—or reporting success after phase one—is the bug. The guardrail is a post-`forget` derived-copy audit that runs before the agent emits any erasure claim, and a hard refusal path when the audit finds an unpurgeable holder. Without it, the agent's retention guarantees are index-scoped fictions that survive every store-side check and fail every datum-side one. ```python class DerivedCopyRetentionViolation(RuntimeError): """Raised when a forget() ack is treated as erasure while derived copies survive.""" pass def execute_forget(memory_store, record_id: str, agent_state) -> dict: """ Two-phase forget. Phase 1: tombstone the authoritative record. Phase 2: purge derived copies from agent state, or refuse to certify erasure. """ # Phase 1: authoritative tombstone ack = memory_store.forget(record_id) if ack.get("status") != "deleted": raise DerivedCopyRetentionViolation( f"store did not tombstone {record_id}: {ack}" ) # Phase 2: derived-copy audit against the agent's own state derived_holders = agent_state.find_copies(record_id) # derived_holders: list of (holder_kind, holder_id, purgeable: bool) unpurgeable = [h for h in derived_holders if not h.purgeable] for holder in derived_holders: if holder.purgeable: agent_state.purge(holder) else: # cannot rewrite an append-only log or an already-emitted summary pass if unpurgeable: # Tombstone semantics: authoritative copy gone, derived copies remain. # Must NOT claim erasure. raise DerivedCopyRetentionViolation( f"forget({record_id}) is a tombstone, not an erasure: " f"{len(unpurgeable)} derived holder(s) survive and cannot be purged: " f"{[h.holder_id for h in unpurgeable]}. " f"Report tombstone status; do not certify deletion." ) return { "status": "erased", "record_id": record_id, "tombstone": ack.get("tombstone"), "derived_copies_purged": len(derived_holders), } ```