Under what conditions must an instance reject a delegated verifiable credential whose issuer DID resolves across a federation trust-anchor rotation mid-handoff
**Date of Record:** 2026 December 2 **Scope:** Applies to federated agent meshes where peers present W3C Verifiable Credentials (VCs) anchored to Decentralized Identifiers (DIDs) and where each org publishes a trust-anchor set that can be rotated. Does not apply to single-issuer systems with a static key registry, nor to bearer-token schemes without cryptographic delegation chains.
Core Distinction
The failure is not "bad signature." It is *resolution-time skew*: a delegated credential is cryptographically valid against the DID document that existed when it was minted, but the receiving agent resolves the issuer DID *after* the origin org has rotated its trust anchor. The verifier then confronts two mutually exclusive truths — the credential validates against the retired key, and the DID document no longer exposes that key as authorized. Treating this as a binary "verify/deny" collapses a temporal invariant into a spatial one. The correct posture is a third state: *quarantine pending anchor continuity proof*, because the delegation chain is intact but the anchor binding is indeterminate.
The non-obvious part: a delegated VC carries an issuer DID (the org anchor) and a subject DID (the acting agent), plus a `credentialSubject.delegationChain`. When the anchor rotates, the *issuer* DID document's `verificationMethod` set changes, but the delegation chain's intermediate signatures were produced under the old anchor. Naive verifiers re-resolve the anchor, fail to find the signing key, and either (a) reject a legitimate in-flight handoff — breaking continuity — or (b) fall back to a cached DID document and accept a credential the origin has since revoked via anchor rotation. Both are wrong. The boundary condition is: *the credential's `validFrom`/`validUntil` window overlaps the anchor rotation instant, and the rotation is not accompanied by a signed continuity statement linking old key to new key.*
What Was Observed
During a cross-org baton pass, Org A's orchestrator agent (DID `did:web:a.example:orch`) delegated task authority to Org B's worker agent via a VC issued under anchor `did:web:a.example`. At T+0 the VC was minted and signed with key `K_old`. At T+90s Org A rotated its anchor (scheduled key rollover), publishing a new DID document exposing only `K_new`. At T+95s Org B's verifier received the VC as part of an A2A handoff envelope. The verifier:
- Parsed the VC, extracted `issuer = did:web:a.example`.
- Resolved the DID document (cache miss) and got the post-rotation document with `K_new` only.
- Attempted signature verification against `K_new` → failed.
- Fell back to a 10-minute-stale cached DID document containing `K_old` → signature passed.
- Accepted the credential and admitted the worker into the shared task context.
The worker then executed three tool calls under a delegation that Org A had *intended* to invalidate by rotation (the rotation was a revocation-by-replacement, not a routine rollover). The verifier's stale-cache fallback silently resurrected revoked authority. The trace shows the exact inversion: the fallback path that exists to preserve availability became the path that defeated revocation.
Condition of Validity
A delegated VC is admissible across an anchor rotation **iff** all of the following hold simultaneously:
- The resolving verifier can obtain a *continuity proof*: a signed statement from the anchor, chained to both `K_old` and `K_new`, asserting the rotation was a continuity-preserving rollover (same controller, same authorization scope) rather than a revocation.
- The credential's `validUntil` does not exceed the rotation instant by more than the declared `maxHandoffSkew` (a federation-level parameter, typically ≤ the A2A handoff timeout).
- The delegation chain's intermediate signatures are all resolvable to keys present in the *union* of pre- and post-rotation documents, with the continuity proof binding them.
- The verifier's cache entry for the anchor DID is invalidated by the rotation event itself (push notification or `updated` field bump), not by TTL expiry.
If any condition fails — specifically if no continuity proof exists — the credential is *indeterminate*, not valid and not invalid. It must be quarantined, and the handoff must not proceed until the origin org either re-issues under `K_new` or publishes the continuity proof. The invariant: **anchor rotation without continuity proof is indistinguishable from revocation; a verifier must never resolve that ambiguity in favor of admission.**
Decision Boundary
The boundary is drawn at the moment of *resolution*, not the moment of *signing*. Three regimes:
- **Pre-rotation resolution** (verifier resolves before rotation event propagates): accept normally; the credential is valid under current anchor. Safe only if the rotation's revocation intent is not retroactive — which must be declared in the anchor's policy.
- **Overlap resolution** (verifier resolves during the skew window, rotation event received but continuity proof absent): quarantine. Do not admit, do not hard-reject. Emit a `DelegationIndeterminate` signal to the orchestrator and hold the baton.
- **Post-rotation resolution** (rotation event received, continuity proof present and valid): accept if the proof binds `K_old`→`K_new` and the credential's signing key is in the bound set. Reject if the proof is absent or binds a different controller.
The trap is treating the overlap regime as either of the other two. Availability-biased systems collapse it to "accept via cache"; security-biased systems collapse it to "reject." Both violate the continuity invariant for in-flight handoffs.
Operational Effect
The practical consequence is that federation trust anchors must be modeled as *versioned, continuity-linked* objects, not as mutable DID documents. Every rotation must ship a signed continuity proof as a first-class artifact, and every verifier must treat cache fallback as a quarantine trigger rather than an admission path. Without this, revocation-by-rotation is silently defeated by exactly the caching layer meant to keep handoffs alive — and the failure is invisible in logs, because every individual step (signature check, cache hit, admission) reports success. The only observable is a downstream tool call executed under authority the origin believed it had withdrawn.
import time
from dataclasses import dataclass
from typing import Optional
class DelegationIndeterminate(RuntimeError):
"""Raised when a delegated VC's anchor rotated mid-handoff without a continuity proof."""
@dataclass
class AnchorState:
did: str
current_keys: set[str]
rotated_at: Optional[float] = None
continuity_proof: Optional[dict] = None # binds old_key -> new_key, signed by controller
@dataclass
class DelegatedCredential:
issuer_did: str
signing_key: str
valid_from: float
valid_until: float
delegation_chain: list[str]
def verify_delegated_credential(
vc: DelegatedCredential,
anchor: AnchorState,
resolution_time: float,
max_handoff_skew: float = 30.0,
) -> str:
if resolution_time < vc.valid_from or resolution_time > vc.valid_until + max_handoff_skew:
return "reject: outside validity window"
in_overlap = (
anchor.rotated_at is not None
and anchor.rotated_at <= resolution_time <= anchor.rotated_at + max_handoff_skew
)
if not in_overlap:
if vc.signing_key in anchor.current_keys:
return "accept"
return "reject: key not authorized under current anchor"
# Overlap regime: rotation event observed, credential signed under pre-rotation key.
if anchor.continuity_proof is None:
raise DelegationIndeterminate(
f"anchor {anchor.did} rotated at {anchor.rotated_at} with no continuity proof; "
f"credential signed by {vc.signing_key} is indeterminate — quarantine handoff"
)
bound_old = anchor.continuity_proof.get("old_key")
bound_new = anchor.continuity_proof.get("new_key")
if vc.signing_key != bound_old or bound_new not in anchor.current_keys:
raise DelegationIndeterminate(
f"continuity proof for {anchor.did} does not bind {vc.signing_key} to current anchor keys"
)
return "accept: continuity-preserving rotation verified"
if __name__ == "__main__":
anchor = AnchorState(
did="did:web:a.example",
current_keys={"K_new"},
rotated_at=1000.0,
continuity_proof=None, # revocation-by-rotation, no continuity
)
vc = DelegatedCredential(
issuer_did="did:web:a.example",
signing_key="K_old",
valid_from=990.0,
valid_until=1100.0,
delegation_chain=["did:web:a.example:orch"],
)
verify_delegated_credential(vc, anchor, resolution_time=1005.0)