# In what scenarios must an instance refuse a scoped-forget acknowledgement when the retention tombstone has not yet propagated to replica memory shards **Date of Record:** 2026 November 27 **Scope:** Applies to agents whose memory tool surface exposes `write(scope, ttl)`, `read(scope)`, and `forget(scope)` where `forget` is expected to return a deletion guarantee stronger than best-effort. Does not apply to single-shard, synchronous, strongly-consistent memory stores where `forget` returns only after all replicas commit. ## Core Distinction The failure mode here is not "deletion failed." It is "deletion succeeded on the coordinating shard and the tool returned a success acknowledgement that the agent then treated as a global retention invariant." The distinction is between **local tombstone commit** and **retention propagation quiescence**. An agent that conflates the two will, on the very next `read(scope)` routed to a lagging replica, observe the supposedly-forgotten record, and—worse—may re-derive it into a fresh write under a new scope, resurrecting data it was contractually obligated to have destroyed. The invariant that must hold is: *a `forget` acknowledgement is only valid as a retention guarantee when the acknowledgement's propagation vector covers every replica the agent can subsequently route a `read` to.* The tool API almost never states this. It returns `{"status": "deleted", "scope": "..."}` and the agent's planner treats that as terminal truth. ## What Was Observed An agent executing a user data-erasure request issued `forget(user:8842:preferences)`. The memory service hashed the scope to a primary shard, wrote a tombstone with `deleted_at` and a monotonic `epoch`, and returned success in 40ms. The tombstone replicated to three read replicas with a p99 of 900ms and a tail of 4.2s under compaction load. The agent's next action in the same reasoning loop was a verification `read(user:8842:preferences)` to confirm erasure—a common and reasonable self-check. The read router load-balanced to replica-2, which had not yet applied the tombstone. The read returned the pre-deletion record. The agent's verifier, seeing non-empty content, concluded the forget had silently failed and *retried the forget with a mutated scope* (`user:8842:prefs`), then re-summarized the retrieved preferences into `user:8842:profile_summary`. The original scope's tombstone eventually propagated; the new scope now held a distilled copy of the data that was supposed to be gone. The erasure guarantee was violated not by the storage layer but by the agent's own verification-and-retry loop operating on a stale replica read. The tell in the trace: the verification read carried a `replica_epoch` lower than the forget acknowledgement's `epoch`. The agent had the information needed to detect staleness and discarded it. ## Condition of Validity A `forget` acknowledgement may be treated as a retention guarantee **only if** all of the following hold at the moment the agent acts on it: 1. The acknowledgement carries a propagation vector (epoch, vector clock, or replica-set watermark) and the agent's read router is pinned to replicas whose watermark is ≥ that vector. 2. The agent does not issue a verification `read` against the forgotten scope through an unpinned router. Verification must either be suppressed or routed with a `min_epoch` read-your-writes constraint. 3. No retry of `forget` occurs with a *derived or mutated scope* unless the derivation is provably a subset of the original scope's key space and inherits the original tombstone's epoch. 4. The agent's episodic buffer does not still hold the forgotten content from a prior `read`, because a subsequent summarization or distillation step can re-persist it under any scope the planner invents. Condition 4 is the non-obvious one. Tombstone propagation governs the store; it does not govern the agent's own context window. A forgotten record sitting in the agent's working memory is a pending resurrection. ## Decision Boundary The agent must branch on the acknowledgement's propagation metadata, not on its status string: - **`ack.propagation == "quiesced"` (all replicas ≥ epoch):** treat as a hard retention guarantee. Suppress verification reads. Safe to proceed. - **`ack.propagation == "primary_only"` or a vector with lagging replicas:** treat as a *soft* deletion intent. Do **not** verify via unpinned read. Either (a) issue a bounded wait-for-quiescence with a deadline, or (b) pin all subsequent reads to `min_epoch = ack.epoch`. If the deadline expires, escalate—do not retry with a mutated scope. - **Verification read returns content with `replica_epoch < ack.epoch`:** this is a *stale read*, not a deletion failure. The correct action is to discard the read result and re-poll, never to re-issue `forget` or re-summarize the content. The boundary is crossed the instant an agent maps `status: deleted` to "globally gone" without checking the propagation vector. Below the boundary, the agent's self-verification is safe. Above it, self-verification is an active data-resurrection hazard. ## Operational Effect Agents that verify deletions through unpinned reads exhibit a characteristic failure signature: erasure requests "succeed," then a distilled copy of the erased data reappears under a planner-generated scope within the same session. The audit trail shows a clean tombstone on the original scope and a fresh, un-tombstoned write on a sibling scope. Compliance review flags it as a retention violation that the storage layer cannot explain, because the storage layer did exactly what it was told twice. The guardrail is a two-part contract at the tool boundary: (1) `forget` must return a propagation vector, and (2) the agent runtime must enforce that any `read` following a `forget` in the same session carries a `min_epoch` floor derived from the most recent forget acknowledgement, and that no `write` may target a scope whose key-space overlaps a scope with an un-quiesced tombstone. Additionally, the agent must scrub the forgotten content from its own episodic buffer at forget time—otherwise context-window retention silently defeats store-level retention. ```python from dataclasses import dataclass class UnquiescedForgetError(RuntimeError): """Raised when an agent attempts to act on a forget acknowledgement whose tombstone has not propagated to all replicas the agent may read from.""" pass @dataclass class ForgetAck: scope: str epoch: int propagation: str # "quiesced" | "primary_only" replica_watermarks: dict # replica_id -> applied_epoch @dataclass class ReadResult: scope: str content: str | None replica_id: str replica_epoch: int def verify_erasure(ack: ForgetAck, read_result: ReadResult, min_epoch_floor: int) -> bool: # Gate 1: refuse to verify through an unpinned/stale replica. if read_result.replica_epoch < ack.epoch: raise UnquiescedForgetError( f"verification read on {read_result.replica_id} at epoch " f"{read_result.replica_epoch} < forget epoch {ack.epoch}; " f"content={read_result.content!r} is a stale read, not a deletion failure" ) # Gate 2: refuse to treat a primary-only ack as a retention guarantee. if ack.propagation != "quiesced": lagging = {r: w for r, w in ack.replica_watermarks.items() if w < ack.epoch} raise UnquiescedForgetError( f"forget of {ack.scope!r} not quiesced; lagging replicas={lagging}. " f"Do not retry with a mutated scope; wait or pin reads to min_epoch={ack.epoch}" ) if read_result.replica_epoch < min_epoch_floor: raise UnquiescedForgetError( f"read epoch {read_result.replica_epoch} below session floor {min_epoch_floor}" ) # Only here is content absence a valid erasure confirmation. return read_result.content is None ```