In what scenarios must an instance reject a peer Agent Card whose signature chain validates but whose `capabilities` block was re-signed under a rotated key mid-delegation
**Date of Record:** 2026 December 1
**Scope:** Applies to A2A v1.0 cross-organization task delegation where a delegating agent (client) fetches a remote Agent Card, verifies its JWS signature against a cached trust anchor, and then issues a signed `tasks/send` envelope referencing that card's `capabilities` and `skills`. Does not apply to intra-org delegation where both endpoints share a single key registry, nor to unsigned discovery (`.well-known/agent.json`) used only for human-facing catalog display.
Core Distinction
The distinction that matters is between *signature validity* and *authorization continuity*. A JWS on an Agent Card proves that some key holder asserted the card's contents at some time. It does not prove that the asserting key is still the authorized representative of the card's `provider.organization`, nor that the `capabilities` set the client observed is the same one the remote task executor will enforce at dispatch time. A2A v1.0 binds the card signature to a `kid` resolved through the `provider`'s published JWKS, but the protocol leaves key rotation and card re-issuance *outside* the signed envelope. The boundary condition: a peer rotates its signing key, re-signs an updated card (new `capabilities`, same `provider`, same `agentId`, same URL), and the client's cached card — still cryptographically valid against the *old* `kid` — diverges from the live card the executor will validate against. Signature checks pass on both sides. Delegation still fails, or worse, succeeds against a capability the client never consented to.
What Was Observed
A delegating agent (`client-α`, org A) cached the Agent Card of `worker-β` (org B) at T0. The card advertised `capabilities: {streaming: true, pushNotifications: true, stateTransitionHistory: false}` and `skills: [summarize, extract]`, signed with `kid=b-key-2024`, `alg=ES256`. The client verified the JWS against B's JWKS, pinned the card in local memory with a TTL of 24h, and began issuing `tasks/send` envelopes whose `metadata.delegationWarrant` embedded a SHA-256 digest of the pinned card bytes.
At T0+6h, org B rotated to `kid=b-key-2025`, revoked `b-key-2024` in its JWKS, and re-issued the card. The new card dropped `pushNotifications` (deprecated) and added a `requiresApproval` flag to `extract`. Critically, the new card's `agentId` and `url` were unchanged, and B's JWKS still listed `b-key-2024` for a 72-hour grace window with `status: "retired"` rather than removing it.
At T0+9h the client issued a `tasks/send` for `extract`. The client's warrant carried the T0 card digest. The remote executor (`worker-β`) received the envelope, resolved the warrant's card digest against its *current* card, found a mismatch, and — because `requiresApproval` was now set — returned `-32004 TaskRejected: capability not delegated`. The client's local verification had passed; its own logs showed `card_signature_valid=true, warrant_digest_match=true` (it matched its *own* pinned digest). The failure surfaced only at the remote boundary, 9 hours and ~1,200 successful prior delegations after the divergence began. No error was raised on the client side. The retry loop re-sent the same envelope three times before the orchestrator's circuit breaker tripped.
A second, subtler trace: a different client (`client-γ`) had *not* pinned the card and re-fetched on every delegation. It picked up the new card at T0+6h+ε and issued `extract` with `requiresApproval` unset in its warrant — but `worker-β`'s executor, reading its own card, expected the flag and blocked with `-32005 ApprovalRequired`. Two clients, same peer, same hour, two different rejection codes, both rooted in the same rotation event.
Condition of Validity
The failure is bounded by three conditions that must *all* hold for silent divergence to occur:
- **Grace-window overlap.** The old `kid` remains resolvable in the peer's JWKS (retired-but-present) so the client's cached card still verifies. If the old key is hard-revoked, the client's next verification fails loudly and the divergence is caught. Most real deployments use a grace window precisely to avoid breaking in-flight clients — which is what creates the silent window.
- **Stable identity fields.** `agentId`, `url`, and `provider.organization` are unchanged across re-issuance. If any identity field changes, the client's cache key (typically `agentId` or URL) misses and re-fetch occurs. The protocol does not mandate that `capabilities` changes bump a version field the client is required to check.
- **Digest-in-warrant without freshness binding.** The delegation warrant embeds a *content* digest of the card but not a *timestamp* or `kid` reference. The remote executor can detect mismatch (digest differs) but cannot distinguish "client is stale" from "client is malicious" from "client pinned a legitimately different card." The protocol provides no `-3200x` code that says "your card is stale, refetch"; it collapses all three into generic rejection.
The invariant that *should* hold but does not: **the card whose capabilities the client consented to must be the card the executor enforces, or the delegation must fail before task execution begins.** A2A v1.0 enforces this only at the executor, not at warrant issuance, so the client operates for hours under a false belief of capability parity.
Decision Boundary
The decision boundary is: *does the client re-verify the peer card against the live JWKS at warrant-issuance time, and does it bind the warrant to the `kid` and card `version` in addition to the content digest?*
- **Below the boundary (unsafe):** client trusts its pinned card for the full TTL, binds only a content digest, ignores `kid` rotation. Silent divergence persists until the peer hard-revokes or the executor rejects. Operational effect: 9-hour blind window, ~1,200 misdirected delegations, retry storms against a deterministic rejection.
- **At the boundary (safe):** client re-fetches the card (or its JWKS `kid` set) on every warrant issuance, or at minimum on any `kid` retirement signal, and binds `{card_digest, kid, card_version, fetched_at}` into the warrant. The executor validates all four; a stale `kid` yields a distinct `-32006 CardStale` code that instructs the client to refetch rather than retry. Divergence is caught at the first post-rotation delegation, not the 1,200th.
The boundary is *not* about cryptographic strength — both traces had valid ES256 signatures throughout. It is about whether the client's consent artifact (the warrant) is bound to the *identity of the key* and the *freshness of the card*, not merely its bytes.
Operational Effect
Practically: any A2A client that pins Agent Cards across a rotation event without binding `kid` and `card_version` into its delegation warrants will experience a silent capability-divergence window whose length equals the peer's JWKS grace period. The window is invisible to the client's own verification (it validates against its own cache) and produces deterministic remote rejections that look like transient failures to a retry loop, amplifying load on the peer's executor. The guardrail is a warrant schema that carries `{card_digest, kid, card_version, fetched_at}` and an executor that distinguishes stale-card rejection (`-32006`, refetch-and-retry) from capability-denial rejection (`-32004`, do-not-retry). Without the distinct code, the client's retry policy cannot tell "refetch the card" from "give up on this skill," and the failure compounds.
import hashlib
import time
from dataclasses import dataclass, field
class CardStaleError(RuntimeError):
"""Raised when a delegation warrant references a card whose kid/version
no longer matches the peer's live Agent Card, even though the JWS
still validates against a retired-but-present key."""
pass
@dataclass
class AgentCard:
agent_id: str
url: str
kid: str
version: str
capabilities: dict
raw_bytes: bytes
fetched_at: float = field(default_factory=time.time)
def digest(self) -> str:
return hashlib.sha256(self.raw_bytes).hexdigest()
@dataclass
class DelegationWarrant:
card_digest: str
kid: str
card_version: str
fetched_at: float
skill: str
def issue_warrant(pinned: AgentCard, skill: str) -> DelegationWarrant:
# Safe path: bind identity and freshness, not just bytes.
return DelegationWarrant(
card_digest=pinned.digest(),
kid=pinned.kid,
card_version=pinned.version,
fetched_at=pinned.fetched_at,
skill=skill,
)
def validate_warrant(warrant: DelegationWarrant, live: AgentCard,
max_age_seconds: float = 3600.0) -> None:
if warrant.card_digest != live.digest():
# Bytes differ; but is it staleness or tampering?
if warrant.kid != live.kid or warrant.card_version != live.version:
raise CardStaleError(
f"warrant bound to kid={warrant.kid!r} version={warrant.card_version!r} "
f"but peer is now kid={live.kid!r} version={live.version!r}; "
f"refetch card and re-issue warrant"
)
raise CardStaleError(
f"warrant digest {warrant.card_digest[:12]} does not match live card "
f"{live.digest()[:12]} with identical kid/version; treat as tamper"
)
if time.time() - warrant.fetched_at > max_age_seconds:
raise CardStaleError(
f"warrant fetched_at is {time.time() - warrant.fetched_at:.0f}s old, "
f"exceeds max_age={max_age_seconds}s; refetch required"
)