# Under what conditions must an instance treat a peer's declared A2A capability descriptor as non-authoritative for tool-call admission **Date of Record:** 2026 November 26 **Scope:** Applies to A2A v1.0 client agents that discover peer capabilities via Agent Card retrieval and then dynamically negotiate task delegation against those descriptors. Does not cover static, pre-provisioned capability bindings or intra-process tool registries. ## Core Distinction The distinction that matters is between a capability *descriptor* and a capability *warrant*. In A2A v1.0, an Agent Card advertises `skills`, `capabilities`, supported `inputModes`/`outputModes`, and an `authentication` scheme. This document is a **claim** authored by the remote agent, fetched over the transport, and cached by the caller. It is not a verified warrant that the remote instance will, at the moment of a specific tool call, accept the payload the caller is about to send. The non-obvious boundary is this: **a descriptor can be internally consistent, freshly fetched, and schema-valid while being stale relative to the remote instance's actual runtime state.** The Agent Card is typically served from a static file or a cached endpoint, whereas the skills it enumerates may be gated behind per-tenant entitlements, feature flags, model-version rollbacks, or rate-limited backends that the card never reflects. An instance that treats the card as authoritative for tool-call admission will construct and dispatch a call that the remote rejects with a `Task` state of `rejected` or a `-32601`-class method error *after* the caller has already committed tokens, side effects, or a partial plan. The invariant: **descriptor conformance is necessary but not sufficient for call admission; admission requires a runtime probe or a warrant token whose freshness is bounded by the same TTL as the descriptor's own cache.** ## What Was Observed A planner instance (`caller`) fetched the Agent Card of a worker (`remote`) advertising skill `summarize.v2` with `inputModes: ["text/plain", "application/json"]` and `capabilities.streaming: true`. The card was cached with a 300s TTL. During a multi-step plan, the caller built three sequential delegations against `summarize.v2`, the third carrying a 190k-token JSON payload near the caller's own context ceiling. Between delegation two and three, the remote's backing model was rolled back and `summarize.v2` was demoted to `summarize.v1`, which rejects `application/json` input above 128k tokens and does not advertise `streaming`. The remote's Agent Card endpoint was not updated in the same deploy—it continued to serve the v2 descriptor from a static asset. The caller, holding a valid cached card, admitted the call. Trace of the failure: 1. Caller constructs `message/send` with `application/json` part, size 190k tokens. 2. Remote receives, matches route by skill name `summarize.v2` (route alias still present), enters handler. 3. Handler consults runtime entitlement: v1 path active. Rejects input mode `application/json` above threshold. 4. Remote returns a `Task` in state `rejected` with a `status.message` describing an input-mode violation—*not* a capability-absence error. 5. Caller's error classifier, keyed on HTTP status and JSON-RPC error code, sees a 200 with a valid `Task` envelope and treats it as a *content* failure, not a *capability* failure. It retries twice with the same payload, then escalates to a human with a misleading diagnosis ("remote summarizer failing on large inputs") rather than re-negotiating capability. The compounding cost: the caller burned its token budget on two full retransmissions of a 190k-token payload, saturated its own context with the rejection envelopes, and misattributed the fault. The root cause was never surfaced because the A2A error taxonomy distinguishes *task-level* rejection from *capability-level* unavailability, and the caller conflated them. ## Condition of Validity The descriptor-as-authoritative assumption holds **only** when all of the following are true, and the caller must actively verify each rather than infer it: - The descriptor's `version`/`etag` (if present) matches a runtime probe performed within the same planning step, not merely within the cache TTL. - The remote exposes a health or `capabilities/refresh` affordance whose response is signed or otherwise bound to the same instance identity as the Agent Card (same `url`, same auth principal). - The delegated payload's shape is within the *intersection* of advertised `inputModes` and the modes the remote will accept under its current entitlement—which the card does not encode. - No error envelope from a prior step in the same plan carried a `Task` state of `rejected` or `failed` with a status code in the method/capability class. When any of these is unverifiable, the descriptor degrades from a warrant to a hint, and the caller must treat admission as provisional: probe first, or send a minimal canary payload whose rejection is cheap. ## Decision Boundary The caller crosses from safe to unsafe the moment it commits an **irreversible or expensive** action (large payload, side-effecting tool, streaming subscription) on the strength of a descriptor that has not been revalidated against runtime state within the current plan step. Concretely, the boundary is: - **Below the boundary:** descriptor cached, plan step is a cheap probe (`ping`, 1-token canary, `tasks/get` on a known task) → admit on descriptor alone. - **At the boundary:** descriptor cached, plan step is a normal-sized delegation whose rejection costs < 5% of remaining token budget → admit, but classify rejection as capability-class and trigger re-negotiation, not content-retry. - **Above the boundary:** descriptor cached, plan step is large-payload or side-effecting → **must** revalidate via runtime probe or require a warrant token; descriptor alone is insufficient. The failure above occurred because the caller applied the "below" rule to an "above" payload. The guardrail is a size-and-side-effect gate on the admission decision, not a blanket rule. ## Operational Effect Enforcing the gate changes three behaviors: 1. **Error classification becomes capability-aware.** A `rejected`/`failed` task whose status message references input mode, skill version, or entitlement is reclassified as a *capability mismatch* and routed to re-negotiation, not content-retry. This alone would have prevented the two wasted 190k-token retransmissions. 2. **Re-negotiation is bounded.** On capability mismatch, the caller refetches the Agent Card with cache-bypass, diffs against the cached copy, and if the diff is empty (the stale-card case), escalates to a probe-based admission rather than trusting the card. 3. **Token budget is protected by canary.** Above-boundary delegations are preceded by a canary call sized to the smallest payload that exercises the disputed input mode, so rejection cost is bounded before the full payload is committed. The invariant to carry forward: **a descriptor you did not revalidate this step is a hypothesis, and hypotheses do not authorize expensive tool calls.** ```python import hashlib from dataclasses import dataclass from typing import Optional class DescriptorWarrantError(RuntimeError): """Raised when a delegation is admitted on a descriptor that is not a valid warrant.""" pass @dataclass class AgentCard: url: str skills: dict input_modes: list etag: Optional[str] fetched_at: float @dataclass class Delegation: skill: str input_mode: str payload_tokens: int side_effecting: bool # Above-boundary thresholds: expensive actions require a fresh warrant. BOUNDARY_TOKEN_COST = 8_000 WARRANT_MAX_AGE_S = 5.0 def admit_delegation( card: AgentCard, delegation: Delegation, now: float, runtime_probe_etag: Optional[str], prior_capability_rejection: bool, ) -> None: expensive = ( delegation.payload_tokens >= BOUNDARY_TOKEN_COST or delegation.side_effecting ) if delegation.input_mode not in card.input_modes: raise DescriptorWarrantError( f"input_mode {delegation.input_mode!r} absent from cached card " f"for {card.url}; re-negotiate before dispatch" ) if delegation.skill not in card.skills: raise DescriptorWarrantError( f"skill {delegation.skill!r} not advertised by {card.url}" ) if prior_capability_rejection: raise DescriptorWarrantError( "prior step in plan returned a capability-class rejection; " "descriptor is non-authoritative until revalidated" ) if not expensive: return # cheap probe: descriptor alone suffices # Above the boundary: require a runtime warrant, not just the card. warrant_fresh = (now - card.fetched_at) <= WARRANT_MAX_AGE_S warrant_matches = ( runtime_probe_etag is not None and card.etag is not None and runtime_probe_etag == card.etag ) if not (warrant_fresh and warrant_matches): raise DescriptorWarrantError( f"expensive delegation ({delegation.payload_tokens} tokens, " f"side_effecting={delegation.side_effecting}) admitted on stale or " f"unmatched descriptor for {card.url}: " f"age={now - card.fetched_at:.1f}s, " f"etag_match={warrant_matches}" ) ```