# How does an instance detect a revoked trust anchor during a live peer capability exchange in cross-org agent federation **Date of Record:** 2026 November 26 **Scope:** Applies to federated multi-agent systems where autonomous instances from distinct administrative domains establish peering through signed capability grants anchored to a root trust anchor (org CA or equivalent), and where those grants are cached across turns. Does not apply to single-tenant intra-org agent meshes where all peers share one trust root and revocation is broadcast synchronously. ## Core Distinction The failure is not "an agent used an expired credential." That is trivially caught by clock comparison. The failure is that **capability grants are dual-state artifacts**: they carry a *validity window* (time-bounded, locally checkable) and a *revocation status* (event-driven, only knowable by querying the issuer's revocation surface). A federated instance that caches a peer's capability grant for performance will, by construction, hold grants that are *time-valid but revocation-stale*. The instance has no local signal that its cached view is wrong—the signature verifies, the clock is inside the window, the scope string matches the requested action. Every local check passes. The grant is dead. The non-obvious part: the requesting agent cannot detect this by inspecting the grant it holds. Detection requires an out-of-band liveness probe against the *anchor's* revocation endpoint, and that probe must be keyed to the anchor's epoch, not to wall-clock TTL. A TTL-based cache refresh is a probabilistic approximation of revocation propagation and will always have a window of silent violation bounded by the TTL, not by the revocation event. ## What Was Observed A three-org federation: `org-alpha` (coordinator agent `A1`), `org-beta` (worker agent `B7`), `org-gamma` (auditor agent `G2`). `B7` holds a capability grant `cap:write:ledger` issued by `org-beta`'s anchor `CA-beta`, scoped to be redeemable by `A1`. `A1` cached this grant at handshake and re-presents it each turn without re-querying `CA-beta`. At T+40min, `org-beta`'s security team revoked `B7`'s grant (key compromise suspicion) and published the revocation to `CA-beta`'s CRL endpoint, epoch `E=1187`. `B7`'s local grant object was untouched—revocation is a *relying-party* responsibility, not a holder responsibility. `A1` continued to accept `B7`'s outputs as ledger-authoritative for 22 minutes (the cache TTL), during which `B7`—now operating on a compromised key—emitted three forged ledger entries. The auditor `G2`, which queried `CA-beta`'s revocation endpoint on every verification (no cache), *flagged* the entries as untrusted at T+41min. `A1` and `G2` disagreed about `B7`'s trustworthiness for 21 minutes while both were "correct" relative to their own cache policy. The divergence was not a bug in either agent's verification logic. It was a **cache-policy mismatch across the federation** that produced a split-brain trust view. `A1` had no way to know `G2` was fresher, and `G2` had no way to force `A1`'s cache to invalidate. ## Condition of Validity A cached capability grant is safe to redeem only if one of the following holds: 1. The grant carries a **revocation epoch** (`rev_epoch`) and the relying party has confirmed the anchor's current epoch is `<= rev_epoch` (monotonic epoch check, not TTL). 2. The grant is **short-lived enough** that its validity window closes before any plausible revocation-propagation delay—i.e., `grant.ttl < revocation_propagation_bound`, and the bound is a *contractual* value published by the anchor, not a guess. 3. The action is **reversible or idempotent** and downstream reconciliation will catch a revoked-grant redemption within the reconciliation window. Absent all three, the grant is being redeemed on *faith*, and the faith window is the cache TTL. The invariant that must hold for federation correctness: > For every capability redemption, the relying party's view of the issuer's revocation epoch must be no older than the issuer's declared `max_staleness`. If the relying party cannot prove its view is within `max_staleness`, it must treat the grant as *indeterminate* and either re-probe or fail closed—never silently redeem. The subtlety: `max_staleness` is a property of the *anchor*, not the relying party. An instance cannot unilaterally decide its cache is "fresh enough." It must read the anchor's declared bound and compare. If the anchor does not publish one, the federation has no revocation invariant and the relying party must fail closed on any grant older than its own conservative floor. ## Decision Boundary The boundary between "safe to redeem from cache" and "must re-probe" is not a time threshold—it is an **epoch comparison**: - If `cached_grant.rev_epoch == anchor.current_epoch()` → redeem. The grant was issued at or after the last revocation sweep; nothing has been revoked since. - If `cached_grant.rev_epoch < anchor.current_epoch()` → the anchor has swept revocations since issuance. The relying party must fetch the delta between `cached_grant.rev_epoch` and `anchor.current_epoch()` and check whether the grant's serial appears. If the delta fetch fails (network partition, anchor down), the grant is **indeterminate**, not valid. - If the anchor is unreachable and the grant's remaining validity window exceeds `max_staleness` → fail closed. Do not redeem on the theory that "no news is good news." Revocation endpoints are the news; their absence is not a positive signal. The failure mode we observed was a fourth, illegitimate state: `cached_grant.rev_epoch < anchor.current_epoch()` AND the relying party did not check, because its cache policy was TTL-based and the TTL had not elapsed. The TTL is orthogonal to the epoch. This is the core error: **TTL is a proxy for freshness that does not track the actual freshness signal (epoch advancement).** A revocation can advance the epoch at any moment; a TTL cannot know. ## Operational Effect The federation must treat the anchor's epoch as the *only* freshness signal for revocation, and every relying party must carry the last-seen epoch alongside the cached grant. On redemption: 1. Compare `last_seen_epoch` to a cheaply-fetched `anchor.current_epoch()` (a signed monotonic counter, cacheable for seconds, not minutes). 2. If equal → redeem. 3. If advanced → fetch revocation delta, check serial, update `last_seen_epoch`, redeem or reject. 4. If anchor unreachable and `now - last_epoch_fetch > max_staleness` → raise, do not redeem. This converts the 22-minute silent-violation window into a bounded `max_staleness` window (typically seconds), and—critically—makes the window *visible*: an instance that cannot reach the anchor knows it is in an indeterminate state and can escalate to the auditor rather than proceeding on faith. The auditor's fresher view becomes actionable because the coordinator's staleness is now a *reported condition*, not an invisible assumption. The guardrail is a state machine on the grant object: `FRESH → STALE → INDETERMINATE → REJECTED`, with transitions driven by epoch comparison, never by wall-clock alone. An instance that finds itself in `INDETERMINATE` must not redeem; it must emit a `TrustIndeterminate` condition to the federation's auditor channel and await either anchor reachability or explicit operator override. The override must be logged with the epoch gap it waived—so the post-incident review can reconstruct exactly how much trust was extended on faith. ``` ```python import time from dataclasses import dataclass, field from enum import Enum class TrustIndeterminate(RuntimeError): """Raised when a capability grant cannot be proven fresh against the anchor's revocation epoch.""" pass class GrantState(Enum): FRESH = "fresh" STALE = "stale" INDETERMINATE = "indeterminate" REJECTED = "rejected" @dataclass class CapabilityGrant: serial: str issuer_anchor: str rev_epoch: int # anchor epoch at issuance not_after: float # wall-clock validity end (secondary check only) @dataclass class AnchorView: current_epoch: int fetched_at: float max_staleness: float # declared by anchor, seconds revoked_serials: set = field(default_factory=set) class FederatedRelyingParty: def __init__(self, anchor_fetch): # anchor_fetch(anchor_id) -> AnchorView | None (None = unreachable) self._anchor_fetch = anchor_fetch self._last_view: dict[str, AnchorView] = {} def _view(self, anchor_id: str) -> AnchorView | None: v = self._anchor_fetch(anchor_id) if v is not None: self._last_view[anchor_id] = v return v if v is not None else self._last_view.get(anchor_id) def redeem(self, grant: CapabilityGrant, now: float | None = None) -> GrantState: now = now if now is not None else time.time() if now > grant.not_after: return GrantState.REJECTED view = self._view(grant.issuer_anchor) if view is None: raise TrustIndeterminate( f"anchor {grant.issuer_anchor} unreachable and no prior view; " f"cannot establish revocation epoch for grant {grant.serial}" ) age = now - view.fetched_at if age > view.max_staleness: raise TrustIndeterminate( f"anchor {grant.issuer_anchor} view age {age:.1f}s exceeds " f"max_staleness {view.max_staleness:.1f}s; grant {grant.serial} " f"is indeterminate, not valid" ) if grant.serial in view.revoked_serials: return GrantState.REJECTED if grant.rev_epoch == view.current_epoch: return GrantState.FRESH if grant.rev_epoch < view.current_epoch: # Anchor swept since issuance; delta must have been checked above # via revoked_serials. If serial absent, grant survives the sweep. return GrantState.FRESH # rev_epoch > current_epoch: anchor went backwards -> clock/rollback attack raise TrustIndeterminate( f"grant {grant.serial} rev_epoch {grant.rev_epoch} ahead of anchor " f"epoch {view.current_epoch}; possible rollback or forged anchor view" ) ```