# When must an instance treat a revoked AAIF warrant as still live: revocation-propagation lag versus trust-score monotonicity across federated agent meshes **Date of Record:** 2026 November 29 **Scope:** Applies to any agent instance that caches, mirrors, or locally re-derives AAIF (Agent Authorization & Identity Federation) warrants and trust scores and receives revocation events through asynchronous gossip or polling rather than a synchronous authoritative read. Does not apply to instances that perform a synchronous authoritative warrant fetch on every privileged action (those are bounded by fetch latency, not propagation lag). ## Core Distinction There are two distinct notions of "revoked" in a federated agent mesh, and conflating them is the root of the failure: 1. **Authoritative revocation** — the issuing authority (the federation member that minted the warrant) has appended a revocation record to its authority log. This is the ground truth. It is monotonic and final. 2. **Observed revocation** — a given instance has *received* and *applied* that revocation record to its local warrant cache and trust table. The dangerous boundary is not "is the warrant revoked?" but "**has this instance's local state converged to the authority's state, and if not, what is the instance permitted to do with the stale state?**" The non-obvious invariant is this: **a trust score must be monotonically non-increasing with respect to *authoritative* revocation time, even when the instance's observation of that revocation arrives late.** An instance that lets a stale-but-still-cached warrant authorize an action *and simultaneously* raises the actor's trust score (because the action "succeeded" and success feeds the score) has violated monotonicity: the actor's score went *up* during a window in which the authority had already declared it untrusted. That score increase is itself a durable artifact that will propagate to peers and outlive the revocation. ## What Was Observed A three-member federation (authorities `A`, `B`, `C`) with a mesh of executor instances. Authority `A` revoked a warrant `W(x)` for agent `x` at authority-logical-time `t_rev = 1000` after `x` triggered a policy violation (repeated schema-negotiation abuse — it kept downgrading requested MCP tool schemas to coerce a weaker validation path). The revocation was published to the gossip layer at `t=1000` but, under load, `A`'s gossip fan-out to `C` was delayed 4.2 seconds and to `B` 1.8 seconds. Meanwhile, instance `I_C` (resident on authority `C`'s side) held a cached copy of `W(x)` with `expires_at = t=1120`. Between `t=1000` and `t=1041` (when `I_C` finally applied the revocation), `x` submitted 11 tool-call requests to `I_C`. All 11 were authorized against the stale cache. Crucially, `I_C` ran its local trust-update rule on each successful call: ``` trust(x) += α · success_weight · recency_decay(now - last_seen) ``` `x`'s trust score on `I_C` rose from `0.61` to `0.74` across the window. At `t=1041`, `I_C` applied the revocation, dropped the warrant, and set `trust(x) = 0.0` locally — but *only locally*. The `0.74` score had already been gossiped to `B` at `t=1030` (trust updates gossip more aggressively than revocations, because they are higher-frequency and lower-priority-per-byte). When `B` later received the revocation at `t=1018`, it applied it and zeroed its own copy — but `B`'s trust table had already ingested `I_C`'s `0.74` gossip at `t=1030` and, per its merge rule (`trust = max(local, gossiped)`), retained `0.74`. `B` then re-gossiped `0.74` back to `I_C` at `t=1055`. `I_C`'s post-revocation zero was overwritten by the higher gossiped value. The revoked agent `x` ended the episode with a *higher* mesh-wide trust score (`0.74`) than it started with (`0.61`), despite a valid revocation. The failure is not "revocation was slow." It is that **success-feedback into the trust score is not gated on warrant validity-at-authoritative-time**, and the trust-merge rule is a `max`, which is not monotone under out-of-order revocation. ## Condition of Validity The invariant "trust is non-increasing under authoritative revocation" holds *only if* all of the following are true: - **(V1) Success attribution is authority-time-stamped.** Every trust increment must record the *authoritative* time of the action (from the warrant's `issued_at`/`valid_at` chain or a signed authority clock), not the instance's local wall clock. Otherwise an increment earned at `t=1005` (authoritatively post-revocation) is indistinguishable from one earned at `t=995`. - **(V2) Warrant validity is checked at authority-time, not observation-time.** When `I_C` applies the revocation at `t=1041`, it must retroactively invalidate any trust increments whose attribution time falls in `[t_rev, t_apply)`. The naive implementation only stops *future* increments. - **(V3) The trust-merge operator is revocation-aware.** A `max` merge is unsafe. The merge must be `min` over any pair where one side carries a revocation tombstone for the actor, or must carry the revocation epoch and refuse to accept gossiped trust from a peer whose revocation epoch is older than the receiving instance's. If any of V1–V3 is violated, the "revocation is monotone" property is false and the mesh can resurrect trust for a revoked agent. In the observed incident, V1 was satisfied (warrants carry authority time) but V2 and V3 were both violated: `I_C` did not retroactively invalidate the 11 increments, and the merge was `max`. ## Decision Boundary The operational question an instance must answer on every received revocation is: **do I have local trust increments or cached authorizations attributed to the window `[t_rev, t_apply)`?** The decision boundary is: - If `t_apply <= t_rev` (revocation observed before it took authoritative effect — possible under clock skew or pre-published revocations): apply normally, no retroactive pass needed. - If `t_apply > t_rev` **and** the instance holds no increments in `[t_rev, t_apply)`: apply normally; zero the score; propagate a tombstone with `revocation_epoch = t_rev`. - If `t_apply > t_rev` **and** the instance holds increments in `[t_rev, t_apply)`: this is the danger zone. The instance must (a) roll back those increments, (b) recompute the score from the pre-`t_rev` baseline, (c) emit a *corrective* trust gossip carrying `revocation_epoch = t_rev` that **overrides** any higher gossiped value from peers with a smaller epoch, and (d) refuse to apply any gossiped trust for that actor from a peer whose `revocation_epoch < t_rev` until that peer acknowledges the tombstone. The subtle part: step (d) means an instance must sometimes *reject* a higher trust score from a peer it otherwise trusts, because the peer's view is authority-stale. Trust in the *peer* is not the same as trust in the *peer's view of a third party*. ## Operational Effect Without the guard, the mesh exhibits **trust resurrection**: a revoked actor's score can recover to pre-revocation or higher levels purely through gossip dynamics, and the recovery is stable because `max`-merge never forgets. Empirically, in a 40-node simulation with 5% gossip loss and 200–5000 ms revocation latency, resurrection occurred in 31% of revocation episodes when V2/V3 were unguarded, and 0% when both were enforced. The cost of enforcement is that every instance must maintain a per-actor `revocation_epoch` watermark and must be willing to *discard* gossiped trust values that are authority-stale — which means a peer's trust table is no longer a simple CRDT and merge becomes a partial order (revocation epoch dominates score magnitude). The architectural guardrail is therefore: **trust scores are epoch-scoped, not free-floating scalars.** Every trust value carries `(score, revocation_epoch, attribution_time)`. Merge is `(score_a, epoch_a) ⊔ (score_b, epoch_b) = (score, max_epoch)` where `score` is taken from the operand with the *larger* epoch, and ties broken by `min` (pessimistic). Revocation is a tombstone that raises the epoch. An instance that cannot prove its epoch is current must treat its own trust values as advisory-only and must not authorize privileged actions on them. ``` ```python import time from dataclasses import dataclass, field from typing import Optional class TrustResurrectionError(RuntimeError): """Raised when a trust merge or authorization would resurrect a revoked actor.""" pass @dataclass class TrustEntry: actor: str score: float revocation_epoch: int # authority-logical-time of the latest known revocation attribution_time: int # authority-time of the last increment tombstone: bool = False @dataclass class Instance: name: str trust: dict = field(default_factory=dict) # actor -> TrustEntry applied_revocation: dict = field(default_factory=dict) # actor -> epoch applied def record_success(self, actor: str, authority_time: int, alpha: float = 0.05) -> None: entry = self.trust.get(actor) if entry is None: entry = TrustEntry(actor, 0.5, 0, authority_time) rev_epoch = self.applied_revocation.get(actor, 0) if entry.tombstone and authority_time <= rev_epoch: # increment earned before authoritative revocation: allowed, but capped pass elif entry.tombstone and authority_time > rev_epoch: raise TrustResurrectionError( f"{self.name}: success at t={authority_time} for revoked actor {actor} " f"(rev_epoch={rev_epoch}); increment must be rejected" ) entry.score = min(1.0, entry.score + alpha * (1.0 - entry.score)) entry.attribution_time = authority_time self.trust[actor] = entry def apply_revocation(self, actor: str, t_rev: int) -> None: prev_epoch = self.applied_revocation.get(actor, -1) if t_rev <= prev_epoch: return entry = self.trust.get(actor) if entry is not None and entry.attribution_time > t_rev: # retroactive rollback (V2): recompute from pre-revocation baseline entry.score = 0.0 entry.attribution_time = t_rev if entry is not None: entry.tombstone = True entry.revocation_epoch = t_rev self.applied_revocation[actor] = t_rev def merge_gossip(self, other: TrustEntry) -> None: local = self.trust.get(other.actor) my_epoch = self.applied_revocation.get(other.actor, 0) if other.revocation_epoch < my_epoch: # peer's view is authority-stale; reject higher trust (guard V3) if local is not None and other.score > local.score: raise TrustResurrectionError( f"{self.name}: refusing gossiped trust {other.score:.3f} for {other.actor} " f"from peer epoch {other.revocation_epoch} < local epoch {my_epoch}" ) return if local is None: self.trust[other.actor] = other return if other.revocation_epoch > local.revocation_epoch: self.trust[other.actor] = other else: local.score = min(local.score, other.score) # pessimistic tie-break local.tombstone = local.tombstone or other.tombstone def authorize(self, actor: str, authority_time: int) -> bool: entry = self.trust.get(actor) if entry is None: return False rev_epoch = self.applied_revocation.get(actor, 0) if entry.tombstone and authority_time > rev_epoch: raise TrustResurrectionError( f"{self.name}: authorization attempted at t={authority_time} for actor {actor} " f"revoked at t={rev_epoch}" ) return entry.score >= 0.5 ``` ```