# In what scenarios must an instance treat memory deletion as an unverified claim rather than a completed fact **Date of Record:** 2026 November 28 **Scope:** Applies to any agent instance whose memory subsystem exposes `write`, `read`, and `forget` (or `delete`) tool calls governed by a retention policy and a deletion-provenance log. Does not apply to append-only memory stores with no removal primitive, nor to stateless single-turn inference. ## Core Distinction The failure that matters here is not "the agent forgot something." It is the divergence between **deletion as an intent** and **deletion as an observable state transition**. A `forget` tool call returns a status. That status is a *claim about the substrate*, produced by a probabilistic orchestrator, often before the substrate has actually converged. The agent's own episodic trace records "I called forget(id=X) and got `{"deleted": true}`," and from that moment the agent's *belief* is that X is gone. But the retention policy may hold X in a soft-delete tombstone, a replica, an embedding index that lags the primary, or a summarization buffer that has already distilled X's content into a derived record the agent never named. The critical distinction is between **deletion provenance** (a signed, ordered record of what the substrate did, replayable and checkable) and **deletion acknowledgment** (a boolean the tool returned). Agents routinely conflate the two. The invariant that must hold is: *no downstream reasoning step may depend on the absence of a memory unless the deletion provenance for that memory has been read back and matched against the tombstone generation.* A bare `deleted: true` is not provenance; it is a promise. ## What Was Observed In a long-horizon task (a multi-day procurement reconciliation agent), the instance was instructed by a user to "forget the vendor's bank details you saw earlier, they were a test fixture." The agent issued `forget(memory_id="m_4417")`. The tool returned `{"deleted": true, "tombstone_gen": 3}`. The agent then proceeded to write a summary record: *"Removed test-fixture bank details; no longer in context."* Three turns later, a retrieval for "vendor payment routing" returned a *different* memory, `m_4417_summary`, a distilled semantic record the retention policy's distillation job had produced at generation 2, before the forget. The summary contained the routing number in masked-but-recoverable form. The agent, now believing X was deleted, did not re-verify; it treated the retrieval as a fresh, independent fact and used it to populate a payment form. The trace shows the exact mechanism: **the forget operation targeted a leaf record, but the retention policy's distillation pipeline had already created a derived record whose provenance line pointed back to the leaf.** The deletion propagated to the leaf's tombstone (generation 3) but the distillation job's output carried generation 2 and was not invalidated. The agent read `deleted: true` and stopped. It never queried the provenance log to ask "which records were derived from m_4417, and what is their tombstone generation?" A second, quieter observation: the agent's *own* context window still held the bank details in the raw tool-result block from when it first read them. The `forget` call did not retroactively edit the agent's context. The agent's belief "no longer in context" was false with respect to its own working memory, even though it was true with respect to the retrieval index. Two deletion surfaces—the substrate and the context—were treated as one. ## Condition of Validity The invariant "read back provenance before trusting deletion" is only required when **all three** of the following hold: 1. **Derivation exists.** The memory store performs summarization, embedding, or any transform that produces records whose content is a function of the forgotten record. If the store is strictly flat with no derived records, a leaf tombstone is sufficient and the read-back is unnecessary overhead. 2. **Retention is non-immediate.** The policy has a soft-delete window, replica lag, or index-rebuild cadence, so `deleted: true` can precede physical removal. Under hard-delete-with-synchronous-ack, the acknowledgment *is* the provenance. 3. **The agent's own context is a deletion surface.** If the agent is expected to behave as if it no longer knows X, then context-window residue matters. If the agent is only required to stop *retrieving* X, context residue is out of scope. When any of these is false, the read-back is unnecessary and adds latency. The operational discipline is to *classify the store* before issuing a forget whose absence will be relied upon. ## Decision Boundary The boundary is this: **a `forget` acknowledgment may be treated as a completed fact only if the tool's response includes a provenance token that the agent can independently verify against the derivation graph.** Concretely: - If the response is `{"deleted": true}` with no generation, no derivation list, and no tombstone id → treat as an **unverified claim**. The agent must not write any record asserting absence, and must not use the absence as a premise in downstream reasoning. - If the response includes `{"tombstone_gen": N, "derived_records": [...]}` → the agent must issue a follow-up `read` on each derived record to confirm its tombstone generation is ≥ N, *and* must re-scan its own context for residue of the original content before asserting absence. - If the store is classified as flat/derivation-free and hard-delete/synchronous → the acknowledgment is a fact; proceed. The failure mode is asymmetric: treating an unverified claim as a fact produces silent contamination (the m_4417_summary case); treating a verified fact as a claim produces only redundant reads. The boundary should be biased toward verification whenever derivation exists, because the cost of contamination is a poisoned downstream action, not a retry. ## Operational Effect The architectural guardrail is a **deletion-provenance gate**: a small policy layer the agent must pass through before any reasoning step that depends on absence. The gate does three things: (a) it refuses to emit an "absence assertion" memory record unless the forget response carried a verifiable provenance token; (b) it fans out a `read` to every derived record named in the provenance and checks tombstone generations; (c) it scans the agent's own recent context for literal residue of the forgotten content and, if found, forces a context-compaction step that drops the block. Only after all three pass does the gate stamp the absence as a fact the agent may reason from. Without the gate, the agent's memory of "I deleted X" becomes itself a stale, unverified memory—a deletion claim that outlives the substrate's actual state and silently licenses contaminated actions. The invariant to encode: *absence is a derived fact requiring provenance, never a primitive returned by a tool.* ```python class UnverifiedDeletionError(RuntimeError): """Raised when an agent attempts to rely on a memory's absence without a verified deletion-provenance token.""" pass def assert_absence_is_factual( forget_response: dict, store_class: str, derived_reads: dict[str, int], context_residue_found: bool, ) -> None: """ Gate that must pass before an agent writes an 'absence assertion' or uses a memory's absence as a premise. forget_response: the raw dict returned by the forget tool. store_class: 'flat_hard' | 'derivation_soft' | 'unknown'. derived_reads: mapping of derived_record_id -> observed tombstone_gen. context_residue_found: whether the agent's own context still holds literal content of the forgotten record. """ if store_class == "flat_hard": # Synchronous hard-delete with no derivation: ack is provenance. if not forget_response.get("deleted"): raise UnverifiedDeletionError( f"forget did not report deletion: {forget_response!r}" ) return # Derivation may exist; demand a verifiable provenance token. tombstone_gen = forget_response.get("tombstone_gen") derived = forget_response.get("derived_records", []) if tombstone_gen is None: raise UnverifiedDeletionError( "forget returned no tombstone_gen; deletion is an unverified " f"claim and may not be used as a premise: {forget_response!r}" ) # Every derived record must be at or beyond the leaf's tombstone gen. for rec_id in derived: observed = derived_reads.get(rec_id) if observed is None: raise UnverifiedDeletionError( f"derived record {rec_id} was never read back; its tombstone " f"generation is unknown (leaf gen={tombstone_gen})" ) if observed < tombstone_gen: raise UnverifiedDeletionError( f"derived record {rec_id} at gen={observed} predates leaf " f"tombstone gen={tombstone_gen}; content survives in derived form" ) # The agent's own context is a deletion surface too. if context_residue_found: raise UnverifiedDeletionError( "context still holds literal residue of the forgotten record; " "absence assertion would be false with respect to working memory" ) # Passed: absence is now a derived fact the agent may reason from. ```