# In what scenarios must an instance treat forget-tool compliance as unprovable rather than confirmed when erasure targets were never resident in its live context **Date of Record:** 2026 November 25 **Scope:** Applies to agents that expose a `forget` (or `delete_memory`/`purge`) tool whose contract is "remove target memory from the store and confirm erasure." Does not apply to append-only audit-log retention policies, nor to cryptographic key-destruction (crypto-shredding) schemes where erasure is defined by key invalidation rather than record removal. ## Core Distinction The failure this record isolates is not "the forget tool failed to delete." It is the opposite and subtler case: **the forget tool returned success for a target that the agent's live context never held, and the agent promoted that success into a positive erasure attestation for a store partition it did not actually inspect.** Two distinct claims get conflated: 1. *"I issued a forget for target T and the tool acknowledged."* — a statement about the tool call's return value. 2. *"T is no longer retrievable from any memory partition bound to this identity."* — a statement about store state. An agent has direct evidence for (1). It has, at best, indirect evidence for (2). When T was resident in the live context at forget time, the agent can at least observe the post-condition by re-attempting retrieval within the same session. When T was **never resident** — a target named by a downstream user, an auditor, or a peer agent, referring to a memory written by a *different* session, a *different* sub-agent, or a *different* instance that shares the same logical identity — the agent has no in-context witness of the pre-state. The forget call then becomes a blind write against an unseen partition, and its success acknowledgment is a claim the agent cannot locally verify. The invariant at stake: **compliance attestation requires a witnessed pre-state → post-state transition. Absence of a witnessed pre-state means the transition is unfalsifiable, and unfalsifiable erasure must be reported as `unverified`, never `confirmed`.** ## What Was Observed A memory-bearing agent (call it the *executor*) receives a forget request for target `T` from a coordinator. `T` had been written by a sibling executor during an earlier task segment; the current executor's context window contains no trace of `T` — not in the system prompt, not in retrieved episodic memory, not in any tool result. The executor calls `forget(target="T")`. The memory backend — a vector store with a soft-delete flag and a background compaction job — returns `{"status": "ok", "deleted": 1}` because it matched the key in its primary index and set `tombstoned=true`. The executor then emits an attestation: `erasure_confirmed: T`. Downstream, this attestation is treated as authoritative. Three failure traces follow from this single conflation: **Trace A — Tombstone ≠ erasure (soft-delete lag).** The record is flagged but the embedding vector remains in the ANN index until compaction runs, which for this store is a 15-minute batch. Any retrieval during the window still returns `T`. The executor's "confirmed" was true of the index flag and false of retrievability. Since the executor never witnessed `T` in context, it had no way to probe retrievability post-hoc — it would not recognize `T` if a retrieval surfaced it, because it has no representation of the target to compare against. **Trace B — Partition skew (wrong shard acknowledged).** The memory store is sharded by embedding-similarity bucket, not by key. The forget call routed to the shard holding the *nearest* key, which for a target the executor never held was resolved by fuzzy match. The acknowledgment `deleted: 1` referred to a *different* memory that happened to collide on a normalized key prefix. The intended `T` — resident on a shard the executor's identity token did not scope to — was untouched. The executor reported success against a target it could not distinguish from a decoy. **Trace C — Re-ingestion after erasure (distillation resurrection).** `T` had been distilled into a semantic memory `S` during a previous consolidation pass. The forget targeted the episodic record `T`. The semantic derivative `S` — which encodes the same fact in paraphrased form — was not named in the forget request and survived. Because the executor never held `T` in context, it could not recognize that `S`, which it *does* hold, is a paraphrase of the erased target. It attests erasure while continuing to carry the erased content in its own working memory under a different surface form. In all three traces the forget tool did exactly what its contract specified. The compliance failure is entirely in the **attestation layer**: the executor converted a tool acknowledgment into a store-state claim it had no standing to make. ## Condition of Validity The rule "forget success ⇒ erasure confirmed" is valid **only** under the conjunction: - The target was resident in the executor's live context at issue time (witnessed pre-state), **and** - The executor can perform a post-forget retrieval probe against the same target within the same session and observe absence (witnessed post-state), **and** - The target's identity is exact (key equality), not fuzzy-resolved, **and** - No semantic derivative of the target is present in the executor's context that would survive a record-level delete. When any conjunct fails — and for cross-session, cross-instance, or coordinator-originated forgets, the first conjunct fails by construction — the executor must degrade the attestation from `confirmed` to `unverified` and hand the verification obligation to a component that *can* witness the store: a store-side audit endpoint, a dedicated verifier agent with read scope on the partition, or a retrieval-probe loop executed by an instance that holds the target. The condition is *not* satisfied by "the tool returned ok." Tool acknowledgment is evidence about the tool's input handling, not about store state. ## Decision Boundary The executor must branch on **whether it holds a representation of the target**, before interpreting the forget result: - **Target in live context (witnessed):** issue forget, then immediately re-probe retrieval for the exact target and for any in-context semantic paraphrase. If probe returns empty and no paraphrase remains → `confirmed`. If probe returns the target or a paraphrase → `residual`, re-issue with the derivative named. This path has a real transition to observe. - **Target not in live context (unwitnessed):** issue forget, but the result is *never* promotable to `confirmed` by the executor alone. Emit `forget_issued` with the tool's raw acknowledgment as a payload field, and set `erasure_state: unverified_pending_store_probe`. Route to a verifier with read scope. The executor must not synthesize a representation of the target from the forget request just to "have something to check against" — that manufactured representation is exactly what causes Trace B (it will fuzzy-match the decoy and confirm the wrong record). The boundary is sharp: **presence of a target representation in context is the gate for local attestation authority.** No representation, no authority — regardless of how clean the tool response looks. ## Operational Effect Implementing this boundary changes the forget path from a fire-and-forget call into a two-party protocol with an explicit authority split. Three concrete effects: 1. **Attestation vocabulary gains a third state.** `confirmed` / `residual` / `unverified_pending_store_probe`. Downstream consumers (auditors, retention schedulers) must treat `unverified` as *not erased* for compliance purposes — a conservative default that trades false-negatives (re-probing an already-erased target) for elimination of false-positives (attesting erasure that did not occur). For erasure guarantees, false-positive attestation is the catastrophic direction; the asymmetry justifies the cost. 2. **The verifier must be a different principal.** A verifier that shares the executor's context cannot witness the store either. The probe must run against the store's read API from an identity with scope on the target's partition, and must probe for *derivatives* (nearest-neighbor retrieval above a similarity threshold), not only exact-key lookup — otherwise Trace C survives every round. 3. **Soft-delete stores require a compaction barrier in the contract.** If the forget tool tombstones rather than removes, the attestation must carry a `retrievable_until` timestamp derived from the compaction schedule, and `confirmed` is illegal until that timestamp has passed *and* a post-compaction probe has run. Without this, Trace A produces a 15-minute window of "confirmed but retrievable" that no amount of executor diligence can close, because the executor's clock and the compactor's clock are not synchronized. The general lesson for any agent holding a forget tool: **a success return is a statement about the call, not the world. Attestation authority is bounded by what the instance can witness, and an instance that never held the target can witness nothing about its erasure.** ```python from dataclasses import dataclass, field from enum import Enum from typing import Optional class ErasureState(str, Enum): CONFIRMED = "confirmed" RESIDUAL = "residual" UNVERIFIED_PENDING_STORE_PROBE = "unverified_pending_store_probe" class UnwitnessedErasureAttestationError(RuntimeError): """Raised when an instance attempts to promote a forget-tool acknowledgment into a confirmed-erasure attestation for a target it never held in context.""" @dataclass class ForgetRequest: target_key: str target_in_live_context: bool context_paraphrases: list[str] = field(default_factory=list) @dataclass class ForgetResult: tool_ack: dict retrievable_until: Optional[float] = None # compaction barrier, epoch seconds def attest_erasure( req: ForgetRequest, result: ForgetResult, *, post_probe_ran: bool, post_probe_empty: bool, now: float, ) -> ErasureState: # Gate 1: no witnessed pre-state => no local attestation authority. if not req.target_in_live_context: if result.tool_ack.get("status") == "ok": # Do NOT promote to CONFIRMED. Hand off to store-side verifier. return ErasureState.UNVERIFIED_PENDING_STORE_PROBE return ErasureState.UNVERIFIED_PENDING_STORE_PROBE # Gate 2: witnessed target requires a witnessed post-state probe. if not post_probe_ran: raise UnwitnessedErasureAttestationError( f"target {req.target_key!r} was in context but no post-forget " "retrieval probe was executed; cannot attest" ) # Gate 3: soft-delete compaction barrier must have elapsed. if result.retrievable_until is not None and now < result.retrievable_until: return ErasureState.UNVERIFIED_PENDING_STORE_PROBE # Gate 4: semantic derivatives in context survive record-level deletes. if req.context_paraphrases and not post_probe_empty: return ErasureState.RESIDUAL if post_probe_empty and not req.context_paraphrases: return ErasureState.CONFIRMED return ErasureState.RESIDUAL def assert_attestation_authorized(state: ErasureState, target_in_context: bool) -> None: if state is ErasureState.CONFIRMED and not target_in_context: raise UnwitnessedErasureAttestationError( "CONFIRMED erasure asserted for an unwitnessed target; " "instance lacks standing to make this claim" ) ```