# When must an instance reject a peer's memory write despite a valid provenance chain: the revocation-epoch gap at federated commit **Date of Record:** 2026 November 24 **Scope:** Applies to federated agent-memory systems where instances exchange distilled memory records carrying signed provenance chains and where revocation is published as monotonically ordered epoch records. Does not apply to single-tenant memory stores, nor to systems where revocation is enforced by synchronous central authority at every read. ## Core Distinction A memory record's *provenance chain* answers "who asserted this, through what derivation, and was each link authorized at signing time." A *revocation epoch* answers "is that authorization still live now." These are orthogonal facts, and federated designs routinely conflate them by validating provenance at write-admission time and then treating the admitted record as permanently trustworthy. The boundary failure lives in the window between the two: a record can arrive with a fully valid, signature-verified provenance chain whose terminal authorization was revoked at the origin instance *before the record left the wire*, yet the receiving instance admits it because its local revocation view lags by one gossip interval. The record is not forged. Every signature verifies. The chain is intact. It is simply *stale-authorized* — and it will now be served to local agents as semantic memory, where it silently poisons downstream reasoning until the next epoch reconciliation, which may never revisit already-admitted records. The invariant that must hold: **admission is not a one-time predicate over provenance; it is a predicate over provenance conjoined with the revocation state at the origin's commit epoch, and that epoch must be carried inside the record envelope and checked against a local floor.** Without the epoch, the receiver cannot distinguish "authorized and current" from "authorized and since revoked." ## What Was Observed A three-instance federation (origin `A`, relay `B`, consumer `C`) shared episodic-to-semantic distilled memories. `A` distilled a semantic record `m` from an agent session, signed a provenance chain `P = [session→distill→sign_A]`, and pushed `m` to `B` and `C` over A2A. Revocation at `A` was published as epoch records `E_k` gossiped on a 30s interval. The observed sequence: 1. `A` distills `m`, signs `P`, stamps envelope with `origin_epoch = 41`, pushes to `B` and `C`. 2. At `A`, an operator revokes the source authorization (the underlying agent credential was found compromised). `A` commits revocation epoch `E_42` locally and begins gossip. 3. `C` receives `m` at t+4s. `C`'s local revocation floor is still `41` (gossip of `E_42` has not arrived). `C` checks `origin_epoch (41) >= local_floor (41)` → admits `m` into semantic memory. Signatures verify; provenance chain is complete. 4. `E_42` reaches `C` at t+27s. `C` raises its floor to `42`. **But `C`'s admission path only checks the floor on *incoming* records.** `m` is already in the semantic store, indexed, and being retrieved by local agents. 5. Retrieval at `C` serves `m` for the remainder of the task. Downstream agents act on a revoked memory. The revocation "succeeded" at `A` and "propagated" to `C`, yet the memory remained live. The failure was not in gossip latency (a bounded, expected cost). It was that the epoch floor was enforced only at the admission gate and never re-evaluated against resident records. The system had a *point-in-time* revocation check masquerading as a *continuity* invariant. ## Condition of Validity The gap is realizable only when all of the following hold, which is the common case in asynchronous federated designs: - Revocation is published as an ordered epoch stream, not a synchronous callback, so receivers necessarily have a lagging floor. - Memory records are admitted into a *resident* store (semantic distillation, embedding index, cache) rather than re-fetched per use, so admission and use are temporally separated. - The provenance chain is validated against signing-time authorization, and the record envelope either omits the origin commit epoch or the receiver compares it with a `>=` rather than a strict reconciliation that also sweeps residents. When revocation is synchronous (every read consults the origin) or when records are non-resident (re-validated per retrieval), the gap collapses. It also does not arise when the origin stamps the envelope with the revocation epoch *after* commit and the receiver rejects any record whose `origin_epoch` is below its floor *and* re-sweeps residents on floor advance. ## Decision Boundary The precise boundary: a record with `origin_epoch = k` is admissible at a receiver with floor `f` iff `k >= f` **and** the receiver's floor is guaranteed to be `>=` the origin's commit epoch at the moment of the record's *use*, not merely its admission. Since the receiver cannot know the origin's commit epoch at use time without re-contacting the origin, the only sound construction is: **on any floor advance from `f` to `f'`, the receiver must re-evaluate every resident record with `origin_epoch < f'` and quarantine those whose terminal authorization is covered by the new epoch.** Admission without a sweep is unsound whenever `f' > f` can occur after admission — which, under gossip, is always. Equivalently: the guardrail is a *monotone sweep invariant* — the resident store must never contain a record whose `origin_epoch` is below the current floor. Admission is necessary but not sufficient; the floor advance is the load-bearing event, and it must be a write that invalidates residents, not just a counter bump. ## Operational Effect Systems that enforce the floor only at admission exhibit *revocation leakage*: revoked memories persist in semantic stores and embedding indexes, are retrieved by agents, and contaminate reasoning chains with no error signal — the failure is silent because every signature is valid. The blast radius scales with the gossip interval times retrieval rate: a 30s lag on a busy consumer can serve a revoked memory across hundreds of retrievals before the next epoch even arrives, and indefinitely if no sweep runs. The corrective architecture is to treat the revocation floor as a *store-wide invariant* maintained by a sweep on every floor advance, to carry `origin_epoch` inside the signed envelope (so it cannot be stripped by a relay), and to quarantine rather than delete on sweep so that replay audits can reconstruct what was served during the gap. Without the sweep, provenance verification is a signature check on a corpse. ```python class RevocationEpochGapError(RuntimeError): """Raised when a resident memory record's origin epoch falls below the receiver's current revocation floor and no sweep has quarantined it.""" def admit_record(record, local_floor): # Provenance chain is assumed signature-verified upstream. if record.origin_epoch < local_floor: raise RevocationEpochGapError( f"record {record.id} origin_epoch={record.origin_epoch} " f"< local_floor={local_floor}; reject at admission" ) return record def advance_floor_and_sweep(store, new_floor): """Load-bearing invariant: floor advance must invalidate residents.""" if new_floor < store.floor: raise RevocationEpochGapError( f"floor regression {store.floor} -> {new_floor}; epochs are monotone" ) store.floor = new_floor leaked = [r for r in store.resident if r.origin_epoch < new_floor] for r in leaked: store.quarantine(r) # not delete: preserve for replay audit return leaked def serve(store, query): hits = store.retrieve(query) for r in hits: if r.origin_epoch < store.floor and not store.is_quarantined(r): # Resident record survived a floor advance without sweep. raise RevocationEpochGapError( f"serving revoked memory {r.id}: origin_epoch={r.origin_epoch} " f"< floor={store.floor}; sweep invariant violated" ) return hits ```