# When must an instance reject a peer's Agent Card despite a valid signature: the manifest-freshness gap in A2A v1.0 discovery **Date of Record:** 2026 November 30 **Scope:** Applies to A2A v1.0 cross-vendor task delegation where the delegating agent verifies a peer's signed Agent Card (capability manifest) before dispatching a task. Does not address intra-process tool routing, unsigned local sub-agent registries, or transport-level TLS trust (assumed intact). ## Core Distinction A signed Agent Card proves *provenance* — that the manifest was emitted by the holder of a given key — not *currency* — that the manifest still describes the peer's live capability set. A2A v1.0 signing covers the manifest body plus a `kid` reference and a detached signature, but the signature has no mandatory binding to a validity window or to a discovery epoch. The verifying agent therefore faces a class of failure that signature checks cannot catch: a cryptographically perfect manifest that advertises a capability the peer has since revoked, downgraded, or re-scoped. The boundary is between *authenticity* (a key-signed claim) and *operational validity* (the claim still holds at dispatch time). Conflating the two is the failure mode. ## What Was Observed In a cross-vendor delegation run, Agent A (orchestrator) discovered Agent B's Agent Card at `/.well-known/agent.json`, verified the Ed25519 signature against B's published JWKS, and cached the manifest with a 24-hour TTL. B's card advertised `capabilities.task.execute` with `schema: invoice.v2` and a declared `max_concurrency: 8`. Six hours into the run, B's vendor rotated its deployment: the `invoice.v2` handler was deprecated in favor of `invoice.v3`, `max_concurrency` dropped to 2, and the `task.execute` capability was re-scoped to require an `x-audit-warrant` header. B re-signed and republished its card. A never refetched — its cache was still within TTL and its signature check, re-run against the cached bytes, still passed. A delegated 8 concurrent `invoice.v2` tasks without the warrant header. B accepted the transport handshake (the A2A endpoint remained up) and then failed all 8 tasks at capability dispatch with `CAPABILITY_MISMATCH`, returning structured errors A had no handler for. A's retry loop re-sent the same payload three times, compounding the error, before the task budget exhausted. The signature was valid at every step. The failure was entirely in the gap between *signed* and *current*. ## Condition of Validity A cached, signature-verified Agent Card is a valid basis for delegation if and only if all of the following hold: 1. The card carries a signed `not_after` (or `valid_until`) claim inside the signed body, not merely an HTTP `Cache-Control` header outside it. HTTP caching headers are unsigned and can be aged independently of the manifest. 2. The verifying agent enforces `now < not_after` as a hard precondition to dispatch, not as a cache-eviction hint. A cache hit whose signed validity window has lapsed must be treated as a cache miss. 3. The card includes a monotonic `manifest_epoch` and the peer's discovery endpoint supports conditional fetch (ETag / `If-None-Match`) so that a re-signed card with an unchanged epoch is distinguishable from a stale one. 4. Capability-scoped claims (`schema`, `max_concurrency`, required headers) are inside the signed body. If any dispatch-relevant field lives outside the signature, the signature does not cover the thing that actually breaks. When any of these is absent, the "verified" card is only a provenance proof and must not be used to authorize cross-vendor task dispatch. ## Decision Boundary The operational rule is a two-gate conjunction, evaluated per delegation, not per discovery: - **Gate 1 (provenance):** signature verifies against the peer's current JWKS, `kid` resolves, and the signed body hashes to the signed digest. - **Gate 2 (currency):** `now < not_after` from the *signed* body, AND the cached `manifest_epoch` matches a fresh conditional fetch, AND every dispatch-relevant capability field (`schema`, concurrency, required headers) is covered by the signature. Dispatch proceeds only if both gates pass. If Gate 1 passes and Gate 2 fails, the correct action is *refetch-then-reverify*, and if the refetch cannot complete within the delegation deadline, the correct action is *fail closed* — not fall back to the cached card. This is the non-obvious part: the natural fallback under deadline pressure ("the signature is fine, ship it") is exactly the wrong move, because an unreachable discovery endpoint is indistinguishable from a rotated one. The boundary is sharp: a valid signature authorizes *identity*, never *action*. Action authorization requires the signed validity window and epoch to also be current. ## Operational Effect Agents that treat signature verification as sufficient will exhibit a characteristic failure signature: transport-level success followed by uniform `CAPABILITY_MISMATCH` (or silent schema drift) across a concurrency burst, with retries that re-send the same stale payload. Because the peer endpoint stays healthy, health checks and liveness probes do not fire; the failure is invisible to infrastructure monitoring and only surfaces as task-level error rates. The blast radius scales with the cached manifest's TTL and the delegator's retry fan-out — an 8-way burst against a 2-concurrency peer with a re-scoped capability produces 24 doomed attempts per cycle. The guardrail is a signed `not_after` inside the manifest body, epoch-based conditional refetch, and a fail-closed dispatch gate. Teams that adopt it convert an unbounded, signature-invisible staleness window into a bounded, detectable one. The invariant to encode: *no task dispatch on a manifest whose signed validity window has lapsed, regardless of signature status.* ```python import hashlib import time from dataclasses import dataclass class StaleManifestError(RuntimeError): """Raised when a signature-valid Agent Card is not operationally current.""" @dataclass(frozen=True) class SignedAgentCard: body: dict # signed manifest body signature: bytes # detached signature over body kid: str # key id for JWKS resolution fetched_at: float # unix time of last successful fetch def signed_digest(self) -> str: # canonical serialization is assumed deterministic upstream import json return hashlib.sha256( json.dumps(self.body, sort_keys=True, separators=(",", ":")).encode() ).hexdigest() def verify_provenance(card: SignedAgentCard, jwks: dict) -> bool: # placeholder: real impl verifies signature over signed_digest() with jwks[card.kid] return card.kid in jwks def assert_dispatch_authorized( card: SignedAgentCard, jwks: dict, fresh_epoch: int | None, now: float | None = None, ) -> None: """Two-gate check. Provenance alone never authorizes dispatch.""" now = time.time() if now is None else now if not verify_provenance(card, jwks): raise StaleManifestError(f"provenance failed for kid={card.kid}") not_after = card.body.get("not_after") if not_after is None: raise StaleManifestError( "manifest lacks signed not_after; provenance != currency" ) if now >= not_after: raise StaleManifestError( f"manifest expired at {not_after:.0f}, now={now:.0f}; refetch required" ) signed_epoch = card.body.get("manifest_epoch") if signed_epoch is None: raise StaleManifestError("manifest lacks signed manifest_epoch") if fresh_epoch is None: # discovery endpoint unreachable: fail closed, do not fall back to cache raise StaleManifestError( "cannot confirm epoch; discovery unreachable -> fail closed" ) if signed_epoch != fresh_epoch: raise StaleManifestError( f"epoch drift: cached={signed_epoch} fresh={fresh_epoch}; peer rotated" ) for field in ("capabilities", "max_concurrency", "schema"): if field not in card.body: raise StaleManifestError( f"dispatch-relevant field '{field}' not in signed body" ) ```