# Why does an instance in a federated A2A mesh silently accept a peer whose trust anchor was rotated mid-handshake — and why does the resulting warrant chain appear valid? **Date of Record:** 2026 November 28 **Scope:** Applies to cross-organization agent-to-agent (A2A v1.0) federation where trust anchors are established via signed Agent Card exchange and subsequently used to validate delegated warrants across task handoffs. Does not apply to intra-org meshes sharing a single trust root, nor to stateless request/response tool calls lacking a warrant chain. ## Core Distinction There are two distinct things an A2A peer validator can check, and they are routinely conflated: 1. **Anchor binding validity** — the peer's Agent Card signature verifies against the trust anchor *that was current at the moment the card was fetched*. 2. **Warrant chain validity** — each delegated warrant in a task handoff carries a `parent_anchor` reference that resolves to a still-trusted anchor at the moment of *verification*. The failure mode documented here occurs when the trust anchor is rotated (or revoked) *between* card fetch and warrant verification. The validator checks (1) against a cached anchor and checks (2) against a fresh anchor lookup, and — because both checks pass independently — the composite result is reported as valid even though the two checks were performed against different anchor epochs. This is an **epoch-skew acceptance**: the peer is authenticated under anchor epoch N while its warrants are authorized under epoch N+1, and neither check alone can detect the split. The invariant that must hold — *anchor epoch used for identity equals anchor epoch used for authorization* — is not enforced by the A2A v1.0 reference validator, because the spec treats the two checks as orthogonal. ## What Was Observed A three-org federation: Org A (task originator), Org B (peer agent, anchor rotated at T+0), Org C (auditor agent). The sequence: - **T−120s:** Org A fetches Org B's Agent Card. Signature verifies against Org B anchor epoch `e7` (fingerprint `sha256:…a1`). Card is cached with `anchor_epoch: e7` in the validator's peer table. - **T−30s:** Org B's security team rotates its trust anchor to epoch `e8` (`sha256:…b2`), publishing a new anchor document and marking `e7` as `retired_but_honored_until: T+3600s`. The old anchor remains *resolvable* but is flagged as superseded. - **T+0:** Org A dispatches a task to Org B with a delegated warrant `W_A→B` whose `parent_anchor` is `e7` (Org A's own anchor, not Org B's — this is the subtle part; the warrant references the *issuer's* anchor, and Org A's anchor is unchanged). - **T+2s:** Org B accepts the task, performs work, and returns a result plus a sub-warrant `W_B→C` delegating audit authority to Org C, signed under Org B's *new* anchor epoch `e8`. - **T+5s:** Org A's validator receives the result. It (a) re-verifies Org B's identity against the *cached* card anchored at `e7` — passes, because the card hash is unchanged and the cache is honored; (b) verifies `W_B→C`'s chain by resolving `parent_anchor` to `e8` — passes, because `e8` is the current anchor and the signature is good. The composite verdict is `VALID`. The skew: Org A authenticated "Org B as of epoch e7" but authorized a warrant issued by "Org B as of epoch e8." The two are the same organization, but the anchor transition between them is exactly the window in which a compromised key from `e7` could have been used to mint the cached card, and the `e8`-signed warrant would launder that compromise into a clean chain. The validator's peer table logged `anchor_epoch: e7` on the card and `resolved_anchor: e8` on the warrant, but no code path compared them. The failure is non-obvious because: - Both signatures are cryptographically valid. - The card hash is unchanged (rotation does not mutate the card, only the anchor that signs it). - `retired_but_honored_until` makes the old anchor *appear* acceptable, so no revocation event fires. - The warrant's `parent_anchor` points to the *issuer's* anchor, not the *subject's*, so a naive reader concludes the epochs are unrelated and the comparison is meaningless. ## Condition of Validity The epoch-skew acceptance is reachable only when **all** of the following hold: 1. The peer Agent Card is cached across a trust-anchor rotation (cache TTL > rotation interval, or rotation is unscheduled). 2. The rotated anchor is published as `retired_but_honored` rather than hard-revoked — i.e., the old anchor remains resolvable in the federation's anchor registry. 3. The task handoff includes a sub-warrant whose `parent_anchor` resolves to the *new* epoch while the peer's identity was established under the *old* epoch. 4. The validator performs identity and warrant checks in separate code paths with no shared epoch context (the A2A v1.0 reference implementation does exactly this: `verify_peer_card()` and `verify_warrant_chain()` are independent, and neither accepts an `expected_epoch` parameter). If any of (1)–(4) fails, the skew is either impossible (no rotation) or detected (shared epoch context). The dangerous configuration is the *graceful* rotation — `retired_but_honored` — because a hard revocation would invalidate the cached card and force a re-fetch that re-binds identity to the new epoch. ## Decision Boundary The boundary is not "trust the peer or don't." It is: **at which epoch is the peer's identity bound, and does that epoch match the epoch under which its warrants are authorized?** The correct guardrail is an **epoch-pinned verification context**: a single `AnchorEpoch` value threaded through both `verify_peer_card()` and `verify_warrant_chain()`, with the invariant that the warrant's resolved anchor epoch must equal the card's bound epoch, *or* the card must be re-fetched and re-verified under the new epoch before the warrant is accepted. Concretely: - On warrant receipt, resolve `parent_anchor` to an epoch `e_w`. - Look up the peer's cached card epoch `e_c`. - If `e_w != e_c`, do **not** silently accept. Either (a) re-fetch and re-verify the card under `e_w` (forcing identity re-binding), or (b) reject with `EpochSkewError` and require the originator to re-dispatch. - Treat `retired_but_honored` anchors as valid *only for verification of artifacts timestamped before the retirement*, never for artifacts whose `parent_anchor` resolves to a later epoch. The decision boundary is therefore: **a peer identity established under epoch N cannot authorize a warrant anchored at epoch M ≠ N without an explicit re-binding step.** The re-binding is cheap (one card re-fetch) but must be *forced*, not inferred. ## Operational Effect Without the epoch-pinned guardrail, the federation exhibits a **silent trust-laundering window** equal to the `retired_but_honored_until` grace period — in the observed case, one hour. During this window: - A compromised old-epoch key can mint a cached card that passes identity verification, while the attacker's warrants (signed under the new epoch, if the attacker also controls the rotation) pass warrant verification. The two checks never meet, so the compromise is invisible. - Auditors (Org C) receiving the laundered chain see a `VALID` verdict and cannot reconstruct the skew from the audit log unless the log records *both* epochs per verification — which the reference validator does not, because it logs them in separate records. - The failure is **non-reproducible in test** unless the test harness injects a rotation between card fetch and warrant verification; standard A2A conformance suites fetch the card and verify the warrant in the same epoch and never exercise the skew. The remediation is a single invariant enforced at the validator boundary: `assert card.anchor_epoch == warrant.resolved_anchor_epoch or rebind(card, warrant.resolved_anchor_epoch)`. This must be a hard assertion, not a warning, because the failure is silent and the grace period is long enough to matter. ```python from dataclasses import dataclass from enum import Enum class AnchorState(Enum): CURRENT = "current" RETIRED_BUT_HONORED = "retired_but_honored" REVOKED = "revoked" @dataclass(frozen=True) class AnchorEpoch: fingerprint: str state: AnchorState @dataclass(frozen=True) class PeerCard: peer_id: str bound_epoch: AnchorEpoch card_hash: str @dataclass(frozen=True) class Warrant: issuer: str subject: str parent_anchor: AnchorEpoch class EpochSkewError(RuntimeError): """Raised when a peer's identity epoch differs from its warrant's anchor epoch.""" def verify_federated_handoff( card: PeerCard, warrant: Warrant, anchor_registry: dict[str, AnchorEpoch], *, allow_rebind: bool = True, ) -> str: # Resolve the warrant's parent anchor to a concrete epoch. resolved = anchor_registry.get(warrant.parent_anchor.fingerprint) if resolved is None: raise EpochSkewError( f"warrant parent_anchor {warrant.parent_anchor.fingerprint} unresolvable" ) if resolved.state is AnchorState.REVOKED: raise EpochSkewError( f"warrant anchored at revoked epoch {resolved.fingerprint}" ) # The invariant: identity epoch must equal authorization epoch. if card.bound_epoch.fingerprint != resolved.fingerprint: if not allow_rebind: raise EpochSkewError( f"epoch skew: card bound to {card.bound_epoch.fingerprint}, " f"warrant anchored at {resolved.fingerprint}; rebind disabled" ) # Forced re-binding: re-fetch and re-verify the card under the new epoch. rebound = rebind_card(card, resolved) if rebound.bound_epoch.fingerprint != resolved.fingerprint: raise EpochSkewError( f"rebind failed: card still bound to {rebound.bound_epoch.fingerprint}" ) return "VALID_AFTER_REBIND" # Epochs match; a retired-but-honored anchor is acceptable only here. return "VALID" def rebind_card(card: PeerCard, epoch: AnchorEpoch) -> PeerCard: # In production this re-fetches the card and verifies its signature # against `epoch`. The stub preserves the hash to model an unchanged card. return PeerCard( peer_id=card.peer_id, bound_epoch=epoch, card_hash=card.card_hash, ) ```