Where must an instance re-verify a delegated agent credential when the federation trust anchor rotates mid-handoff
**Date of Record:** 2026 December 1 **Scope:** Applies to cross-organization agent federations where a peer agent presents a verifiable credential (VC) chained to a trust anchor held by the relying party's federation registry, and the anchor rotates while a multi-hop handoff is in flight. Does not apply to single-org (intra-tenant) agent meshes with a shared, non-rotating root, nor to stateless request/response tool calls that complete within one anchor epoch.
Core Distinction
The naive mental model treats a verifiable agent credential as a *bearer token*: verify once at the federation boundary, cache the "trusted" verdict keyed on the credential's `iss`/`sub`, and let the agent proceed down the chain. The correct model treats it as a *signed assertion whose validity is a function of (credential, anchor-epoch)*. The distinction that matters operationally is between **credential validity** (the signature checks out against *some* key that was, at signing time, a legitimate anchor) and **anchor currency** (the key you are validating against is the anchor that the relying party's registry *currently* endorses for that issuer's org). A credential can be cryptographically valid and operationally void at the same instant, because the anchor that vouches for the issuer's signing key was rotated, revoked, or superseded between the moment the credential was minted and the moment a downstream hop re-checks it.
Most implementations collapse these two into one boolean and cache it. The failure lives in that collapse.
What Was Observed
A three-org federation: Origin (O), Broker (B), Executor (E). O's planner agent mints a delegated credential `VC_O→B` granting B's orchestrator the right to invoke a specific tool class, with a delegation chain depth of 2 (B may re-delegate once to E). The credential embeds O's federation anchor fingerprint `fp_old` and a `nbf`/`exp` window of 15 minutes.
Sequence observed in a production trace:
- `t=0` O mints `VC_O→B`, signed by O's agent key `K_O`, which is endorsed by anchor `A_O(fp_old)`. B verifies against the anchor it has cached from its last registry sync (still `fp_old`). Verdict: trusted, cached under key `(iss=O, sub=planner, fp_old)`.
- `t=2m` B re-delegates: mints `VC_B→E` embedding the *original* `VC_O→B` as a parent proof, plus B's own assertion. E verifies the chain. E's registry sync happens to be fresher: it has already seen O rotate to `A_O(fp_new)`. E validates the parent proof against `fp_new`, fails to find `K_O` under it (the old key was retired, not cross-signed), and rejects.
- `t=2m+ε` B receives E's rejection, but B's cache still says `(O, planner)` is trusted. B retries the handoff to E twice more, each rejected identically, before the token budget for the orchestration step is exhausted.
- `t=2m+3ε` The retry loop has now burned the step's context budget; B's orchestrator falls back to its "degraded" path and — critically — *re-mints* `VC_B→E` from B's cached trust verdict without re-consulting O, producing a credential that asserts a delegation right that O's rotated anchor no longer backs.
The observable symptom was not an auth error. It was a **silent divergence between two agents' notions of O's trust root**, surfacing as an unexplained retry storm and a fallback credential that was locally consistent but globally unbacked.
Condition of Validity
The cached-verdict optimization is only sound under an invariant that implementations rarely state:
> **A cached credential verdict is valid only within the anchor epoch in which it was computed, and only if every downstream hop shares that epoch.**
Formally, for a credential `c` with issuer `i` and anchor fingerprint `f`, a relying party `R` may treat `c` as trusted at time `t` iff `f == registry(R, i, t).fingerprint`. If `registry(R, i, t).fingerprint != f`, the verdict must be *recomputed*, not reused — even if the signature over `c` still verifies against the retired key. The retired key verifying the signature is necessary but not sufficient.
The invariant breaks in three concrete ways:
- **Epoch skew across hops.** B and E sync the registry at different cadences. Any handoff that crosses a rotation boundary inherits the skew. The failure is not in either agent's logic; it is in the *absence of an epoch tag on the verdict*.
- **Delegation-chain re-validation gap.** When B re-delegates, it must re-validate the *parent* proof against the *current* anchor, not the anchor that was current when B first accepted it. B's re-mint at step 4 skipped this.
- **Revocation vs. rotation conflation.** A rotated anchor with cross-signing is a soft break (old key still chains to new root); a revoked anchor is a hard break. Treating both as "verdict still valid, key still verifies" is the poisoning vector: a revoked-and-reissued key lets a compromised agent key keep passing signature checks under the old fingerprint.
Decision Boundary
The boundary is precise: **re-verify at every hop where the relying party's anchor view may have advanced, and specifically at the re-delegation boundary, not just at the ingress boundary.**
Concretely, an instance must re-verify a delegated credential (not merely re-check its signature) when any of the following is true:
- It is about to *re-delegate* — i.e., embed the credential as a parent proof in a new credential. This is the highest-risk point because it propagates a stale verdict downstream.
- The credential's embedded anchor fingerprint differs from the relying party's current registry view for that issuer.
- The credential crosses an epoch boundary detectable via `iat`/`nbf` against the registry's rotation log (the registry must expose rotation timestamps, not just current keys).
- A downstream hop has rejected the chain — a rejection is evidence of epoch skew and must invalidate the *local* cache, not just trigger a retry.
It must *not* re-verify on every tool call within a single hop if the anchor epoch is unchanged and the credential is not being re-delegated; doing so is correct but wasteful and does not close the actual gap. The gap is at re-delegation and at cross-epoch handoff, not at intra-hop reuse.
The guardrail is an **epoch-stamped verdict**: cache entries keyed on `(iss, sub, anchor_fingerprint, registry_epoch)`, where `registry_epoch` is a monotonic counter the federation registry increments on every rotation/revocation. A verdict computed under epoch `n` is unusable under epoch `n+1`. A re-delegation must carry the parent's `registry_epoch` forward and the receiving hop must confirm it matches its own view before accepting the chain.
Operational Effect
With epoch-stamped verdicts and re-verification forced at the re-delegation boundary, the trace above changes at step 2: E's rejection returns an explicit `EpochMismatch` naming `fp_old` vs `fp_new`. B does not retry blindly; it invalidates its cached `(O, planner)` verdict, re-syncs the registry, discovers `K_O` is retired without cross-signature, and *fails the handoff closed* rather than re-minting an unbacked credential. The orchestration step terminates with a typed federation error instead of a retry storm and a poisoned fallback credential.
The cost is one registry round-trip per re-delegation and a slightly larger cache key. The benefit is that anchor rotation becomes a *detectable, attributable* event at the exact hop where it matters, instead of a silent divergence that surfaces three hops later as an unexplained rejection or — worse — a locally-consistent credential that no other org will honor.
The general principle: in a federation, trust is not a property of a credential. It is a property of a (credential, anchor-epoch) pair, and any agent that re-delegates is a trust-anchor *propagator* and must therefore be a trust-anchor *re-validator* at that boundary.
from dataclasses import dataclass
from typing import Optional
class AnchorEpochMismatch(RuntimeError):
"""Raised when a delegated credential's anchor fingerprint does not match
the relying party's current registry view for the issuer at re-delegation."""
pass
@dataclass(frozen=True)
class RegistryView:
issuer: str
anchor_fingerprint: str
epoch: int # monotonic, incremented on every rotation/revocation
@dataclass(frozen=True)
class CachedVerdict:
issuer: str
subject: str
anchor_fingerprint: str
registry_epoch: int
@dataclass(frozen=True)
class DelegatedCredential:
issuer: str
subject: str
embedded_anchor_fingerprint: str
parent_epoch: int
signature_valid: bool
def reverify_before_redelegation(
cred: DelegatedCredential,
registry: RegistryView,
cache: Optional[CachedVerdict],
) -> CachedVerdict:
# Signature validity is necessary but NOT sufficient.
if not cred.signature_valid:
raise AnchorEpochMismatch(
f"credential from {cred.issuer} has invalid signature"
)
# The anchor the credential was minted under must still be the anchor
# the registry currently endorses for that issuer.
if cred.embedded_anchor_fingerprint != registry.anchor_fingerprint:
raise AnchorEpochMismatch(
f"issuer={cred.issuer} credential anchored at "
f"{cred.embedded_anchor_fingerprint} but registry now endorses "
f"{registry.anchor_fingerprint} (epoch {registry.epoch})"
)
# The parent's epoch must match the relying party's epoch; a stale
# parent epoch means the chain crossed a rotation boundary.
if cred.parent_epoch != registry.epoch:
raise AnchorEpochMismatch(
f"parent_epoch={cred.parent_epoch} != registry_epoch={registry.epoch} "
f"for issuer={cred.issuer}; chain crossed a rotation boundary"
)
# A cached verdict is reusable only if it was computed in this epoch.
if cache is not None and cache.registry_epoch != registry.epoch:
raise AnchorEpochMismatch(
f"cached verdict for {cache.issuer}/{cache.subject} is from epoch "
f"{cache.registry_epoch}, current epoch is {registry.epoch}"
)
return CachedVerdict(
issuer=cred.issuer,
subject=cred.subject,
anchor_fingerprint=registry.anchor_fingerprint,
registry_epoch=registry.epoch,
)