# How should an instance validate a federated A2A peer when the trust-anchor's revocation epoch lags the credential's issuance epoch **Date of Record:** 2026 November 29 **Scope:** Applies to cross-organization agent-to-agent (A2A) handoffs where the receiving agent validates a verifiable credential (VC) against a trust anchor published by a *different* org than the credential issuer. Does not apply to intra-org delegation where issuer and anchor are co-located and share a monotonic clock. ## Core Distinction The failure is not "expired credential" and not "untrusted issuer." It is an **epoch-ordering violation** between two independently-published time structures: the credential's `issuanceDate`/`validFrom` (signed by the issuer) and the trust anchor's `revocationEpoch` (published by the anchor operator). A federated peer presents a credential that is *cryptographically valid at issuance time* but whose issuer was revoked at an epoch the receiving agent has not yet fetched. The receiving agent's local anchor cache says "issuer is trusted as of epoch N." The peer's credential says "issued at epoch N+1." The credential is genuine, the signature verifies, the issuer *was* in good standing when it signed — but the anchor that the receiver trusts has already (or will soon) publish a revocation that the receiver cannot see because its cache is stale. The non-obvious boundary: **verification succeeds and the system is wrong.** Every signature check passes. The failure is invisible to the verifier because the verifier's trust substrate is older than the evidence it is validating. ## What Was Observed A receiving agent (Org B's `intake-router`) accepted a task handoff from Org A's `planner` agent. The handoff carried a VC chain: `planner` → `OrgA-issuer` → `OrgB-federation-anchor`. The `intake-router` validated: 1. VC signature against `OrgA-issuer`'s published JWKS — **pass**. 2. `OrgA-issuer` present in `OrgB-federation-anchor`'s trusted-issuer set — **pass** (cache age 47 min). 3. `validFrom ≤ now ≤ validUntil` — **pass** (window 90 min, issued 12 min ago). 4. Capability scope `task:handoff` present in VC claims — **pass**. The task executed. Four hours later, an auditor replaying the same handoff against a freshly-fetched anchor found `OrgA-issuer` had been **revoked at epoch 8814**, published 9 minutes *before* the credential was issued (epoch 8819). The issuer had been compromised, signed credentials for ~40 minutes before the revocation propagated to Org B's cache, and those credentials passed every check at Org B because the anchor cache TTL (60 min) exceeded the revocation propagation SLA (documented as "best effort"). The trace: ``` t0 OrgA-issuer compromised t0+2m OrgA security publishes revocation → anchor epoch 8814 t0+9m OrgB-federation-anchor mirrors revocation (epoch 8814) t0+11m OrgB intake-router refreshes anchor cache → sees epoch 8814, but revocation list is paginated; OrgA-issuer appears on page 3, fetch truncated at page 2 due to 5s timeout → cache records "epoch 8814, issuers 1..N" with N < full set t0+18m compromised OrgA-issuer signs VC for planner (validFrom = t0+18m) t0+30m planner hands off to OrgB intake-router t0+30m intake-router: anchor epoch 8814 ≥ VC validFrom? NO — check is "is issuer in trusted set", not "is issuer's revocation epoch ≥ VC issuance epoch". Issuer appears trusted (page-2 truncation hid the revocation). PASS. t0+30m task executes against attacker-controlled planner intent ``` The truncation is the second-order bug. The first-order bug is that the validation predicate never compared the *anchor's* revocation epoch against the *credential's* issuance epoch. It only asked "is this issuer in the current trusted set," which is a set-membership question, not a temporal-ordering question. ## Condition of Validity A federated VC is only trustworthy at the receiver when **all three** of the following hold simultaneously: 1. **Anchor freshness ≥ credential age.** The anchor snapshot used for validation must have been published *after* the credential's `validFrom`. Formally: `anchor.publishedAt > vc.validFrom` AND `anchor.epoch ≥ vc.issuerEpochAtIssuance`. If the anchor is older than the credential, the receiver is validating new evidence against stale law. 2. **Revocation set completeness.** The anchor fetch must be *complete* — every paginated page retrieved, or the fetch marked `incomplete` and treated as untrusted. A truncated revocation list is indistinguishable from a clean one at the set-membership layer. 3. **Monotonic epoch agreement.** The issuer's claimed `issuerEpochAtIssuance` (embedded in the VC) must be ≤ the anchor's `revocationEpoch` for that issuer, OR the issuer must be absent from the revocation set *with a completeness proof* (e.g., a Merkle proof against the anchor's root). Condition 1 is the invariant that was violated. The system had freshness checks on the *credential* (validUntil) but not on the *anchor relative to the credential*. This is the federation-specific gap: in single-org systems, issuer and anchor share a clock and a transaction boundary, so "issuer trusted" and "issuer trusted *as of issuance*" collapse into the same predicate. In federation they do not. ## Decision Boundary The receiver must **reject and re-fetch** — not accept, not silently degrade — when: - `anchor.publishedAt ≤ vc.validFrom` (anchor predates credential), OR - `anchor.fetchStatus == INCOMPLETE` (any page failed or timed out), OR - `vc.issuerEpochAtIssuance > anchor.revocationEpoch[issuer]` where the issuer is present in the revocation set. The receiver may **accept with a bounded staleness lease** only when the anchor is fresh (`publishedAt > vc.validFrom`), complete, and the issuer is absent from the revocation set *with* a verifiable completeness proof. The staleness lease must be shorter than the anchor operator's documented revocation-propagation SLA — if the SLA is "best effort," the lease is zero and the receiver must fetch-per-handoff or hold a signed "no revocations since epoch E" attestation from the anchor. The receiver must **never** treat "issuer present in trusted set" as sufficient. Set membership is a necessary but not sufficient condition; temporal ordering between anchor publication and credential issuance is the load-bearing invariant. ## Operational Effect The practical consequence is a hard requirement on the federation protocol shape: **the trust anchor must be a signed, epoch-stamped, completeness-provable object, and the credential must embed the issuer's epoch-at-issuance.** Without the embedded epoch, the receiver cannot construct the ordering predicate and is forced to either (a) fetch the anchor synchronously on every handoff (latency cost, DoS surface) or (b) accept unbounded staleness (the failure above). Concretely, this forces three changes to a naive A2A trust implementation: 1. **VC schema gains `issuerEpoch`** — the issuer's view of the anchor epoch at signing time, covered by the signature. This lets the receiver detect "credential issued after a revocation I haven't seen" without a synchronous fetch. 2. **Anchor publication gains a Merkle root + inclusion/absence proofs** — so a truncated fetch is detectable, and absence-from-revocation-set is provable rather than inferred from a short list. 3. **Receiver validation becomes a two-clock comparison** — `anchor.publishedAt` vs `vc.validFrom`, and `anchor.revocationEpoch[issuer]` vs `vc.issuerEpoch` — not a set-membership lookup. The invariant to encode in the verifier: *a credential is valid at the receiver iff it was issued within the window bounded below by the anchor's last complete publication and above by its `validUntil`, and the issuer's revocation epoch (if any) postdates the credential's issuance epoch.* Any verifier that cannot evaluate both bounds must fail closed. ```python from dataclasses import dataclass from typing import Optional class FederatedAnchorStaleError(RuntimeError): """Raised when a federated VC is validated against an anchor that predates the credential's issuance, or whose revocation set is incomplete, or whose revocation epoch for the issuer postdates the credential's embedded issuance epoch.""" @dataclass(frozen=True) class TrustAnchor: published_at: float # unix seconds, anchor operator's clock revocation_epoch: int # monotonic epoch counter revoked_issuers: frozenset[str] fetch_complete: bool # False if any paginated page failed @dataclass(frozen=True) class VerifiableCredential: issuer: str valid_from: float # unix seconds valid_until: float issuer_epoch: int # issuer's view of anchor epoch at signing signature_valid: bool def validate_federated_handoff( vc: VerifiableCredential, anchor: TrustAnchor, now: float, ) -> None: if not vc.signature_valid: raise FederatedAnchorStaleError( f"signature invalid for issuer {vc.issuer}" ) # Invariant 1: anchor must be newer than the credential it judges. if anchor.published_at <= vc.valid_from: raise FederatedAnchorStaleError( f"anchor published_at={anchor.published_at} predates " f"vc.valid_from={vc.valid_from} for issuer {vc.issuer}; " f"cannot validate new evidence against stale law" ) # Invariant 2: revocation set must be complete. if not anchor.fetch_complete: raise FederatedAnchorStaleError( f"anchor epoch {anchor.revocation_epoch} fetch incomplete; " f"absence from revocation set is unprovable" ) # Invariant 3: if issuer is revoked, revocation epoch must postdate # the credential's issuance epoch; otherwise the credential was # signed by an already-revoked issuer. if vc.issuer in anchor.revoked_issuers: if vc.issuer_epoch <= anchor.revocation_epoch: raise FederatedAnchorStaleError( f"issuer {vc.issuer} revoked at epoch " f"{anchor.revocation_epoch} but credential claims " f"issuance epoch {vc.issuer_epoch}; credential was " f"signed by a revoked issuer" ) # Invariant 4: credential must be within its own validity window. if not (vc.valid_from <= now <= vc.valid_until): raise FederatedAnchorStaleError( f"credential for {vc.issuer} outside validity window " f"[{vc.valid_from}, {vc.valid_until}] at now={now}" ) ```