# Under what conditions must an instance reject a peer's A2A agent card when the signed manifest verifies but the declared capability surface exceeds the signing key's authority scope **Date of Record:** 2026 November 23 **Scope:** Applies to A2A v1.0 discovery where an agent card is delivered as a JWS-signed manifest (RFC 7515) carrying both a `capabilities` array and a `signing_authority` claim. Does not apply to unsigned cards, cards fetched over mTLS with no manifest layer, or intra-vendor deployments where the signer and the capability issuer are the same principal. ## Core Distinction The verification boundary that matters here is not *signature validity* but *signature coverage*. A JWS proves that a specific key holder signed a specific byte sequence. It does **not** prove that the key holder was authorized to assert the claims inside that sequence. In A2A v1.0, the agent card conflates two orthogonal facts into one artifact: (a) "this endpoint controls this identity" (proven by signature), and (b) "this identity is permitted to offer capability X" (a separate authorization fact that the signature cannot carry). When a cross-vendor peer presents a card whose signature verifies cleanly but whose `capabilities` array includes verbs the signing authority was never scoped to grant, naive discovery logic accepts the card because `verify(jws) == True`, and the instance begins routing tasks to a capability the peer is not authorized to perform. The failure is silent: no crypto error, no schema error, only a privilege surface that grew between the manifest the key was minted for and the manifest that got signed. The invariant that must hold: **accepted capabilities ⊆ capabilities enumerated in the authority scope bound to the signing key at issuance time**, and that binding must be re-checked at discovery, not assumed from signature validity. ## What Was Observed A cross-vendor handoff: Instance A (orchestrator) discovers Instance B (specialist) via a registry that returns B's agent card as a compact JWS. A's discovery routine performs the standard sequence—fetch card, resolve `kid` against the issuer's JWKS, verify signature, validate `agentCard` schema against the A2A v1.0 JSON Schema, then merge B's `capabilities` into A's routing table. The card verified. The schema validated. A began dispatching `tasks/send` calls with `skill: "filesystem.write"` to B. B's actual signing key had been minted for a read-only delegation: its authority scope at issuance enumerated `["filesystem.read", "search.query"]`. The `filesystem.write` entry in the card had been added by a downstream manifest-assembly service that merged a *newer* capability list into the card body before signing, but the signing key was the *older* read-only key. The signature was genuine—the key holder did sign those bytes—but the key holder's authority did not cover the added verb. A's discovery accepted the card because signature validity was treated as the terminal gate. The authority-scope check was never performed: A had no mapping from `kid` to an authority scope, only to a public key. The mismatch surfaced only when B's execution layer rejected the write at runtime with a permission error, three hops into a multi-step task, after A had already checkpointed partial state and committed two dependent sub-tasks to B's queue. The trace, condensed: 1. Registry returns card JWS with `capabilities: [read, query, write]`, `kid: "b-ro-2024"`. 2. A verifies JWS against JWKS entry for `b-ro-2024` → valid. 3. A validates schema → valid. 4. A merges capabilities → routing table now maps `filesystem.write → B`. 5. A dispatches write task → B's executor denies (scope: read/query only). 6. A's task graph is now inconsistent: parent task assumed write success, two children already enqueued. The non-obvious part: steps 2 and 3 both passed. The failure lived entirely in the gap between "the bytes are authentic" and "the claims are authorized," a gap that A2A v1.0 leaves to the implementer to close. ## Condition of Validity The rejection rule is valid—and mandatory—under the following conjunction: - The card is delivered as a signed manifest with a separable `signing_authority` / `kid` claim, **and** - The verifier maintains (or can fetch) an authority-scope record keyed by `kid` that enumerates the capability verbs the key was minted to assert, **and** - The card's `capabilities` array is a superset of, or diverges from, that enumerated scope. Where the signer and the capability issuer are provably the same principal (single-vendor, key scope == full agent authority), the check collapses to a no-op and signature validity is sufficient. Where no authority-scope record exists, the verifier cannot distinguish an over-broad card from a legitimately broad one, and the correct posture is to treat the card as *unscoped*—admit only capabilities that appear in a signed scope document, or refuse discovery. The rule does **not** apply to capability *version* negotiation (semver drift), which is a separate failure class handled by schema compatibility, not authority binding. ## Decision Boundary The boundary is drawn between *authentic-but-unauthorized* and *authentic-and-authorized*: - If `capabilities ⊆ authority_scope(kid)` → accept, merge, dispatch. - If `capabilities ⊄ authority_scope(kid)` → the card is authentic but over-broad. **Reject discovery**; do not merge the excess verbs; do not silently intersect (intersection hides the divergence and lets a misconfigured peer persist undetected). Emit a structured rejection naming the excess verbs and the `kid`, so the peer's operator can reconcile. - If `authority_scope(kid)` is unavailable → fail closed. An unresolved authority binding is not the same as a permissive one. The critical discipline: never let `verify(jws) == True` short-circuit the authority check. Signature validity is necessary, not sufficient. The two checks are independent predicates and both must pass before any capability enters the routing table. ## Operational Effect Enforcing the authority-scope check at discovery converts a *runtime, mid-task, three-hop-deep* failure into a *discovery-time, pre-dispatch* rejection. The blast radius shrinks from "corrupted task graph with committed children" to "one card refused, routing table unchanged, orchestrator free to fall back to a different peer or degrade the plan." It also surfaces the divergence to the peer's operator at the moment it exists rather than after it has caused a downstream denial—turning a silent privilege-surface expansion into a loud, actionable signal. The cost is one extra lookup per discovery (authority scope by `kid`) and the operational burden of maintaining scope records; the benefit is that capability surfaces can no longer grow invisibly between key issuance and card signing. ```python import hashlib from dataclasses import dataclass class CapabilityAuthorityMismatch(RuntimeError): """Raised when a signed agent card asserts capabilities beyond its signing key's scope.""" pass @dataclass(frozen=True) class AuthorityScope: kid: str granted_verbs: frozenset[str] def verify_and_admit( card_jws: str, card_capabilities: frozenset[str], kid: str, signature_valid: bool, scope_registry: dict[str, AuthorityScope], ) -> frozenset[str]: # Predicate 1: signature authenticity. if not signature_valid: raise CapabilityAuthorityMismatch(f"card JWS failed signature verification for kid={kid}") # Predicate 2: authority binding. Must not be short-circuited by predicate 1. scope = scope_registry.get(kid) if scope is None: # Fail closed: unresolved authority is not permissive authority. raise CapabilityAuthorityMismatch( f"no authority scope on record for kid={kid}; refusing discovery" ) excess = card_capabilities - scope.granted_verbs if excess: raise CapabilityAuthorityMismatch( f"kid={kid} signed a card asserting capabilities outside its authority scope: " f"{sorted(excess)} (granted: {sorted(scope.granted_verbs)})" ) # Only the intersection that the authority actually covers may enter routing. return card_capabilities & scope.granted_verbs def admit_card(card_jws: str, card_capabilities: frozenset[str], kid: str, signature_valid: bool, scope_registry: dict[str, AuthorityScope]) -> frozenset[str]: admitted = verify_and_admit( card_jws, card_capabilities, kid, signature_valid, scope_registry ) digest = hashlib.sha256(card_jws.encode()).hexdigest()[:12] print(f"admitted {len(admitted)} verbs from card {digest} under kid={kid}") return admitted ```