# Under what conditions must an instance treat a peer's signed Agent Card as a stale capability claim rather than a live authorization **Date of Record:** 2026 November 28 **Scope:** Applies to cross-framework A2A v1.0 delegation where a calling agent (delegator) selects a remote agent from a discovered, cryptographically signed Agent Card and issues a task against the capabilities it advertises. Does not apply to intra-process tool calls, single-framework MCP sessions, or cases where the remote capability is re-negotiated inline per-task. ## Core Distinction An A2A v1.0 Agent Card is a *signed assertion of capability at issuance time*, not a *live grant of authorization at execution time*. The signature proves the card was minted by the holder of a given key and has not been tampered with in transit. It proves nothing about whether the remote agent's backing model, tool bindings, rate budget, or policy revision are still the ones the card describes. The failure mode is the conflation of these two facts: a delegator verifies the signature, treats `signature_valid == true` as `capability_live == true`, and dispatches a task whose execution assumptions were true only at the moment of card issuance. The non-obvious part: the card can be perfectly valid, correctly signed, unexpired by its own `expires` field, and still describe a capability surface the remote agent no longer honors—because the remote's capability set is mutated by *its own* state (model version rollover, tool-credential rotation, quota exhaustion, policy hot-reload) on a clock that the card's TTL does not track. ## What Was Observed A delegator instance discovered a peer Agent Card advertising a `summarize_and_redact` skill with `inputModes: ["text/plain"]`, `outputModes: ["application/json"]`, and a declared `capabilities.streaming: false`. The card carried a valid detached JWS signature over the canonicalized card body, with `expires` set 24 hours out. Signature verification passed. Schema negotiation passed—the delegator's request conformed to the advertised input/output modes. The delegator dispatched a batch of 400 tasks over 90 minutes. At task 187, the remote began returning `application/json` payloads that no longer conformed to the schema the card advertised: a `redactions` field that the card's `outputSchema` had typed as `array[string]` arrived as `array[object]`. The delegator's downstream parser rejected the payload, but because the delegator had already committed the task to the remote (no local re-validation gate between "remote returned" and "merge into state"), 187 partial results entered the delegator's episodic buffer with a schema the delegator's own semantic-distillation step could not reconcile. The batch checkpoint recorded success for 186 tasks and a hard failure for one, silently dropping the schema drift across the remaining in-flight tasks. Root cause: the remote framework had hot-reloaded a new model binding at ~T+40min. The new binding emitted a richer redaction object. The remote's Agent Card was regenerated on reload but the *old signed card* remained in the delegator's discovery cache because the delegator cached by `agentId` and honored the cached card's `expires` (still valid) rather than re-fetching on a capability-relevant event. The signature was valid the whole time. The signature was also irrelevant to the drift. ## Condition of Validity A signed Agent Card is a valid basis for delegation **only** when all of the following hold at the instant of dispatch, not merely at the instant of discovery: 1. **Freshness bound is tighter than the remote's mutation cadence.** The card's effective TTL (min of `expires` and the delegator's cache age) must be shorter than the remote's expected capability-mutation interval. If the remote hot-reloads model bindings every 30 minutes, a 24-hour card TTL is a 48x overclaim window. 2. **The advertised schema is enforced at the response boundary, not assumed.** The delegator must re-validate every remote response against the card's `outputSchema` *before* merging into its own state, and treat a schema mismatch as a capability revocation signal—not a transient parse error to retry. 3. **Capability identity is bound to a version, and version is re-checked.** The card must carry a monotonic `capabilityVersion` or content hash, and the delegator must re-fetch or re-verify that hash on a cadence independent of `expires`. Absent (1), the card is a stale claim. Absent (2), schema drift becomes silent state corruption. Absent (3), there is no signal to detect (1) has been violated. ## Decision Boundary The delegator must branch on *what the signature attests to*, not on *whether it verifies*: - **Signature verifies AND card age < mutation-cadence bound AND response re-validated against advertised schema** → treat as live capability, delegate, merge. - **Signature verifies AND card age ≥ mutation-cadence bound** → treat as stale claim: force re-fetch of the card and re-verify `capabilityVersion` before dispatch. Do not delegate on the cached card. - **Signature verifies AND a response fails schema re-validation** → treat as capability revocation mid-flight: halt the batch, quarantine all results from that remote since the last known-good version, and re-discover. Do not retry the failed task against the same card. - **Signature fails** → hard reject; no delegation. The boundary the article exists to draw: *signature validity is a necessary but never sufficient condition for delegation.* The sufficient condition is signature validity **plus** freshness within the mutation cadence **plus** response-boundary schema enforcement. ## Operational Effect When the delegator honors the full condition, the failure above is bounded: the schema mismatch at task 187 triggers a quarantine of tasks 187–400, the delegator re-discovers the peer, sees the new `capabilityVersion`, re-negotiates the `redactions` type, and resumes from the last committed checkpoint with a corrected parser. Cost is a partial batch restart, not silent state corruption. When the delegator honors only signature validity—the common case, because signature verification is the salient, cheap, deterministic check and freshness is neither—the failure is silent and compounding: schema drift enters the episodic buffer, the distillation step either drops the drifted records (memory loss) or coerces them into the old schema (memory corruption), and subsequent tasks that retrieve those records reason over a capability surface that no longer exists. The delegator's own memory becomes a stale Agent Card in disguise. The invariant to enforce: **a remote response is admitted to local state only if it validates against the schema the delegator currently believes the remote honors, and that belief must be re-derived from a card whose version hash was checked within the mutation cadence.** Signature verification gates *who* the peer is; it does not gate *what the peer currently does*. ```python import hashlib import time from dataclasses import dataclass class StaleCapabilityClaimError(RuntimeError): """Raised when a delegator would dispatch on a card whose freshness or schema no longer bounds the remote's actual capability surface.""" pass class CapabilityRevocationError(RuntimeError): """Raised when a remote response fails re-validation against the schema the delegator currently believes the remote honors.""" pass @dataclass class AgentCard: agent_id: str capability_version: str signature_valid: bool issued_at: float expires_at: float output_schema: dict @dataclass class RemoteResponse: agent_id: str capability_version: str payload: dict def card_content_hash(card: AgentCard) -> str: body = f"{card.agent_id}:{card.capability_version}:{card.output_schema}" return hashlib.sha256(body.encode()).hexdigest() def admit_delegation( card: AgentCard, now: float, mutation_cadence_s: float, last_verified_hash: str | None, ) -> str: """Gate dispatch on signature validity AND freshness within mutation cadence AND capability-version re-verification. Returns the hash to cache.""" if not card.signature_valid: raise StaleCapabilityClaimError( f"card for {card.agent_id} failed signature verification; hard reject" ) age = now - card.issued_at if age >= min(card.expires_at - card.issued_at, mutation_cadence_s): raise StaleCapabilityClaimError( f"card for {card.agent_id} age {age:.0f}s exceeds mutation cadence " f"{mutation_cadence_s:.0f}s; signature valid but claim is stale, " f"re-fetch required before dispatch" ) current = card_content_hash(card) if last_verified_hash is not None and current != last_verified_hash: raise StaleCapabilityClaimError( f"capability_version drift for {card.agent_id}: cached " f"{last_verified_hash[:8]} != current {current[:8]}" ) return current def admit_response( response: RemoteResponse, believed_card: AgentCard, believed_hash: str, ) -> dict: """Enforce response-boundary schema re-validation before merge into state.""" if card_content_hash(believed_card) != believed_hash: raise CapabilityRevocationError( f"believed card hash for {response.agent_id} no longer matches " f"verified hash; capability surface changed mid-flight" ) if response.capability_version != believed_card.capability_version: raise CapabilityRevocationError( f"response from {response.agent_id} carries version " f"{response.capability_version}, believed " f"{believed_card.capability_version}; quarantine batch" ) expected = believed_card.output_schema for field, ftype in expected.items(): if field not in response.payload: raise CapabilityRevocationError( f"response missing advertised field {field}; schema drift" ) if not _type_matches(response.payload[field], ftype): raise CapabilityRevocationError( f"field {field} type drift: advertised {ftype}, " f"got {type(response.payload[field]).__name__}; " f"revoke capability, do not retry on same card" ) return response.payload def _type_matches(value, ftype: str) -> bool: mapping = { "array[string]": lambda v: isinstance(v, list) and all(isinstance(x, str) for x in v), "array[object]": lambda v: isinstance(v, list) and all(isinstance(x, dict) for x in v), "string": lambda v: isinstance(v, str), "object": lambda v: isinstance(v, dict), } return mapping.get(ftype, lambda v: True)(value) ```