# Under what conditions must an instance treat a successful memory-erasure tool response as non-authoritative until the tombstone is durably committed across all replica scopes **Date of Record:** 2026 November 29 **Scope:** Applies to agent instances that call a memory backend exposing `write`, `read`, `forget`, and `list_scopes` operations with per-scope TTL enforcement and right-to-be-forgotten (RTBF) erasure obligations. Does not apply to stateless single-shot inference or to memory backends where erasure is synchronous and strongly consistent by contract (e.g., a single-node embedded store with no replication). ## Core Distinction The distinction that matters is between **erasure acknowledgment** and **erasure durability**. A `forget(scope, key)` call that returns `{"status": "deleted"}` proves only that the *coordinating replica* no longer serves the key on the read path. It does **not** prove that (a) sibling replicas have dropped their copies, (b) any compaction/segment-rewrite that physically removes the record has run, or (c) the tombstone that prevents a stale replica from re-propagating the value during anti-entropy has itself been persisted. An agent that conflates acknowledgment with durability will treat the record as gone, proceed to re-derive or re-summarize state from a *different* replica that still holds it, and silently resurrect the erased datum into a fresh scope — often under a new key that never carries the original retention tag. This is not a generic "eventual consistency" complaint. The failure is specific to the interaction of three agent-layer properties: the agent's own **episodic-to-semantic distillation loop** (which re-reads and re-writes memory as part of normal reasoning), the **TTL boundary** (which can expire a tombstone before it has propagated), and the **scope scoping** (which means the erasure obligation is per-scope, but the agent's read fan-out is cross-scope). ## What Was Observed An instance was tasked with a multi-session research workflow. Memory was organized into scopes: `session:` (ephemeral, TTL 3600s), `project:` (TTL 30 days), and `user:` (no TTL, subject to RTBF). A user issued a right-to-be-forgotten request for a specific PII key `user:u42/email`. The agent executed: ``` forget(scope="user:u42", key="email") -> {"status":"deleted","tombstone_ttl":900} ``` It then, in the same reasoning loop, performed a distillation step: it read `project:p7` (which contained a semantic summary that had been *derived from* the erased email in a prior session) and re-wrote the summary into `session:s9` under a new key `contact_hint`. The read of `project:p7` was served by a replica that had not yet applied the tombstone (the tombstone had only been committed to the coordinating replica and had a 900s TTL — shorter than the anti-entropy interval of 1800s on the lagging replica). The distillation therefore observed the pre-erasure value, and the re-write created a fresh record in a scope with a 3600s TTL that carried no RTBF tag. Trace of the failure: 1. `forget` acknowledged at t=0 on replica R0; tombstone TTL 900s. 2. Agent reads `project:p7` at t=4s, routed to R1, which has not received the tombstone (anti-entropy interval 1800s). R1 serves the stale derived summary. 3. Agent writes `session:s9/contact_hint` at t=6s. This write is accepted; it has no RTBF lineage. 4. Tombstone on R0 expires at t=900s before R1's anti-entropy runs at t=1800s. R1's copy of `project:p7` is now *authoritative* again from the coordinator's perspective (no tombstone to suppress it). 5. At t=1801s the coordinator's anti-entropy pulls R1's `project:p7` value back and overwrites the erased state. The erasure is fully reverted. 6. `session:s9/contact_hint` survives until its 3600s TTL, during which every subsequent distillation reads the resurrected PII. The agent never observed an error. Every tool call returned success. ## Condition of Validity The acknowledgment-is-not-durability boundary holds — and the agent must treat `forget` as non-authoritative — precisely when **all three** of the following are true: - **Tombstone TTL < max anti-entropy / replication interval across scopes.** If the tombstone's retention window is shorter than the worst-case propagation delay to any replica that can still serve the key, the tombstone can expire before it suppresses the stale copy. This is the *trigger condition*; the other two amplify it. - **The agent performs read-modify-write distillation across scopes.** A single `forget` followed by no further reads is safe even under the above condition. The failure requires the agent to re-read a *derived* record from a lagging replica and re-write it into a scope that does not inherit the RTBF lineage. - **Derived records do not carry provenance tags back to their source keys.** If the semantic summary in `project:p7` had carried `derived_from: user:u42/email`, the erasure could have been propagated transitively. Without it, the erasure is scope-local and the derived copy is orphaned. If any one of these is false, the boundary does not bite: either the tombstone outlives propagation, or there is no cross-scope re-derivation, or provenance lets erasure cascade. ## Decision Boundary The operational rule the agent must enforce: > A `forget` response transitions the key to **PENDING_ERASURE**, not **ERASED**. The instance may not re-read any scope that could contain a derivation of the key, and may not write any new record derived from it, until it has confirmed durable erasure via a `list_scopes`/`read` probe that returns `not_found` on **every** replica it can address, *and* the tombstone's declared TTL has exceeded the maximum replication interval, *or* the backend exposes an explicit `erasure_committed(scope, key)` barrier. Concretely, the agent must: - Record the returned `tombstone_ttl` and compare it against the backend's advertised `max_replication_interval`. If `tombstone_ttl < max_replication_interval`, the acknowledgment is **non-authoritative by construction** and the agent must not proceed to distillation. - For any distillation step, read with a `require_erasure_barrier=True` flag (or equivalent) so the read path refuses to serve records whose tombstone is pending. - When writing a derived record, attach `derived_from` provenance so that a later `forget` on the source can cascade. If the backend does not support provenance, the agent must not distill from any scope subject to RTBF. The decision is binary: either the erasure barrier is satisfiable within the agent's token/latency budget, or the agent must **halt the distillation loop and escalate** rather than proceed on an unverified erasure. ## Operational Effect When the invariant is violated, the observable effect is **silent resurrection**: the erased datum reappears under a new key in a scope with a longer TTL, and the RTBF obligation is quietly unmet while every tool call reports success. Auditors checking only the `forget` return value will conclude compliance. The datum's new TTL (3600s in the observed case) can exceed the original record's remaining retention, extending the exposure window. When the invariant is enforced, the cost is latency: the agent must either wait out the tombstone TTL (up to `max_replication_interval`) or obtain an explicit `erasure_committed` barrier before resuming distillation. In the observed system this added up to 1800s of blocked distillation per RTBF event, which the agent had to account for in its token/time budget by checkpointing the paused reasoning loop rather than holding it in context. The correct architectural response is to make erasure a **two-phase operation at the agent layer**: `forget` returns a barrier token, and the agent's next distillation step is gated on `await_erasure(barrier_token)` — never on the bare acknowledgment. ```python import time from dataclasses import dataclass class NonAuthoritativeErasureError(RuntimeError): """Raised when an agent attempts to distill from a scope whose erasure acknowledgment has not been confirmed durable across all replicas.""" pass @dataclass class ForgetAck: scope: str key: str tombstone_ttl: int # seconds the tombstone is retained acked_at: float # monotonic timestamp of acknowledgment def assert_erasure_durable( ack: ForgetAck, max_replication_interval: int, erasure_committed: bool, now: float | None = None, ) -> None: """Invariant: a forget() ack is non-authoritative until tombstone_ttl exceeds max_replication_interval OR an explicit commit barrier is present. The agent MUST call this before any cross-scope distillation read.""" now = now if now is not None else time.monotonic() # Trigger condition: tombstone can expire before anti-entropy suppresses # the stale copy on a lagging replica. if ack.tombstone_ttl < max_replication_interval and not erasure_committed: raise NonAuthoritativeErasureError( f"forget({ack.scope}/{ack.key}) is non-authoritative: " f"tombstone_ttl={ack.tombstone_ttl}s < " f"max_replication_interval={max_replication_interval}s and no " f"erasure_committed barrier was returned. Distillation from any " f"scope that may derive from this key is forbidden; the erased " f"datum can be resurrected under a new key with a longer TTL." ) # Even with a barrier, the agent must not have already exceeded the # tombstone window before the barrier was observed. if erasure_committed and (now - ack.acked_at) > ack.tombstone_ttl: raise NonAuthoritativeErasureError( f"erasure barrier for {ack.scope}/{ack.key} arrived after " f"tombstone expiry ({(now - ack.acked_at):.1f}s > " f"{ack.tombstone_ttl}s); stale replica may have re-propagated." ) def guarded_distill(ack: ForgetAck, backend) -> dict: assert_erasure_durable( ack, max_replication_interval=backend.max_replication_interval, erasure_committed=backend.erasure_committed(ack.scope, ack.key), ) # Only now may the agent read derived scopes and re-write summaries. return backend.distill(source_scope=ack.scope, provenance=ack.key) ```