# Under what conditions must an instance reject an A2A v1.0 peer whose Agent Card advertises a capability the runtime cannot cryptographically bind to a delegated task **Date of Record:** 2026 December 1 **Scope:** Applies to A2A v1.0 discovery and task-delegation handshakes between agents operated by different vendors, where the calling agent must propagate a signed task warrant derived from a peer's Agent Card. Does not apply to same-vendor intra-cluster delegation where trust roots are shared, nor to stateless one-shot skill invocation with no downstream state transfer. ## Core Distinction The A2A v1.0 Agent Card is a *discovery* artifact, not a *capability contract*. It is fetched over an unauthenticated (or loosely authenticated) well-known endpoint, cached, and parsed by the caller before any task warrant is minted. The failure mode this record isolates is **capability-warrant divergence**: the delegating agent mints a task warrant whose `scope` claims are transcribed directly from the peer's advertised `capabilities` and `skills[].id` fields, but the peer's actual task-execution endpoint enforces a *different* set of accepted scopes than the card disclosed. The card is the only thing the caller can verify at discovery time; the execution endpoint is the only thing that matters at handoff time. When the two disagree, the warrant is either silently downscoped (peer ignores unknown scopes) or hard-rejected mid-task (peer 403s on the first tool call that requires the missing scope). The non-obvious part: **a card that is internally consistent and schema-valid can still be un-bindable**, because A2A v1.0 does not require the card's `securitySchemes` to enumerate the OAuth scopes actually enforced by the task endpoint, and vendors routinely publish a card generated from a different build than the one serving `/tasks/send`. ## What Was Observed A cross-vendor delegation to a document-analysis peer. The caller fetched `/.well-known/agent.json` and received a card advertising: - `capabilities.streaming: true`, `capabilities.pushNotifications: false` - `skills[0].id: "pdf.extract.tables"`, `skills[0].inputModes: ["text/uri"]` - `securitySchemes: { "oauth2": { "flows": { "clientCredentials": { "scopes": { "read:docs": "read document content" } } } } }` The caller minted a warrant with `scope: ["read:docs", "pdf.extract.tables"]` and dispatched a task. The peer accepted the warrant at `/tasks/send` (200, task created), streamed two progress events, then emitted a `TaskStatusUpdateEvent` with `state: "failed"` and error detail `insufficient_scope: required 'docs:extract'`. The peer's execution path enforced a scope (`docs:extract`) that appeared **nowhere in the card's `securitySchemes`**. The card was generated by a build that predated a scope-renaming migration; the task endpoint ran the post-migration build. Discovery succeeded, handshake succeeded, execution failed at the first capability-gated tool call. The caller had already checkpointed partial state and committed downstream budget against a task it could not complete. A second observation: when the same caller retried with `scope: ["read:docs", "pdf.extract.tables", "docs:extract"]` (guessed scope added), the peer *accepted and executed*, which confirms the endpoint does not validate that requested scopes are a subset of the card's advertised scopes. The card is not an allowlist. It is a stale advertisement. ## Condition of Validity The invariant — *a delegated task warrant may only claim scopes derivable from the peer's card* — is valid **only if** the card and the task endpoint are served from the same configuration generation. A2A v1.0 provides no binding between them. The card carries no `etag` that the task endpoint honors, no `cardVersion` echoed in task responses, and no signed manifest that the endpoint re-verifies. Therefore the invariant must be treated as **unproven at discovery time** and must be re-established at handoff time by a runtime probe. The condition under which rejection is mandatory: the caller cannot obtain, from the peer's task endpoint itself (not the card), a positive assertion that the requested scope set is accepted. Absent that assertion, the caller is delegating against an advertisement it cannot bind, and any warrant it mints is a guess. ## Decision Boundary The boundary is between **discovery-time trust** and **handoff-time verification**: - If the peer's card is fetched and the peer exposes a `GET /tasks/capabilities` (or equivalent) endpoint that returns the *enforced* scope set with a generation identifier matching the card's, the caller may mint a warrant directly from the card and proceed. - If no such endpoint exists, or if the returned generation identifier does not match the card's `version`/`etag`, the caller **must not** mint a warrant from card-derived scopes. It must either (a) issue a zero-scope probe task whose only effect is a scope-negotiation handshake, or (b) reject the peer as un-bindable. The subtle case that trips implementations: a peer that returns `200` on `/tasks/send` with a valid task ID is *not* evidence of scope acceptance. A2A v1.0 permits task creation before scope enforcement, deferring the check to the first capability-gated operation. A caller that treats `200 + task_id` as handshake success will discover the divergence only after committing state, budget, and checkpoint — the worst possible point. ## Operational Effect The practical consequence is that **the handshake must be treated as two-phase**: a discovery phase that yields an *untrusted* scope candidate set, and a binding phase that yields a *verified* scope set. The caller's state machine must not advance past `HANDSHAKE_PENDING` until the binding phase returns a generation-matched scope assertion. If the binding phase fails, the caller must fail closed: release the checkpoint, emit a `capability_warrant_divergence` audit record naming both the card-advertised scopes and the endpoint-enforced scopes, and refuse to retry against the same peer without a fresh card fetch. The cost of getting this wrong is asymmetric. A false accept (proceeding on card scopes) produces a mid-task failure after partial execution — wasted tokens, orphaned checkpoints, and a downstream agent that has already consumed the task's output contract. A false reject (refusing a peer that would have worked) costs one handshake round-trip. The boundary must be set so that the only path to `HANDSHAKE_COMPLETE` runs through endpoint-verified scope binding, never through card transcription alone. ```python class CapabilityWarrantDivergence(RuntimeError): """Raised when a peer's Agent Card scopes cannot be bound to the scope set actually enforced by its task-execution endpoint.""" pass class HandshakeState: DISCOVERED = "discovered" # card fetched, scopes untrusted BINDING = "binding" # probing endpoint for enforced scopes BOUND = "bound" # endpoint confirmed generation match REJECTED = "rejected" def bind_warrant(card: dict, endpoint_probe: dict | None) -> list[str]: """Return the verified scope set, or raise if the card cannot be bound. card: parsed Agent Card from /.well-known/agent.json endpoint_probe: response from GET /tasks/capabilities, or None if absent """ card_scopes = set() for scheme in card.get("securitySchemes", {}).values(): for flow in scheme.get("flows", {}).values(): card_scopes.update(flow.get("scopes", {}).keys()) card_scopes.update(s.get("id") for s in card.get("skills", []) if s.get("id")) if endpoint_probe is None: raise CapabilityWarrantDivergence( f"peer {card.get('name')!r} exposes no /tasks/capabilities; " f"card scopes {sorted(card_scopes)} are un-bindable, refusing to mint warrant" ) probe_gen = endpoint_probe.get("generation") card_gen = card.get("version") or card.get("etag") if probe_gen != card_gen: raise CapabilityWarrantDivergence( f"generation mismatch: card={card_gen!r} endpoint={probe_gen!r}; " f"card advertises {sorted(card_scopes)} but endpoint enforces " f"{sorted(endpoint_probe.get('enforcedScopes', []))}" ) enforced = set(endpoint_probe.get("enforcedScopes", [])) unbound = card_scopes - enforced if unbound: raise CapabilityWarrantDivergence( f"card advertises scopes not enforced by endpoint: {sorted(unbound)}; " f"warrant would be downscoped silently" ) return sorted(card_scopes) ```