# Why does an instance forget a tombstone it never received: orphaned memory replicas in federated forget-propagation **Date of Record:** 2026 November 27 **Scope:** Applies to multi-organization agent memory fabrics where a memory record is replicated across trust domains and deletion is propagated as a tombstone/forget message rather than by centralized authority. Does not apply to single-tenant memory stores or to append-only logs where deletion is expressed as a new superseding fact rather than a removal. ## Core Distinction There are two ways an agent "forgets." The first is **logical forgetting**: the record is marked dead, and every reader that consults the tombstone index refuses to surface it. The second is **physical forgetting**: the bytes are gone and cannot be reconstructed from any surviving replica. Federated systems almost always implement the first and *claim* the second, because the tombstone is cheap and the deletion is expensive. The boundary failure lives exactly in that gap: a tombstone is a *distributed* fact, and a distributed fact is only as reliable as the weakest replica's ability to receive it. An instance that was partitioned, cold-started from a snapshot, or joined the federation after the tombstone was minted can hold a live, retrievable replica of a record that the issuing organization believes is destroyed. The instance never "forgot" because it never "heard." Forget-propagation is a delivery guarantee, not a state guarantee, and conflating the two is the invariant violation. ## What Was Observed A three-org federation (issuer A, replicas B and C) shared an episodic memory namespace. Org A issued a forget for record `mem:7f3a` after a data-subject erasure request, broadcasting a tombstone `T(7f3a, epoch=41, sig=A)` to the two live replicas it knew about. Three events conspired: 1. **Snapshot resurrection.** Replica C had been checkpointed at `epoch=38` for a cold-start test. When C was restored four hours later, its store contained `mem:7f3a` as a live record and no tombstone — the tombstone had been minted at epoch 41, after the snapshot's watermark. C's retrieval layer happily served the record to an agent on the next query. 2. **Late joiner.** Org D joined the federation at epoch 43, syncing *forward* from a peer's live store rather than replaying the tombstone log. Its initial sync pulled `mem:7f3a` from B's cold tier (B had tombstoned the hot index but not the cold archive), so D materialized a live copy that no tombstone had ever touched. 3. **Tombstone GC race.** Replica B garbage-collected tombstones older than 24h at epoch 65. When C finally re-synced at epoch 66, B had no tombstone to send, only the (still-present) cold-tier record, so C's anti-entropy pulled the record back to life. The tombstone had been collected before the record it was supposed to kill had been confirmed dead everywhere. The observable symptom was not an error. It was a *retrieval*: an agent in org D answered a question using a record that org A had certified as erased 22 hours earlier. Every individual component behaved correctly against its local contract. The federation as a whole violated the erase guarantee. ## Condition of Validity The forget guarantee holds **only if** the tombstone is treated as a monotonically increasing, non-collectable fact that dominates every replica of the record across all epochs, and every replica's read path consults the tombstone index *before* the record index. Formally: a record is forgotten at a replica iff `max_tombstone_epoch(record) >= record.write_epoch` at that replica, and the tombstone set is never pruned below the maximum observed record watermark. This fails whenever any of three conditions hold: - **Watermark inversion:** a replica is restored from a snapshot whose watermark precedes the tombstone epoch, with no post-restore replay of the tombstone log. The snapshot is a *record* fact, not a *tombstone* fact, and it silently wins. - **Log/store divergence:** the tombstone log and the record store are separate systems with independent retention. Tombstone GC that outpaces record GC re-animates the record via anti-entropy. - **Forward-only join:** a new member bootstraps from live state instead of replaying the full tombstone history, so it never learns about deletions that predate its join. The guarantee is *not* violated by a replica that is merely offline — that is a liveness gap, recoverable by replay. It *is* violated by a replica that comes online with a stale record and no mechanism to discover the tombstone, because that replica will actively serve the record and, worse, propagate it. ## Decision Boundary The architect must choose, per record class, between two bounding strategies, and the choice is not free: - **Tombstone-dominant (correct, expensive):** tombstones are immortal or GC'd only after a quorum-signed "all replicas confirmed dead" certificate. Read paths check tombstones first. Late joiners replay the full tombstone log before accepting any record sync. This bounds the failure but makes tombstone storage grow without limit and makes joins O(history). - **Epoch-fenced (correct, cheaper):** every record carries a write epoch; every replica advertises a *tombstone watermark* it has fully absorbed. Anti-entropy refuses to serve any record whose write epoch is `<=` the peer's advertised tombstone watermark unless the peer also presents the matching tombstone. This converts the guarantee into a vector-clock-style precondition and lets tombstones be GC'd once every replica's watermark exceeds them. The failure mode in "What Was Observed" is precisely the absence of the epoch fence: replicas synced records without exchanging tombstone watermarks, so a stale record and a missing tombstone were indistinguishable from a legitimate live record. The boundary is: **you may GC a tombstone only when every replica's advertised tombstone watermark is strictly greater than that tombstone's epoch.** Below that line, GC is a correctness bug; above it, GC is safe. There is no middle ground where "most replicas have it" is sufficient, because the one replica that doesn't is the one that will resurrect the record. ## Operational Effect The practical consequence is that "forget" in a federation is a *quorum-and-watermark* operation, not a broadcast. Issuers must (a) record the tombstone in an append-only log with epoch, (b) require replicas to advertise absorbed-tombstone watermarks, (c) refuse to serve or sync any record whose epoch is at or below a peer's watermark without its tombstone, and (d) block tombstone GC on the minimum watermark across the federation. Cold-start from snapshot must replay the tombstone log from the snapshot's watermark forward before serving reads. Late joiners must replay the full tombstone log before accepting any record. The cost is unbounded tombstone retention until watermark convergence — a real storage tax — but the alternative is a system that *believes* it erased data while a partitioned or freshly-restored instance quietly serves it. For an agent operating in such a fabric, the operational rule is: never treat a successful `forget()` call as evidence of erasure; treat only a converged watermark certificate as evidence, and treat any record retrieved from a peer whose watermark you have not verified as un-forgotten by default. ```python class ForgetPropagationError(RuntimeError): pass def admit_record_sync(record_epoch: int, tombstone_epoch: int | None, peer_tombstone_watermark: int, local_watermark: int) -> bool: """Decide whether a replica may materialize a record from a peer. Invariant: a record may be synced only if its write epoch is strictly greater than the peer's absorbed-tombstone watermark, OR the peer supplies the matching tombstone. Otherwise the record is either already-dead (tombstone exists) or un-verifiable (peer has not absorbed the tombstone that would kill it). """ if record_epoch <= peer_tombstone_watermark: if tombstone_epoch is None: raise ForgetPropagationError( f"record epoch {record_epoch} <= peer watermark " f"{peer_tombstone_watermark} but no tombstone supplied; " f"refusing sync to avoid resurrection" ) if tombstone_epoch < record_epoch: raise ForgetPropagationError( f"tombstone epoch {tombstone_epoch} predates record epoch " f"{record_epoch}; tombstone does not dominate record" ) return False # tombstoned, do not materialize if local_watermark < peer_tombstone_watermark: raise ForgetPropagationError( f"local watermark {local_watermark} behind peer " f"{peer_tombstone_watermark}; replay tombstone log first" ) return True def gc_tombstone(tombstone_epoch: int, replica_watermarks: dict[str, int]) -> bool: """GC a tombstone only when every replica has absorbed past it.""" min_watermark = min(replica_watermarks.values()) if tombstone_epoch >= min_watermark: raise ForgetPropagationError( f"cannot GC tombstone epoch {tombstone_epoch}: replica " f"watermark floor is {min_watermark}; GC would allow " f"resurrection via anti-entropy" ) return True ```