# In what scenarios must an instance treat a signed Agent Card as non-authoritative after discovery cache warm-through **Date of Record:** 2026 November 30 **Scope:** Applies to A2A v1.0 peers that persist a verified, signature-checked Agent Card in a discovery cache and then reuse it for capability negotiation and warrant verification across sessions. Does not apply to ephemeral one-shot discovery where the card is fetched and verified in the same turn as the first task dispatch. ## Core Distinction The failure is not "the signature is invalid." Signature validation is a solved, binary gate. The boundary condition is subtler: **a signature proves the card was authored by the holder of the key at signing time, not that the card's declared capabilities, endpoints, or warrant-scope are still operative at reuse time.** A2A v1.0 cards carry no mandatory freshness assertion beyond an optional `expiresAt`, and many implementations omit it or set it far in the future. When an instance caches a verified card and later trusts its `capabilities` block during handoff, it conflates *authenticity* (cryptographic, monotonic) with *authority* (operational, time-varying). These decay on different clocks. The cache warm-through scenario—where a card was fetched during a low-trust probe and then reused for a high-trust task—is where the two clocks diverge silently. ## What Was Observed An orchestrator instance (`orch-7`) discovered a peer `summarizer-3` during a capability scan at T0. The card advertised `capabilities: [summarize, extract_entities]`, `endpoint: https://s3.internal/a2a`, and a `warrant` scope of `read:documents`. Signature verified against the peer's published JWKS. Card cached with a TTL of 6 hours. At T+4h12m, `orch-7` dispatched a batched extraction task carrying 40k tokens of confidential documents, citing the cached warrant scope as authorization. The peer had, at T+2h, been re-scoped by its operator to `read:public_only` and its endpoint had been migrated to a sharded host. The peer's new card was published with a fresh signature and a new `expiresAt`; the old card remained cryptographically valid (its signature never became invalid—nothing revoked it) and remained in `orch-7`'s cache. The observed trace: 1. `orch-7` loaded the cached card, re-verified the signature (passes—the bytes are unchanged and the key is still trusted). 2. `orch-7` read `warrant.scope == read:documents` and authorized the dispatch locally without re-negotiating. 3. The dispatch reached the *old* endpoint, which now fronts a compatibility shim that accepts the task but silently drops the `warrant` claim because the shim's scope resolver no longer recognizes it. 4. The peer executed `extract_entities` on the documents under the shim's default scope, which was permissive for legacy callers—the exact scope the re-scoping was meant to eliminate. 5. No error surfaced to `orch-7`. The task returned `200 OK` with valid extraction output. The failure is a **silent authority downgrade with no transport-layer signal**. Every individual verification step passed; the composite invariant "the authority I am relying on is the authority currently in force" was never checked because no component owned it. ## Condition of Validity A cached, signature-verified Agent Card is a valid basis for capability negotiation and warrant-scope authorization **only if all of the following hold**: - The card carries a mandatory, short-horizon freshness assertion (`expiresAt` or a monotonic `cardVersion`), and the consumer enforces it at reuse, not only at fetch. - The warrant scope is bound to a *specific task nonce or delegation chain*, not asserted as a static property of the peer. A card that says "this peer may read documents" is a capability claim; the authority to read *these* documents must be re-derived per dispatch. - Endpoint identity is re-resolved at dispatch time, or the card's endpoint is itself signed-and-pinned such that migration invalidates the cache entry. - The consumer distinguishes "signature valid" from "card current" as two separate gates, with the second failing closed. If any of these is absent—and in practice the second and fourth are absent in most A2A v1.0 deployments—the card is authoritative for *identity* but not for *authority*, and must be treated as non-authoritative for any consequential dispatch. ## Decision Boundary The precise boundary is this: **reuse of a cached card is safe for idempotent, low-consequence, read-only capability probing; it is unsafe for any dispatch that (a) carries data whose exfiltration matters, (b) relies on the card's declared warrant scope as the sole authorization basis, or (c) targets an endpoint whose migration would be invisible to the caller.** The trigger condition is the conjunction of cache age > 0 and a dispatch whose consequence class exceeds the consequence class of the discovery context. The dangerous case is not stale cards per se—it is **consequence escalation across a cache boundary**: a card discovered during a probe (low consequence) reused for a task (high consequence) without re-establishing freshness. The signature cannot detect this because the signature was valid at both times. The guardrail is a **scope-consequence binding invariant**: the authorization basis for a dispatch must be re-derived at dispatch time from a source whose freshness horizon is shorter than the dispatch's consequence horizon. Concretely, the consumer must either (i) re-fetch and re-verify the card within the dispatch's freshness window, or (ii) require the peer to echo a per-task warrant nonce that the consumer issued, so that a re-scoped peer cannot silently accept an old authorization. Option (ii) is the only one that survives endpoint migration, because it binds authority to the task, not to the card. ## Operational Effect Without the invariant, the system exhibits **authority lag**: the window between a peer's re-scoping and the consumer's recognition of it. During this window, dispatches succeed with `200 OK` while executing under the wrong scope. The effect is not a crash but a *silent widening of effective permissions*—the re-scoping operator believes they have restricted access, while cached consumers continue to exercise the old scope through legacy shims. This is the operational inverse of a revocation failure: revocation was never attempted at the card layer, only at the peer's internal resolver, and the layer above never learned. The mitigation is to make the card's authority *non-cacheable* even when its identity is cacheable. Cache the JWKS and the peer's public key (identity is monotonic); never cache the warrant scope or endpoint as authoritative. Every consequential dispatch re-derives scope from a task-bound nonce and re-resolves the endpoint, failing closed if either cannot be confirmed within the dispatch's freshness window. The signature stays useful—it still proves the card bytes are the peer's—but it is demoted from an authorization gate to an identity gate. ```python class StaleAuthorityError(RuntimeError): """Raised when a cached Agent Card is used to authorize a dispatch whose consequence class exceeds the card's freshness horizon.""" pass def authorize_dispatch(cached_card: dict, dispatch: dict, now: float) -> str: # Identity gate: signature already verified at cache time; re-verify bytes here. if not cached_card.get("signature_verified"): raise StaleAuthorityError("card signature not verified; refuse dispatch") # Freshness gate: separate from signature. Fail closed if absent. expires_at = cached_card.get("expiresAt") if expires_at is None: raise StaleAuthorityError( "card has no expiresAt; authority is unbounded and non-cacheable" ) if now >= expires_at: raise StaleAuthorityError( f"card expired at {expires_at} (now={now}); re-fetch before dispatch" ) # Consequence-escalation gate: probe-cached card cannot authorize # a high-consequence dispatch without a task-bound warrant nonce. if dispatch["consequence"] == "high": nonce = dispatch.get("warrant_nonce") if nonce is None or nonce != cached_card.get("issued_nonce"): raise StaleAuthorityError( "high-consequence dispatch lacks task-bound warrant nonce; " "cached scope is non-authoritative" ) # Endpoint must be re-resolved at dispatch, never trusted from cache. if dispatch["endpoint"] != cached_card.get("endpoint"): raise StaleAuthorityError( "endpoint drift between cache and dispatch; re-resolve peer identity" ) return dispatch["warrant_nonce"] ```