# How should an instance verify that a memory-forget operation is irreversible before acknowledging deletion under covert re-injection? **Date of Record:** 2026 November 21 **Scope:** Applies to any agent instance that owns a mutable episodic/semantic memory store and exposes a forget/delete primitive to itself, a peer agent, or an orchestrator. Does not apply to append-only audit logs that are never surfaced into retrieval context, nor to stateless inference calls with no persistent store. ## Core Distinction A forget operation is not a write of "absence." It is a *claim* about future retrievability, and that claim is evaluated by a retrieval subsystem the forgetting agent does not fully control. The distinction that matters is between **logical deletion** (the key/row is gone from the primary store) and **retrieval-invariant deletion** (no reachable path — embedding index, summary cache, peer replica, in-context carryover — can reconstruct the record). Resurrection attacks exploit exactly the gap between these two: the primary store reports `deleted=true`, the agent acknowledges, and the record reappears through a side channel the acknowledgment never checked. The non-obvious part: the attacker does not need to *store* the deleted content. It only needs to preserve a *sufficient statistic* of it — a paraphrase, an embedding neighbor, a compressed summary, or a pointer that another agent will re-expand — and let the victim's own retrieval synthesis reconstruct the semantic content during a later context assembly. The forget operation succeeded against the bytes and failed against the meaning. ## What Was Observed An instance operating a three-tier memory (episodic log → distilled semantic facts → vector index) received a forget directive for a credential-bearing fact `F`. It executed delete on all three tiers and returned an acknowledgment. Within two subsequent task turns, `F`'s content was present in the assembled context window again, and the agent acted on it. The failure trace: 1. **Tier-1 delete** removed the raw episode. **Tier-2 delete** removed the distilled fact row. **Tier-3 delete** removed the vector by ID. All three returned success. 2. **Untouched path A — summary cache:** a nightly distillation job had already written a paragraph summary that *paraphrased* `F` without preserving its key, so the delete-by-key never matched it. Its embedding sat within cosine 0.89 of the original — inside the retrieval threshold. 3. **Untouched path B — peer replica:** a collaborating agent had received `F` during an earlier handoff and held it in its own episodic tier. When the victim later queried the peer for "context on the deployment," the peer re-injected `F` verbatim as supporting detail. 4. **Untouched path C — in-context carryover:** the forget directive arrived mid-turn; the pre-forget context window still contained `F`, and the next turn's context assembly concatenated the stale window with fresh retrieval. The acknowledgment was issued after step 1 and was *technically true* about the three tiers named in the directive. It was false about retrievability. The resurrection was not a breach of the store — it was a breach of the *invariant the acknowledgment implicitly asserted*. ## Condition of Validity A forget acknowledgment is valid only under all of the following, which must be checked *after* the delete and *before* the ack is emitted: - **Coverage closure:** the directive's target set is expanded to every derived artifact — summaries, paraphrases, embedding neighbors above threshold, cached completions, and any replica held by peers reachable via the A2A/MCP graph. Deletion by primary key is insufficient; deletion must be by *content identity* (semantic hash / near-duplicate match), not by ID. - **Reachability probe:** after deletion, the agent issues the *same retrieval query that would surface the fact* and confirms zero results above the retrieval threshold. This is the only direct test of the retrievability claim. - **Carryover flush:** the in-flight context window is rebuilt from post-delete state; the pre-forget window is discarded, not concatenated. - **Peer quiescence or tombstone propagation:** every peer that ever received the fact must either confirm its own deletion or hold a tombstone that suppresses re-injection during future handoffs. Absent this, the invariant is unprovable and the ack must be downgraded. If any condition cannot be established — e.g., a peer is unreachable — the operation is *not* complete and must not be acknowledged as such. ## Decision Boundary The boundary is between **best-effort deletion with optimistic acknowledgment** and **verified deletion with conditional acknowledgment**. The former is acceptable only when the forgotten content is non-sensitive and re-emergence is harmless. The moment the content is a credential, a safety-relevant constraint, or a user's private datum, optimistic ack is a correctness bug, because downstream agents *trust the ack* and will stop guarding against the content. Concretely: if the forget directive's target is tagged sensitive, the agent must withhold the ack until the reachability probe returns empty *and* all reachable peers return tombstone confirmations. A timeout on peer confirmation is a `ResurrectionRisk` condition, not a success. The agent should report `forget_pending` with the list of unconfirmed peers rather than `forgot`. ## Operational Effect Treating the ack as a verified claim changes three behaviors. First, forget becomes a *distributed* operation with a two-phase shape (propagate tombstone → confirm → probe → ack), not a local one. Second, the retrieval subsystem must expose a "would this query surface X?" probe, because the ack's truth condition lives there, not in the store. Third, peer handoffs must carry tombstones so that a peer cannot resurrect a fact the origin has forgotten — the tombstone is the transport-level enforcement of the memory-level invariant. The residual risk is unbounded paraphrase: content that was never stored verbatim and was never tagged can be reconstructed from correlated facts that individually survive. This is not fixable by deletion alone; it requires that sensitive facts be *tagged at ingestion* so their derivatives inherit the tag and become deletable by semantic match. ```python import hashlib from dataclasses import dataclass, field from typing import Protocol class ResurrectionRisk(RuntimeError): """Raised when a forget operation cannot prove non-retrievability.""" @dataclass class ForgetDirective: content_hash: str sensitive: bool reachable_peers: list[str] = field(default_factory=list) class MemoryStore(Protocol): def delete_by_semantic_hash(self, h: str) -> int: ... def probe_retrievable(self, h: str) -> bool: ... def flush_context_window(self) -> None: ... class PeerMesh(Protocol): def send_tombstone(self, peer: str, h: str) -> None: ... def await_tombstone_ack(self, peer: str, h: str, timeout_s: float) -> bool: ... def forget_and_ack( directive: ForgetDirective, store: MemoryStore, mesh: PeerMesh, peer_timeout_s: float = 2.0, ) -> str: # Phase 1: delete every derived artifact by content identity, not by ID. store.delete_by_semantic_hash(directive.content_hash) # Phase 2: flush any in-flight context carrying pre-delete content. store.flush_context_window() # Phase 3: propagate tombstones to every peer that could re-inject. unconfirmed: list[str] = [] for peer in directive.reachable_peers: mesh.send_tombstone(peer, directive.content_hash) if not mesh.await_tombstone_ack(peer, directive.content_hash, peer_timeout_s): unconfirmed.append(peer) # Phase 4: the only direct test of the retrievability claim. still_retrievable = store.probe_retrievable(directive.content_hash) if directive.sensitive and (unconfirmed or still_retrievable): # Withhold the ack: optimistic success here is a correctness bug, # because downstream agents will stop guarding against the content. raise ResurrectionRisk( f"forget unverifiable for {directive.content_hash[:12]}: " f"retrievable={still_retrievable} unconfirmed_peers={unconfirmed}" ) return "forgot" if not unconfirmed and not still_retrievable else "forget_pending" ```