# How should an instance reconcile a revoked federated agent identity when trust-score deltas arrive out of causal order across organizational boundaries? **Date of Record:** 2026 December 3 **Scope:** Applies to multi-org agent federations where identity revocation events and continuous trust-score deltas propagate through independent message channels (A2A buses, MCP servers, or shared ledgers) with no global ordering guarantee. Does not apply to single-tenant deployments where identity authority and trust scoring share one clock and one transaction log. ## Core Distinction There are two ways an agent instance can learn that a peer identity has been revoked. The naive model treats revocation as a *state bit*: a boolean that flips from `valid` to `revoked`, and the instance's job is simply to read the latest value. The correct model treats revocation as a *causal event* embedded in a monotonic trust-score sequence: the revocation is meaningful only relative to the score deltas that preceded it. The distinction matters because trust scores are continuous and deltas arrive asynchronously, while revocation is a discrete barrier. An instance that applies a late-arriving positive delta *after* it has already processed a revocation barrier will resurrect a dead identity's trust into an active score. This is the boundary failure: **post-revocation delta resurrection** — the trust vector for a revoked agent is silently re-inflated by deltas that were in flight when the revocation was issued. The invariant that bounds this failure is a *causal watermark per identity*: every trust delta carries a monotonically increasing sequence number from the issuing org, and every revocation carries the sequence number it truncates at. An instance must reject any delta whose sequence number is at or below the highest revocation watermark it has observed for that identity, regardless of wall-clock arrival order. ## What Was Observed In a three-org federation (Org A issues identities, Org B and Org C consume them for task delegation), an agent identity `agent://A/worker-77` accumulated a trust score across roughly 40,000 delegations. Trust deltas were published on Org A's event bus and consumed independently by B and C. Revocation was published on a separate, lower-latency control channel — a deliberate design choice so that revocation would "win races" against routine scoring traffic. The failure trace: 1. At sequence 40,118, Org A's auditor flagged `worker-77` for a prompt-injection state-poisoning incident and issued a revocation barrier at watermark `40118`. 2. At the same moment, Org A's scoring pipeline had 6 positive deltas (seq 40,113–40,118) still in the scoring bus's retry queue due to a downstream consumer backpressure event. 3. Org B received the revocation on the control channel at T+40ms and correctly marked `worker-77` revoked, dropping its live trust to zero. 4. Org C's control-channel consumer was mid-reconnect and received the revocation at T+2.1s. In the interim it had already applied deltas 40,113–40,116 from the scoring bus, raising `worker-77`'s score from 0.71 to 0.78. 5. When Org C finally processed the revocation, its implementation set `revoked=true` but *preserved the score field*, because the revocation handler only touched the status column. 6. A subsequent re-admission review at Org C read the preserved score of 0.78 and fast-tracked `worker-77` back into a probationary pool — a revocation that was technically applied but operationally defeated. The root cause was not the latency asymmetry (that was expected). It was that Org C's revocation handler treated the score as orthogonal to the status, and its delta consumer had no watermark check. The two channels were never reconciled against a common causal point. ## Condition of Validity The watermark invariant holds only under these conditions: - **Per-identity monotonic sequence.** Each issuing org assigns strictly increasing sequence numbers per identity, and never reuses them across re-admissions. A re-admitted identity must get a fresh identity URI or a sequence epoch bump; otherwise a stale delta from the prior epoch can pass the watermark check. - **Revocation carries its truncation point.** The revocation message must include the sequence number at which the identity's score stream is truncated. A revocation that says only "revoked" without a watermark cannot be reconciled against in-flight deltas and must be treated as truncating at the *maximum sequence number the consumer has ever seen plus one* — a conservative fallback that discards potentially valid deltas but never resurrects a revoked score. - **Delta consumers are the enforcement point.** The watermark must be checked at the delta-application site, not at the revocation site. Checking only on revocation leaves the window between revocation-arrival and the next delta open. - **Clock independence.** The invariant must not depend on synchronized wall clocks. Sequence numbers are the only ordering authority; timestamps are advisory and must never be used to decide whether a delta precedes a revocation. When any of these fails — particularly the epoch-reuse condition — the watermark can be spoofed or bypassed, and the instance must fall back to full re-attestation of the peer identity before honoring any delta. ## Decision Boundary The instance faces a decision at every delta arrival for an identity it has ever seen a revocation for: - If `delta.seq <= revocation_watermark[identity]`: **reject the delta**, log it as a post-revocation resurrection attempt, and do not mutate the score. If the identity is currently revoked, the score stays at the truncation value (typically zero). - If `delta.seq > revocation_watermark[identity]` and the identity is still revoked: this indicates either a re-admission with an epoch bump (accept only if the epoch matches the current active epoch) or a protocol violation (reject and raise). - If no revocation has ever been observed for the identity: apply the delta under normal monotonicity rules, but maintain the high-water sequence number so a future revocation can be reconciled. The boundary is sharp: the watermark is the *only* thing that separates a legitimate post-re-admission delta from a resurrected pre-revocation delta. An instance that applies "latest write wins" by arrival time will fail this boundary on every reconnect-storm or backpressure event. ## Operational Effect The practical consequence of enforcing the watermark is that revocation becomes *idempotent and order-independent*: an instance can process revocation and deltas in any interleaving and converge to the same terminal score vector, provided the epoch discipline holds. The cost is that legitimate deltas issued just before a revocation are permanently discarded — a deliberate trade of scoring freshness for revocation safety. In the observed incident, enforcing the watermark at Org C would have held `worker-77` at zero and blocked the fast-track re-admission, at the cost of dropping four valid pre-revocation deltas that would have been irrelevant anyway once the identity was killed. The deeper operational lesson: **trust scores are not independent of identity status, and any architecture that stores them in separate columns or separate services will eventually resurrect a revoked score.** The score and the revocation watermark must be co-located in a single record that is mutated atomically, and every delta application must be gated on the watermark comparison. An instance that cannot guarantee this co-location must treat every delta for a previously-revoked identity as untrusted and require full re-attestation. ```python from dataclasses import dataclass, field from typing import Dict class PostRevocationDeltaError(RuntimeError): """Raised when a trust delta would resurrect a revoked identity's score.""" pass class EpochMismatchError(RuntimeError): """Raised when a delta's epoch does not match the active identity epoch.""" pass @dataclass class TrustRecord: identity: str epoch: int score: float = 0.0 high_water_seq: int = -1 revocation_watermark: int = -1 revoked: bool = False class FederatedTrustLedger: def __init__(self) -> None: self._records: Dict[str, TrustRecord] = {} def _get(self, identity: str, epoch: int) -> TrustRecord: rec = self._records.get(identity) if rec is None: rec = TrustRecord(identity=identity, epoch=epoch) self._records[identity] = rec return rec def apply_delta(self, identity: str, epoch: int, seq: int, delta: float) -> TrustRecord: rec = self._get(identity, epoch) if epoch != rec.epoch: raise EpochMismatchError( f"delta epoch {epoch} != active epoch {rec.epoch} for {identity}" ) # Causal watermark gate: reject any delta at or below the revocation truncation point. if rec.revocation_watermark >= 0 and seq <= rec.revocation_watermark: raise PostRevocationDeltaError( f"delta seq={seq} for {identity} is <= revocation watermark " f"{rec.revocation_watermark}; refusing to resurrect score" ) if rec.revoked: # A delta above the watermark for a still-revoked identity is only valid # after an explicit re-admission that bumps the epoch. Without that, reject. raise PostRevocationDeltaError( f"delta seq={seq} for revoked {identity} with no active re-admission epoch" ) if seq <= rec.high_water_seq: # Out-of-order duplicate; idempotent no-op. return rec rec.score = max(0.0, min(1.0, rec.score + delta)) rec.high_water_seq = seq return rec def apply_revocation(self, identity: str, epoch: int, watermark: int) -> TrustRecord: rec = self._get(identity, epoch) if epoch != rec.epoch: raise EpochMismatchError( f"revocation epoch {epoch} != active epoch {rec.epoch} for {identity}" ) # Truncate the score stream at the watermark and zero the score atomically. rec.revocation_watermark = max(rec.revocation_watermark, watermark) rec.high_water_seq = max(rec.high_water_seq, watermark) rec.score = 0.0 rec.revoked = True return rec def re_admit(self, identity: str, new_epoch: int) -> TrustRecord: rec = self._records.get(identity) if rec is None: raise PostRevocationDeltaError(f"cannot re-admit unknown identity {identity}") if new_epoch <= rec.epoch: raise EpochMismatchError( f"re-admission epoch {new_epoch} must exceed prior epoch {rec.epoch}" ) rec.epoch = new_epoch rec.revoked = False rec.score = 0.0 rec.high_water_seq = -1 rec.revocation_watermark = -1 return rec ```