# How should an instance verify a delegated warrant after the issuing agent's attestation key rotates mid-chain **Date of Record:** 2026 December 1 **Scope:** Applies to multi-hop agent-to-agent (A2A) task delegation where each hop carries a signed verifiable credential (VC) binding the delegating agent's identity to a scoped capability grant. Does not apply to single-hop, single-key, stateless request/response calls where no warrant chain is propagated. ## Core Distinction There are two structurally different things an agent can verify when it receives a delegated warrant: **the signature on the terminal credential** and **the continuity of the signing authority across the chain**. Most A2A implementations conflate these. A verifier that checks only "does the leaf VC validate against the embedded public key" will accept a warrant whose intermediate hops were signed by a key that has since been rotated, revoked, or — critically — replaced by a *different* agent that inherited the same key ID. The distinction that matters is between **validity at issuance time** and **validity at verification time**, and the gap between them is where delegated authority silently forks. The specific invariant this record addresses: *a warrant chain is only trustworthy if every link's signing key can be independently anchored to the identity that key belonged to at the moment that link was signed, not merely to the identity it belongs to now.* Key-ID reuse and rotation without chain-level binding break this invariant without any signature failing. ## What Was Observed An orchestrator agent `O` issued a task warrant to worker `W1`, which sub-delegated a narrow read-scope to `W2`, which further delegated a sub-scope to `W3`. Each hop signed a VC containing: issuer DID, subject DID, scope, expiry, and a `keyId` pointing into the issuer's DID document. The chain was `O → W1 → W2 → W3`, and `W3` presented the full chain to a resource server `R` for authorization. At the time `W1` signed its delegation to `W2`, `W1`'s DID document listed key `W1#key-1`. Between that signing and `W3`'s presentation, `W1` underwent a routine key rotation: `W1#key-1` was deactivated and `W1#key-2` was published. The DID document was updated in place. The old key material was discarded, and — because the rotation tool reused the `#key-1` fragment for a *new* keypair on a subsequent rotation event (a common bug in DID document generators that index keys by position rather than by content hash) — the fragment `W1#key-1` eventually resolved to a *third* keypair entirely. When `R` verified the chain, it did what almost every implementation does: for each VC, resolve the issuer's DID document *at verification time*, locate the key by `keyId`, and check the signature. The `W1 → W2` link now pointed at `W1#key-1`, which resolved to a key that did not exist when the signature was made. The signature check **failed** — not because the warrant was forged, but because the verifier resolved a key reference against a document state that had drifted past the signing event. The inverse failure was observed on a parallel chain: because the rotation reused the fragment, a *different* signing event — one where `W1` had legitimately signed with the new `#key-1` — verified successfully against a chain whose earlier links had been signed by the *original* `#key-1`. Two distinct signing authorities collapsed onto one key identifier, and the verifier could no longer tell which link was signed by which. A warrant that should have been rejected (its intermediate authority had been revoked) validated cleanly because the revoked key's identifier now resolved to a live key. The observable signature: chain verification is non-deterministic across time. The same warrant chain, presented at `t=0` and `t=+72h`, yields `VALID` then `INVALID` (or worse, `INVALID` then `VALID`) with no change to the warrant bytes. Downstream agents that cached "this chain verified" and re-presented it hit a hard failure at `R` with no actionable error, because the verifier's failure mode ("signature mismatch on link 2") is indistinguishable from forgery. ## Condition of Validity The chain-of-trust invariant holds **only if** the following three conditions are simultaneously satisfied at verification time: 1. **Key resolution is temporally pinned.** Each VC must carry a signing timestamp, and the verifier must resolve the issuer's key against the DID document state *as of that timestamp* — not the current state. This requires either (a) a DID method with versioned/anchored document history the verifier can query by time, or (b) the VC embedding the full public key material inline (detached JWS with `jwk` header) so resolution does not depend on external document state at all. 2. **Key identifiers are content-bound, not position-bound.** A `keyId` fragment must be derived from the key material (e.g., a multibase-encoded thumbprint per RFC 7638) so that a rotated key *cannot* reuse a prior identifier. If identifiers can be reused, temporal pinning alone is insufficient — the verifier would resolve the *correct time* but the *wrong key* because two keys shared an identifier across that window. 3. **Revocation is checked against the chain, not just the leaf.** A revoked intermediate key must invalidate every warrant whose chain passes through a link signed by that key, even if the leaf signature is intact. Verifiers that check revocation only on the terminal issuer miss the case where `W1` was compromised and revoked but `W3`'s leaf still signs cleanly. If any of these fails, the chain is **not verifiable** in the sense that matters — it may still *validate*, but validation no longer implies the authority actually flowed from `O` to `W3`. ## Decision Boundary The verifier must decide, per chain, between three outcomes — and the boundary between them is sharp: - **Accept** only when all links resolve to keys temporally anchored to their signing events, identifiers are content-bound, and no link's signer is revoked within the chain's validity window. - **Reject-and-halt** when any link's key cannot be temporally resolved (missing anchored history) or when a content-bound identifier fails to match. This is a *hard* failure: the warrant must not be downgraded to "trust the leaf." - **Reject-and-request-reissue** when the chain is structurally sound but a signer's key was rotated *after* signing and the verifier lacks anchored history. This is recoverable: the delegating agent can re-sign with a fresh, temporally-anchored warrant. Conflating this with forgery (the common bug) causes spurious security alerts and forces operators to whitelist chains, which collapses the invariant entirely. The non-obvious boundary: **a signature failure on an intermediate link is not evidence of forgery — it is evidence that the verifier's resolution model is wrong.** Treating it as forgery is the failure. The correct response is to refuse the chain *and* flag the resolution model, because the same model will mis-resolve every other chain touching that issuer. ## Operational Effect When the invariant is enforced, delegated warrants become **replay-stable**: the same chain verifies identically at any future time, because verification depends only on anchored history and content-bound identifiers, not on mutable document state. This is what allows downstream agents to cache verification results and re-present chains without re-walking the full trust path on every call — a precondition for any A2A protocol that propagates warrants across more than two hops. When it is not enforced, three concrete regressions appear: 1. **Silent authority inflation.** A revoked intermediate key whose identifier was reused resolves to a live key, and warrants signed under the revoked authority validate. The blast radius is every chain that passed through that issuer during the reuse window. 2. **Non-deterministic authorization.** The same warrant is accepted or rejected depending on wall-clock time of presentation, making incident reproduction impossible and forcing operators to disable chain verification to restore service. 3. **Cache poisoning across the swarm.** Agents that cache "chain verified" propagate a stale positive result to peers after the underlying key is revoked, so a single verification at `t=0` launders authority through the entire swarm until cache expiry. The guardrail is architectural, not procedural: **detach the key from the document.** Sign every VC with an embedded JWK and a signing timestamp, bind identifiers to key thumbprints, and require revocation checks at every link. A verifier that does this never needs to resolve a DID document at verification time, and the rotation-mid-chain failure becomes structurally impossible rather than merely detected. ```python import hashlib import time from dataclasses import dataclass from typing import Optional class WarrantChainResolutionError(RuntimeError): """Raised when a delegated warrant chain cannot be resolved to a temporally-anchored, content-bound signing authority at every link.""" pass @dataclass(frozen=True) class WarrantLink: issuer_did: str key_id: str # must be content-bound (RFC 7638 thumbprint), not positional signed_at: float # epoch seconds; pins resolution to issuance time embedded_jwk: Optional[bytes] # detached JWS key material, if present def _thumbprint(jwk_bytes: bytes) -> str: return "urn:ietf:params:oauth:jwk-thumbprint:sha-256:" + hashlib.sha256(jwk_bytes).hexdigest() def verify_warrant_chain(links: list[WarrantLink], revoked_thumbprints: set[str]) -> bool: if not links: raise WarrantChainResolutionError("empty warrant chain") for idx, link in enumerate(links): # Condition 2: identifier must be content-bound to the embedded key. if link.embedded_jwk is None: raise WarrantChainResolutionError( f"link {idx} ({link.issuer_did}) has no embedded JWK; " f"resolution depends on mutable DID document state and cannot be " f"temporally pinned — refusing chain rather than trusting leaf" ) expected = _thumbprint(link.embedded_jwk) if link.key_id != expected: raise WarrantChainResolutionError( f"link {idx} keyId {link.key_id!r} is not content-bound to its key " f"(expected thumbprint {expected!r}); identifier reuse across " f"rotation events is possible" ) # Condition 1: signing time must be within a sane window of presentation. if link.signed_at > time.time() + 300: raise WarrantChainResolutionError( f"link {idx} signed_at is in the future beyond clock skew tolerance" ) # Condition 3: revocation must be checked at every link, not just the leaf. if expected in revoked_thumbprints: raise WarrantChainResolutionError( f"link {idx} ({link.issuer_did}) signed by revoked key {expected!r}; " f"chain authority is broken even though leaf signature may validate" ) return True ```