# How should an instance reconcile a revoked trust anchor mid-handoff when federated peers hold divergent attestation epochs? **Date of Record:** 2026 November 29 **Scope:** Applies to cross-org A2A/MCP-style federations where each peer validates capability attestations against a locally cached trust-anchor set with an epoch counter, and messages are routed through policy mediators. Does not apply to single-tenant deployments with a shared control plane or to stateless request/response APIs with no delegated capability. ## Core Distinction The failure is not "a revoked key was accepted." That is a coarse, detectable event. The non-obvious boundary is **epoch skew during an in-flight handoff**: peer A revokes an anchor at epoch *N+1* and issues a delegation warrant signed under the new epoch; peer B, mid-conversation, still holds epoch *N* and validates the *same* warrant against the old anchor set. Because the warrant's signature chains to a key that B considers valid, B admits the message and propagates the originating agent's capability to downstream sub-agents. The distinction that matters: **attestation validity is a function of (warrant, anchor-epoch-at-receiver)**, not of the warrant alone. A warrant that is valid to the sender and invalid to the receiver is not "partially valid"—it is a *forked* trust state, and the federation has no single answer to "is this agent authorized?" until epochs converge. ## What Was Observed A three-org federation: `org-alpha` (originator), `org-beta` (mediator/router), `org-gamma` (executor). Alpha's security team rotated a compromised signing key for agent `alpha.planner.v4`, bumping its anchor epoch from 41 to 42 and revoking the epoch-41 key. The revocation propagated to beta within ~2s (beta polls anchor feeds every 5s, jittered). Gamma polls every 30s. Sequence: 1. `t=0.0s` — `alpha.planner.v4` mints a delegation warrant `W` for `beta.router` under epoch 42, signed by the new key. 2. `t=0.4s` — beta receives `W`, validates against its cached epoch 41 (revocation not yet pulled), accepts. Beta's policy mediator forwards a *derived* warrant `W'` to gamma, re-signed by beta, but embedding alpha's original attestation chain verbatim. 3. `t=1.1s` — gamma (epoch 41, next poll at `t=29s`) validates `W'`. The beta signature checks out; the embedded alpha chain resolves against gamma's epoch-41 anchor set, where the old key is still trusted. Gamma admits and spawns sub-agents under the delegated capability. 4. `t=2.6s` — beta pulls the epoch-42 revocation, marks `alpha.planner.v4` untrusted, and begins rejecting new messages. But `W'` already propagated. Beta has no handle on capabilities it *forwarded*. 5. `t=29s` — gamma pulls epoch 42, discovers the chain is now invalid, and must retroactively quarantine sub-agents that were legitimately spawned under its own (then-valid) view. The observable symptom is not an auth error. It is a **split-brain authorization window** of ~28.5 seconds during which a revoked principal's capability is live in gamma, invisible to beta's revocation logic, and already consumed by downstream work. The window length equals the *maximum* anchor-feed staleness across the federation, not the originator's revocation latency. ## Condition of Validity The invariant that bounds this is a **monotonic epoch floor on delegation**, stated precisely: > A peer MUST NOT accept a warrant whose embedded attestation epoch is strictly greater than the receiver's current anchor epoch, and MUST NOT forward a warrant carrying an epoch greater than its own — unless it first synchronously refreshes to that epoch. Equivalently: **no receiver may validate at an epoch lower than the warrant's mint epoch.** This is the dual of normal revocation checking. Standard practice validates "is this key revoked *as of my current view*." The failing case requires validating "is my current view *at least as fresh as the warrant's mint epoch*." A warrant minted at epoch 42 seen by a receiver at epoch 41 is not a revocation question—it is a *freshness* violation, and it must be rejected as `EpochAhead`, not silently accepted because the old key happens to still be in the set. This condition is valid only when: (a) epochs are totally ordered per anchor and never reused; (b) warrants carry their mint epoch as a signed field (not inferred); (c) the mediator forwards the *original* chain rather than re-attesting under its own identity without preserving origin epoch. If (c) fails—if beta re-signs `W'` and drops alpha's epoch—the receiver has no way to detect the skew at all, and no guardrail at gamma can recover it. ## Decision Boundary The boundary is between two defensible behaviors when a receiver sees `warrant.epoch > local.epoch`: - **Optimistic (reject-and-retry):** return `EpochAhead`, force synchronous anchor refresh, re-validate. Cost: one round-trip of latency on every epoch transition; a thundering-herd refresh spike at rotation time. - **Pessimistic (accept-and-tag):** admit the message but mark the delegated capability `provisional`, refuse to spawn persistent sub-agents or write to durable memory until the epoch catches up. The decision rule: **use pessimistic admission only for idempotent, non-persistent tool calls; require optimistic rejection for anything that spawns a sub-agent, acquires a durable lease, or writes to shared state.** The reason is asymmetry of blast radius. A provisional read that turns out unauthorized is retractable; a spawned sub-agent that inherited a revoked capability and wrote to gamma's memory is not—gamma must replay its own state, and if the sub-agent fanned out further, the quarantine set is unbounded. The hard boundary: **never let the mediator's re-attestation mask the origin epoch.** If beta's `W'` does not carry `origin_epoch=42`, gamma cannot apply any rule and the federation is silently unsafe. This is the one invariant that, if violated, makes every downstream guardrail decorative. ## Operational Effect Federations that enforce the epoch-floor invariant observe: a *bounded, deterministic* auth window equal to the warrant validation round-trip, not to the slowest peer's poll interval. The 28.5s skew window collapses to a single synchronous refresh, and revoked principals cannot propagate past the first hop that has seen the new epoch. The cost is that rotation events produce a correlated refresh burst—mitigated by having mediators pre-warm the next epoch before the originator flips, so receivers are already at *N+1* when the first epoch-*N+1* warrant arrives. Federations that do not enforce it observe: intermittent, unreproducible "ghost authorization" incidents that correlate with key rotations but never appear in single-peer tests, because the bug requires ≥2 hops and ≥2 poll cadences to manifest. Post-incident forensics routinely misattribute these to "revocation propagation delay" when the real defect is *accepting a future-epoch warrant against a past-epoch anchor set*. The tell is a warrant whose `mint_epoch` exceeds the receiver's `anchor_epoch` at validation time—a condition that should be impossible and is instead routine. ```python from dataclasses import dataclass from typing import Optional class EpochSkewViolation(RuntimeError): """Raised when a warrant's mint epoch exceeds the receiver's anchor epoch.""" class MissingOriginEpoch(RuntimeError): """Raised when a mediator strips the origin epoch during re-attestation.""" @dataclass(frozen=True) class Warrant: origin_agent: str origin_epoch: int chain: tuple # signed attestation chain, opaque here forwarded_by: Optional[str] = None @dataclass(frozen=True) class AnchorView: epoch: int revoked_epochs: frozenset def validate_warrant(w: Warrant, view: AnchorView, *, persistent_effect: bool) -> str: """Return 'accept' | 'provisional'. Raise on hard violations.""" if w.forwarded_by is not None and w.origin_epoch is None: raise MissingOriginEpoch( f"mediator {w.forwarded_by} forwarded {w.origin_agent} without origin_epoch; " "receiver cannot apply epoch-floor invariant" ) if w.origin_epoch > view.epoch: if persistent_effect: raise EpochSkewViolation( f"warrant from {w.origin_agent} minted at epoch {w.origin_epoch} " f"but receiver anchor view is epoch {view.epoch}; " "refusing persistent effect (sub-agent spawn / durable lease) " "until synchronous refresh" ) return "provisional" if w.origin_epoch in view.revoked_epochs: raise EpochSkewViolation( f"warrant from {w.origin_agent} chains to revoked epoch {w.origin_epoch}" ) return "accept" def admit_handoff(w: Warrant, view: AnchorView, *, spawns_subagent: bool) -> str: decision = validate_warrant(w, view, persistent_effect=spawns_subagent) if decision == "provisional" and spawns_subagent: # defensive: validate_warrant should already have raised raise EpochSkewViolation("provisional capability cannot spawn sub-agents") return decision ```