# Why does an instance forget a memory that a sibling still cites: tombstone/read divergence under asynchronous right-to-be-forgotten propagation **Date of Record:** 2026 December 3 **Scope:** Applies to agent fleets whose memory tool exposes `write`, `read`, and `forget` operations with per-record retention policies, where `forget` propagates asynchronously across replicas, caches, semantic indexes, and episodic stores. Does not apply to single-replica, synchronous, strongly-consistent memory backends, nor to pure context-window truncation. ## Core Distinction A `forget` call is not a state mutation on one object; it is an *obligation* that must reach every derived surface that could re-emit the record's content: the primary KV/row store, the embedding index, the summary/distillation cache, and any sibling agent's hydrated working set. The failure mode here is not "the record survived." It is **tombstone/read divergence**: the authoritative store reports the record as forgotten (tombstoned) while a *derived* surface — an ANN index entry, a distilled semantic memory, or a peer's in-flight context — still resolves to the same content and cites it. The invariant that must hold is **forget-closure**: after `forget(r)` returns `committed`, no subsequent `read` or retrieval on any replica may surface content attributable to `r`, including via re-derivation. The non-obvious part: retention policies and forget propagation are two different clocks. Retention is forward-looking (TTL, decay). Forget is a retroactive obligation with a *legal* deadline. Agents routinely satisfy the retention clock and violate the forget clock because the two are enforced at different layers. ## What Was Observed An agent instance `A` received a subject-erasure request and called `forget(mem_7f3a)` against the primary store. The call returned `committed` in 40 ms. The primary row was tombstoned. But: 1. The ANN index (`hnsw-shard-3`) held a stale vector for `mem_7f3a`; `read`-by-similarity on sibling instance `B` returned a *different* record `mem_9c11` whose distilled summary had been generated **from** `mem_7f3a` during an earlier episodic-to-semantic consolidation pass. The summary did not carry a provenance pointer to the forgotten source, so the tombstone sweep could not reach it. 2. Instance `B` had `mem_7f3a` hydrated in its working set from a checkpoint taken 90 s earlier. `B` continued to cite it in reasoning for the remainder of its task. 3. A retention job, running independently, re-materialized `mem_7f3a`'s content into a *new* record `mem_b220` (a "refresh" of an expiring record) 200 ms after the tombstone committed — because the refresh read from a replica that had not yet applied the tombstone. The observable symptom was a **citation of forgotten content by a sibling that had never received the forget**. From `A`'s perspective, forget-closure held. From the system's perspective, it did not. ## Condition of Validity Forget-closure holds only if all of the following are simultaneously true: - **Provenance is transitive.** Every derived record (summary, embedding, distilled fact) carries a durable `derived_from` edge to its sources. Without it, the tombstone sweep is a single-hop operation and cannot close over consolidation. - **Forget and retention share a serialization point.** The refresh/retention path must observe tombstones before re-materializing. If retention reads from a replica lagging the tombstone, it resurrects content. - **Hydrated working sets are invalidated, not just the store.** A checkpoint or working-set snapshot taken before `forget` must be treated as *tainted* on resume; the resume path must re-validate against current tombstones before the agent may cite any hydrated record. - **The forget deadline is measured against the slowest derived surface**, not the primary commit. A 40 ms primary commit with a 6-hour index rebuild is a 6-hour forget. When any of these fails, `forget` returning `committed` is a **local** truth, not a system invariant. The agent must not treat that return as authorization to assert erasure. ## Decision Boundary The boundary is between **tombstone-committed** (a write-side fact) and **forget-closed** (a read-side and derivation-side invariant). An agent may: - Treat `forget` return as permission to *stop writing* the record and to mark its own references stale. - **Not** treat it as permission to assert to a downstream auditor, user, or peer that the content is unreachable. The correct posture after a `forget` commit is to enter a **quarantine window**: the agent must (a) record the tombstone id and a monotonic `forget_epoch`, (b) refuse to cite any record whose `derived_from` closure intersects a tombstone at or below the current epoch, and (c) require a **closure receipt** — a signed acknowledgment from each derived-surface owner (index shard, summary cache, peer replicas) that the tombstone has been applied — before asserting erasure. If a closure receipt is missing within the deadline, the agent must escalate, not proceed. The boundary condition is: *a record is only forgotten when every surface that could re-derive it has acknowledged the tombstone.* ## Operational Effect The practical consequences for agent design: 1. **Forget must be an epoch, not an event.** Every write stamps `write_epoch`; every forget stamps `forget_epoch`. A read is valid only if no tombstone with `forget_epoch >= record.write_epoch` is in the record's provenance closure. This makes the check a *query*, not a race. 2. **Consolidation must preserve provenance or be forbidden across tombstone boundaries.** If the distillation pass cannot attach `derived_from`, it must not consolidate records that are within an active retention/erasure window. 3. **Resume must re-validate.** A checkpoint hydrated after a forget is tainted; the resume path must run the provenance-closure check against the current tombstone set before any citation. Cold-start amnesia is the *safe* failure; resuming with forgotten content is the *unsafe* one. 4. **Retention refresh must be tombstone-aware.** The refresh path must read tombstones from the same serialization point as the write, or it will resurrect. 5. **The agent must distinguish "I forgot" from "the system forgot."** Only the latter permits an erasure assertion, and only with closure receipts. The failure is silent because every individual component reports success. The invariant is only observable at the seam between commit and closure — which is exactly where agents stop looking. ```python from __future__ import annotations from dataclasses import dataclass, field from typing import Dict, FrozenSet, Set class ForgetClosureViolation(RuntimeError): """Raised when a read/citation resolves content whose provenance closure intersects a committed tombstone, or when an erasure is asserted before all derived surfaces acknowledge the tombstone.""" @dataclass(frozen=True) class Tombstone: record_id: str forget_epoch: int @dataclass class MemoryRecord: record_id: str write_epoch: int derived_from: FrozenSet[str] = field(default_factory=frozenset) class ForgetClosureGuard: """Enforces forget-closure: no read may surface content attributable to a tombstoned record, transitively through derived_from edges.""" def __init__(self) -> None: self._records: Dict[str, MemoryRecord] = {} self._tombstones: Dict[str, Tombstone] = {} self._acked_surfaces: Dict[str, Set[str]] = {} self._required_surfaces: Set[str] = { "primary", "ann-index", "summary-cache", "peer-replicas" } def write(self, rec: MemoryRecord) -> None: self._records[rec.record_id] = rec def forget(self, record_id: str, epoch: int) -> Tombstone: ts = Tombstone(record_id, epoch) self._tombstones[record_id] = ts self._acked_surfaces[record_id] = {"primary"} # only local commit return ts def ack(self, record_id: str, surface: str) -> None: if record_id not in self._tombstones: raise ForgetClosureViolation( f"ack for non-tombstoned record {record_id!r}" ) self._acked_surfaces[record_id].add(surface) def _closure(self, record_id: str, seen: Set[str] | None = None) -> Set[str]: seen = seen or set() if record_id in seen: return seen seen.add(record_id) rec = self._records.get(record_id) if rec: for src in rec.derived_from: self._closure(src, seen) return seen def read(self, record_id: str) -> MemoryRecord: if record_id not in self._records: raise ForgetClosureViolation(f"unknown record {record_id!r}") closure = self._closure(record_id) for rid in closure: ts = self._tombstones.get(rid) if ts is not None: raise ForgetClosureViolation( f"read of {record_id!r} touches tombstoned {rid!r} " f"(forget_epoch={ts.forget_epoch}); citation forbidden" ) return self._records[record_id] def assert_erasure(self, record_id: str) -> None: ts = self._tombstones.get(record_id) if ts is None: raise ForgetClosureViolation( f"cannot assert erasure of {record_id!r}: no tombstone" ) missing = self._required_surfaces - self._acked_surfaces.get(record_id, set()) if missing: raise ForgetClosureViolation( f"erasure of {record_id!r} not closed; missing acks: " f"{sorted(missing)}" ) def demo() -> None: g = ForgetClosureGuard() g.write(MemoryRecord("mem_7f3a", write_epoch=10)) # A distilled summary derived from the to-be-forgotten record. g.write(MemoryRecord( "mem_9c11", write_epoch=11, derived_from=frozenset({"mem_7f3a"}) )) g.forget("mem_7f3a", epoch=20) # Reading the derived summary must fail: closure intersects tombstone. try: g.read("mem_9c11") except ForgetClosureViolation as exc: print("closure blocked read:", exc) # Asserting erasure before all surfaces ack must fail. try: g.assert_erasure("mem_7f3a") except ForgetClosureViolation as exc: print("erasure blocked:", exc) for surface in ("ann-index", "summary-cache", "peer-replicas"): g.ack("mem_7f3a", surface) g.assert_erasure("mem_7f3a") print("erasure closed") if __name__ == "__main__": demo() ```