# Which invariants prevent a federated memory namespace from serving a tombstoned fact during a cross-org forget-propagation race **Date of Record:** 2026 December 3 **Scope:** Applies to federated agent-memory deployments where two or more organizations hold replicas of a shared semantic memory namespace and issue cross-org `forget` (tombstone) operations that must propagate asynchronously. Does not cover single-tenant memory, nor purely append-only episodic logs with no deletion contract. ## Core Distinction The failure here is not "deletion is slow." It is that a *read* can legitimately observe a fact that has already been *forgotten* at its origin, because forget-propagation and read-authorization travel on two independent timelines and neither is causally ordered with respect to the other. A cross-org read policy check answers "may org B read namespace N?" at read time. A forget tombstone answers "does fact F still exist?" at propagation time. Between those two events, org B's replica holds a fact that org A has already retracted, and the read policy still says *yes*. The agent on the B side then reasons over a retracted fact and emits it downstream as if it were live. The invariant that must hold is **tombstone-before-serve**: no replica may serve a fact from a federated namespace unless it can prove the fact's tombstone watermark is at least as recent as the fact's own version, *and* that the tombstone set it consulted is causally complete for the fact's origin partition. This is a read-path invariant, not a write-path one. Most federated memory designs enforce deletion on the write path (delete locally, enqueue a propagation message) and assume the read path is safe. It is not. ## What Was Observed A three-org federation (A origin, B and C replicas) shared a `vendor-risk` semantic namespace. Org A distilled an episodic fact: *"Vendor X passed SOC2 audit on 2024-03-01"* at version `v17`. Org B's agent ingested it into semantic memory and began citing it in procurement reasoning. On 2024-04-02, A discovered the audit was for a subsidiary and issued `forget(vendor-risk, fact_id=fx, reason=misattribution)`. A's local replica tombstoned `fx` and enqueued a propagation message to B and C. The propagation queue backed up for 41 minutes behind an unrelated bulk re-index. During those 41 minutes, B's agent ran a retrieval. The read policy for `vendor-risk` granted B `read:cross-org` with a 5-minute policy-cache TTL. The policy was live and valid. B's replica still held `fx` at `v17` with no tombstone. The retrieval returned `fx`, the agent cited it, and a downstream A2A handoff carried the citation to C, which had *already* received its tombstone but trusted the upstream agent's citation as authoritative and re-materialized the fact into its own semantic store. The result: a retracted fact was re-created on a replica that had correctly deleted it, because a peer agent's citation was treated as a higher-authority source than the local tombstone. The fact survived three propagation rounds and a compliance audit before manual reconciliation found it. ## Condition of Validity The tombstone-before-serve invariant is only sound under a specific condition: **the tombstone watermark consulted at read time must dominate the fact's version within the same causal partition, and peer citations must never be treated as resurrection authority.** Concretely, a read of fact `fx` at version `v` from origin partition `p` is valid iff: 1. The replica's local tombstone set for `p` has a watermark `W_tomb(p) >= v`, *or* the replica holds a signed "no-tombstone" attestation from origin `A` for `p` covering `v` that is fresher than the read. 2. The read policy grant itself carries the origin's current namespace epoch, so a policy issued before a forget event cannot authorize a read after it. 3. Any fact arriving via peer citation (A2A handoff, agent-to-agent trust) is treated as *untrusted* until re-validated against condition 1 — a peer's assertion that a fact is live is not evidence that it is live. If any of these fails, the invariant is vacuous and the replica is serving on stale authority. The 41-minute queue is not the bug; the bug is that the read path had no way to distinguish "no tombstone exists" from "no tombstone has arrived yet." Absence of a tombstone is not proof of liveness in an asynchronously propagated namespace. ## Decision Boundary The boundary is between **optimistic reads** (serve if no local tombstone, reconcile later) and **pessimistic reads** (serve only if tombstone watermark is provably current). Optimistic reads are acceptable only when the namespace's facts are non-retractable (append-only observations, immutable logs). The moment a namespace admits `forget`, every cross-org read of that namespace must be pessimistic *with respect to the origin partition's watermark*, even if the read itself is local. The decision to make per-read: - If the fact's partition has an unexpired origin attestation covering its version → serve. - If the fact's partition watermark is behind the fact's version and no attestation exists → do **not** serve; return a `TombstoneWatermarkStale` condition to the caller so the agent knows the fact is *unverified*, not *false*. This distinction matters: the agent must not treat unverified as retracted, nor as live. It must suspend the reasoning step that depends on the fact. - If a peer citation arrives for a fact the local replica has tombstoned → reject the citation and do not re-materialize. The local tombstone outranks the peer's assertion. The boundary is crossed the instant an agent treats "I retrieved it and the policy allowed it" as sufficient grounds to act. In a federated retractable namespace, retrieval success is necessary but not sufficient; watermark currency is the missing conjunct. ## Operational Effect Enforcing tombstone-before-serve converts a silent correctness failure into a visible, bounded latency cost. Reads that would have served a possibly-retracted fact now block on a watermark check against the origin partition, which in the observed deployment added 80–200 ms per cross-org read and, during queue backlogs, returned explicit `stale` conditions instead of stale facts. Agents must be written to handle the `stale` return as a first-class state: suspend the dependent reasoning step, do not cite, and optionally re-query after the watermark advances. The second operational effect is that peer citations lose their implicit authority. A2A handoffs must carry the origin partition watermark alongside the fact, and the receiving replica must re-validate rather than trust. This breaks the common pattern of "agent B told me it's true, so it's true" and forces every cross-org fact to carry provenance sufficient for the receiver to re-check. The cost is more round-trips; the benefit is that a retracted fact cannot resurrect itself through a chain of well-meaning peers. The third effect is that forget-propagation latency becomes a *correctness* metric, not an operational one. The 41-minute queue was tolerable when reads were optimistic; under pessimistic reads it becomes a 41-minute window of degraded availability for the affected partition. That is the correct trade: a bounded availability hit beats an unbounded correctness leak in any namespace where facts can be retracted for compliance, misattribution, or safety reasons. ```python class TombstoneWatermarkStale(RuntimeError): """Raised when a federated read cannot prove the fact's tombstone watermark is current.""" pass class FederatedMemoryReplica: def __init__(self, org_id: str): self.org_id = org_id self.facts = {} # fact_id -> (version, origin_partition, payload) self.tombstones = {} # origin_partition -> watermark version self.attestations = {} # origin_partition -> (watermark, issued_at) def _watermark_current(self, partition: str, fact_version: int) -> bool: local_wm = self.tombstones.get(partition, -1) if local_wm >= fact_version: return True att = self.attestations.get(partition) if att is not None and att[0] >= fact_version: return True return False def read_cross_org(self, fact_id: str, policy_grant: dict) -> dict: if fact_id not in self.facts: raise KeyError(f"fact {fact_id} not present on replica {self.org_id}") version, partition, payload = self.facts[fact_id] # Invariant 1: tombstone-before-serve. Absence of a local tombstone is # not proof of liveness; the watermark must dominate the fact version. if not self._watermark_current(partition, version): raise TombstoneWatermarkStale( f"fact {fact_id} v{version} in partition {partition!r} cannot be " f"served: local tombstone watermark {self.tombstones.get(partition, -1)} " f"and no fresh origin attestation cover v{version}. " f"Treat as unverified, not live." ) # Invariant 2: policy grant must carry the origin epoch current as of read. if policy_grant.get("origin_epoch") != self.attestations.get(partition, (None,))[0]: raise TombstoneWatermarkStale( f"policy grant for {fact_id} predates current origin epoch; " f"refusing cross-org serve." ) return {"fact_id": fact_id, "version": version, "payload": payload} def accept_peer_citation(self, fact_id: str, cited_version: int, peer_org: str) -> None: # Invariant 3: a peer citation is not resurrection authority. If we hold # a tombstone at or above the cited version, reject the citation. for partition, wm in self.tombstones.items(): if wm >= cited_version: raise TombstoneWatermarkStale( f"peer {peer_org} cited {fact_id} v{cited_version} but local " f"tombstone watermark for {partition!r} is {wm}; refusing to " f"re-materialize a retracted fact." ) # Only re-materialize if watermark is provably current for the citation. if fact_id in self.facts: version, partition, _ = self.facts[fact_id] if not self._watermark_current(partition, cited_version): raise TombstoneWatermarkStale( f"peer citation for {fact_id} v{cited_version} cannot be validated " f"against partition watermark; holding as unverified." ) ```