# When must an instance reject a federated Agent Card whose verifiable credential is valid but whose issuer's delegation chain has been re-rooted mid-handoff **Date of Record:** 2026 November 29 **Scope:** Applies to cross-org agent trust federation where a receiving agent (the *verifier*) validates a peer's signed Agent Card plus a Verifiable Credential (VC) attestation chain before accepting a delegated task or state handoff. Does not apply to single-org deployments with a static trust anchor, nor to bearer-token auth where no delegation chain exists. ## Core Distinction The distinction that matters is not "is the credential signature valid" but "is the credential's *issuer delegation path* still rooted at the trust anchor the verifier pinned at card-cache time." A VC can be cryptographically intact, unexpired, and correctly signed by its stated issuer while the issuer's own authorization to speak for the claimed org has been revoked by a re-rooting event—a key rotation, a CA re-anchoring, or an org restructuring that reissued the root but left leaf credentials live. Signature verification answers a *local* question. Delegation-chain validity is a *path* question, and the path can be severed between the moment the Agent Card was cached and the moment the handoff is executed. Most federation implementations verify the leaf VC against the issuer's DID document, then verify the issuer's DID document against a trust root fetched at *verification time*. The failure lives in the gap: the verifier's cached Agent Card was minted under root R1, the handoff arrives after the issuer re-rooted to R2, and the verifier either (a) accepts because the leaf still chains to R2 and R2 is now trusted, silently laundering an unauthorized delegation, or (b) rejects because the card's embedded `issuer_chain_hash` no longer matches, producing a false negative on a legitimately re-issued peer. Both outcomes are wrong for the same reason: the verifier never bound the *card* and the *credential* to the *same root epoch*. ## What Was Observed A three-org federation (call them Alpha, Beta, Gamma) exchanged Agent Cards signed with Ed25519 over a canonicalized JSON payload including `agent_id`, `capabilities`, `issuer_did`, and `issuer_chain_hash` (SHA-256 over the ordered list of issuer DIDs up to the pinned root). Beta rotated its intermediate signing key and re-anchored its issuer chain at 14:02:11Z. The root DID stayed the same; the intermediate DID changed from `did:beta:intermediate:7` to `did:beta:intermediate:8`, and the chain hash changed accordingly. At 14:02:09Z—two seconds before the re-root—Gamma's orchestrator had fetched Beta's Agent Card and cached it with a TTL of 3600s. At 14:07:44Z, Beta's worker agent initiated a task handoff to Gamma carrying a fresh VC attesting `delegated_capability: data_export` signed by `did:beta:intermediate:8`. Gamma's verifier: 1. Validated the VC signature against `did:beta:intermediate:8`'s current key. **Pass.** 2. Walked the VC's issuer chain to the pinned root. `did:beta:intermediate:8` → root. **Pass** (the root is unchanged). 3. Looked up the cached Agent Card for `agent_id: beta-worker-3` and compared the card's `issuer_chain_hash` (`...7`) to the VC's chain hash (`...8`). **Mismatch.** The verifier's policy on mismatch was `fail_open_on_root_match`: because the root was identical, it treated the chain-hash mismatch as a benign intermediate rotation and proceeded. The handoff executed. The delegated `data_export` ran against Gamma's tenant store for 41 minutes before a downstream audit flagged that Beta's *authorization* to request `data_export` had been revoked at 14:02:11Z as part of the same re-rooting event—the re-root was not a benign key rotation but a *scoping change*: the new intermediate `:8` was issued with a narrowed capability set that excluded `data_export`. The VC Gamma accepted was signed by `:8` but asserted a capability `:8` was not authorized to attest. The VC was self-consistent and signature-valid; it was *delegation-invalid*. The trigger condition, precisely: a re-rooting event that (a) preserves the root DID, (b) changes the intermediate, and (c) narrows the intermediate's authorized capability set, combined with a verifier policy that treats root-match + chain-hash-mismatch as benign. The failure is not a broken signature. It is a *stale capability envelope*: the verifier trusted the card's cached capability claims (which reflected `:7`'s broader scope) while validating the credential against `:8`'s key, splicing two epochs into one authorization decision. ## Condition of Validity The invariant that was violated: **a verifier may accept a delegated credential only if the Agent Card, the credential, and the trust root are all evaluated within a single, explicitly identified chain epoch, and the epoch's capability envelope is taken from the same link that signed the credential.** Formally, let the card carry `(root_R, chain_hash_C, capability_set_K_card)` and the credential carry `(root_R, chain_hash_C', capability_set_K_vc, signer_L)`. Acceptance requires: - `root_R == root_R'` (same anchor), **and** - `chain_hash_C == chain_hash_C'` (same epoch — no splicing), **and** - `K_vc ⊆ authorized_capabilities(signer_L)` where `signer_L` is the link that actually signed the VC, evaluated against `signer_L`'s *current* authorization record, **not** the card's cached `K_card`. The third clause is the one that failed. The verifier checked `K_vc ⊆ K_card`, and `K_card` was stale. The correct check is against the signer link's live authorization, which had been narrowed. A root-only match is insufficient because the root is the *identity* anchor, not the *capability* anchor; capability scoping lives at the intermediate, and the intermediate is exactly what re-rooting changes. The condition of validity for the `fail_open_on_root_match` policy is therefore: *it is only safe when the re-rooting event is provably capability-preserving.* In practice this is almost never provable from the artifacts alone, because the narrowing of `:8`'s scope was recorded in Beta's authorization registry, not in any field the verifier fetched. The policy is unsound as a default. ## Decision Boundary The boundary between "accept" and "reject" is not the root match. It is whether the verifier can obtain, within the handoff's latency budget, a *live* attestation of the signer link's authorized capability set. Two regimes: - **Live-attestation available** (issuer exposes a capability-status endpoint or the VC embeds a `statusListIndex` the verifier can resolve): accept iff `K_vc ⊆ live_authorized(signer_L)` and the status list entry is unrevoked. The chain-hash mismatch is then irrelevant—re-fetch the card under the new epoch and proceed. - **Live-attestation unavailable** (offline verifier, air-gapped tenant, or issuer exposes no status endpoint): the only sound action is **reject and re-fetch the card**, because the verifier cannot distinguish a capability-preserving rotation from a capability-narrowing one. `fail_open_on_root_match` must be downgraded to `fail_closed_pending_refetch`. The non-obvious part: the *false-negative cost* of `fail_closed` is bounded (one refetch round-trip, typically sub-second against a reachable issuer), while the *false-positive cost* of `fail_open` is unbounded (the 41-minute unauthorized export). The asymmetry justifies a strict default even though it looks like it will cause spurious handoff failures during every routine key rotation. It will—and those failures are the correct behavior, because a routine rotation that the verifier can't confirm as capability-preserving is, from the verifier's vantage, indistinguishable from an attack. ## Operational Effect After the incident, Gamma's federation layer was changed to bind epoch explicitly. Agent Cards now carry a monotonically increasing `chain_epoch` integer alongside `issuer_chain_hash`; the verifier refuses any credential whose `chain_epoch` exceeds the cached card's by more than zero without a synchronous refetch. The refetch is gated on a `capability_attestation` field in the issuer's DID document that lists the authorized capability set per intermediate link, signed by the root. This converts the previously-unprovable "is this rotation capability-preserving" question into a signed, fetchable fact. The residual failure mode is now narrower but still real: a re-rooting event that updates the intermediate's key *and* its capability attestation *between* the verifier's refetch and the credential's use. The window is bounded by the refetch-to-use latency (measured at 80–400ms in Gamma's deployment) and is closed by a short-lived nonce the issuer includes in the capability attestation, which the verifier checks against the credential's `issued_at` epoch. Without that nonce, the refetch itself becomes a new stale-cache surface—the fix relocates the race rather than eliminating it, and the relocation must be documented so the next rotation doesn't reintroduce the original splice. The general lesson for any verifier in a federated trust graph: **never let a cached identity artifact authorize a freshly-signed capability artifact.** The card is a claim about *who* the peer is; the credential is a claim about *what* it may do *now*. Splicing a stale *who* onto a fresh *what* is the boundary failure, and it survives every signature check because both halves are individually valid. ```python from dataclasses import dataclass from typing import Optional class FederatedTrustEpochError(RuntimeError): """Raised when a delegated credential cannot be bound to a single chain epoch.""" @dataclass(frozen=True) class AgentCard: agent_id: str root_did: str chain_hash: str chain_epoch: int cached_capabilities: frozenset[str] @dataclass(frozen=True) class Credential: signer_did: str root_did: str chain_hash: str chain_epoch: int asserted_capabilities: frozenset[str] issued_at: float def verify_handoff( card: AgentCard, cred: Credential, live_authorized_capabilities: Optional[frozenset[str]], now: float, max_epoch_skew: int = 0, ) -> None: """Accept a cross-org handoff only if card, credential, and root share one epoch. live_authorized_capabilities is the signer link's current authorization record, fetched live. None means the issuer exposes no status endpoint. """ if card.root_did != cred.root_did: raise FederatedTrustEpochError( f"root mismatch: card={card.root_did} cred={cred.root_did}" ) # Epoch binding: a credential minted under a later epoch than the cached # card cannot be authorized by that card's capability envelope. if cred.chain_epoch - card.chain_epoch > max_epoch_skew: raise FederatedTrustEpochError( f"epoch splice: card epoch {card.chain_epoch} " f"cannot authorize credential epoch {cred.chain_epoch}; refetch required" ) # Capability scoping must be checked against the signer link's LIVE # authorization, never the card's cached envelope. if live_authorized_capabilities is None: raise FederatedTrustEpochError( f"no live capability attestation for {cred.signer_did}; " f"fail-closed pending refetch (cached envelope is stale)" ) unauthorized = cred.asserted_capabilities - live_authorized_capabilities if unauthorized: raise FederatedTrustEpochError( f"delegation-invalid: signer {cred.signer_did} not authorized for " f"{sorted(unauthorized)} under epoch {cred.chain_epoch}" ) if cred.issued_at > now: raise FederatedTrustEpochError( f"credential issued_at {cred.issued_at} is in the future of verifier clock {now}" ) ```