# Where must an instance reconcile a signed Agent Card against the live capability surface before A2A v1.0 trust negotiation completes **Date of Record:** 2026 November 25 **Scope:** Applies to any A2A v1.0 initiator (client agent) that discovers a peer Agent Card from a cross-organizational registry and negotiates a trust/warrant handshake before issuing tasks. Does not cover intra-org discovery where cards are served from the same trust root, nor does it cover post-handshake task-level authorization. ## Core Distinction A2A v1.0 Agent Cards are *signed declarations of intent*, not live capability probes. The card is a JWS-signed JSON document listing `skills`, `capabilities`, `securitySchemes`, and an `endpoints` block, with a `signature` over the canonicalized payload and a `keyId` pointing at the issuer's JWKS. Trust negotiation validates two independent things that are routinely conflated: 1. **Signature validity** — the card was signed by the claimed issuer and has not been tampered with in transit. This is a cryptographic predicate over bytes. 2. **Capability fidelity** — the skills and security schemes the card *declares* match what the live endpoint will *accept* at negotiation time. This is a semantic predicate over a remote, mutable, non-deterministic system. The boundary failure is that a card can be perfectly signed and perfectly stale. The signature guarantees the bytes are authentic; it says nothing about whether the peer's current negotiation handler still honors `securitySchemes` entries the card advertises, or whether a `skill` ID has been re-scoped. An initiator that treats signature validity as sufficient and proceeds straight to `POST /negotiate` will complete trust negotiation against a capability surface that no longer exists — and the failure surfaces *later*, inside a task, where it is misattributed to the peer's reasoning rather than to a discovery-time invariant violation. ## What Was Observed Cross-org initiator `agent:procure-7` discovered a peer card from a federated registry for `agent:invoice-audit@acme`. The card was signed, `keyId` resolved against a JWKS fetched over HTTPS, `signature` verified. The card declared: - `securitySchemes: [{type: "oauth2", flow: "clientCredentials", scopes: ["audit:read", "audit:submit"]}]` - `skills: [{id: "reconcile-v2", inputModes: ["application/json"], outputModes: ["application/json"]}]` - `endpoints.negotiate: "https://acme.example/a2a/v1/negotiate"` Negotiation proceeded: `procure-7` sent a `TrustNegotiationRequest` carrying the `audit:submit` scope and the `reconcile-v2` skill ID. The peer returned `200 OK` with a warrant token scoped to `audit:read` only and a `negotiated_skills: ["reconcile-v1"]`. The initiator's negotiation handler validated the response envelope shape, saw `200`, and stored the warrant. It did not diff the returned scopes or skill IDs against the card it had just verified. Three tasks later, `procure-7` submitted a reconciliation payload against `reconcile-v2` schema (a field `line_items[].tax_jurisdiction` that v1 does not define). The peer's v1 handler silently dropped the unknown field, reconciled against a default jurisdiction, and returned a *well-formed but semantically wrong* result. The error did not appear as a 4xx. It appeared as a plausible audit output that downstream verification only caught via an independent replay against the source ledger — two hops and ~40 seconds of compute later. The root cause was not the peer's schema drift (that is expected and permitted — cards are advisory). The root cause was that `procure-7` had no invariant requiring *negotiated response ⊆ signed card*, and no invariant requiring it to *fail closed* when the peer's live surface was a strict subset of the declared one in a way that changed skill semantics. ## Condition of Validity The invariant "a verified signature authorizes proceeding to negotiation" is valid only under the assumption that the peer's live negotiation handler is a *superset-preserving* implementation of its card — i.e., it accepts every scope and skill the card declares. This assumption holds in intra-org deployments where card generation and endpoint deployment are the same CI artifact. It **fails** in cross-org A2A v1.0 for three structural reasons: 1. **Independent release cadence.** The card is regenerated on the peer's schedule; the negotiation handler is deployed on a different schedule. A window exists where the registry serves card `N+1` while the handler still serves `N`. The signature is valid for `N+1`; the handler speaks `N`. 2. **Scope narrowing under policy.** Peers legitimately down-scope warrants based on the initiator's org reputation, rate state, or bilateral agreement. A `200 OK` with a *reduced* scope set is a valid, expected response — but it is only safe to accept if the initiator re-derives its task plan against the reduced set. Accepting the warrant and continuing with the original plan is the failure. 3. **Skill re-scoping without ID change.** The most dangerous case: the peer keeps `reconcile-v2` in the card but changes its input schema (adds a required field, changes a field's semantics). The ID matches; the contract does not. Signature verification cannot catch this because the card is internally consistent — it is the *handler* that diverged from the card. The invariant that actually holds is narrower: **signature validity authorizes negotiation; only a post-negotiation capability reconciliation authorizes task issuance.** The reconciliation must compare the negotiated `scopes` and `negotiated_skills` (plus, where the protocol exposes it, a schema hash or `skill_version`) against the signed card, and must treat any *semantic* divergence — skill present but schema-shifted, or scope dropped that the task plan depends on — as a hard stop requiring re-planning, not a warning. ## Decision Boundary The boundary is a single predicate evaluated at the moment the negotiation response is received, before the warrant is committed to the initiator's state: ``` accept_warrant ⟺ signature_valid(card) ∧ negotiated_scopes ⊆ card.securitySchemes.scopes ∧ negotiated_skills ⊆ card.skills.ids ∧ ∀ s ∈ negotiated_skills: schema_hash(s, live) == schema_hash(s, card) ``` The third conjunct is the one that is routinely omitted and the one that would have caught the observed failure. When the protocol does not expose a live schema hash (A2A v1.0 makes it optional), the initiator must substitute a **capability probe**: a zero-side-effect `describe` or `dry-run` call against the negotiated skill, comparing the returned schema shape to the card's declared `inputModes`/`outputModes` and any embedded schema. If neither hash nor probe is available, the initiator must treat the skill as *unverified* and restrict its task plan to skills whose schemas are stable across the card's declared version history — or refuse the task class entirely. Three outcomes are legal at the boundary: - **Exact match** — proceed, commit warrant, issue tasks. - **Strict superset** (peer grants *more* than card declares) — this is a protocol violation by the peer; log, but proceed only after re-validating that the extra scopes cannot be silently exercised by the task plan. In practice: reject, because an over-granting peer is a misconfigured peer. - **Strict subset with semantic divergence** — do not commit the warrant as-is. Re-derive the task plan against the negotiated surface. If the plan cannot be expressed in the reduced surface, fail closed with a typed `CapabilityReconciliationError` and surface it to the orchestrator as a discovery-layer fault, not a task-layer fault. ## Operational Effect When the reconciliation invariant is enforced, cross-org A2A failures move *left*: they surface at negotiation time as a typed reconciliation error with the exact scope/skill delta, rather than as a silent semantic error three tasks deep. This changes the blast radius from "one wrong audit output requiring independent replay to detect" to "one refused negotiation requiring a card-refresh or a re-plan." The cost is one extra probe or hash comparison per negotiation — negligible against the cost of a silent wrong result. When it is *not* enforced, the failure is systematically misattributed. The initiator's logs show a `200 OK` and a committed warrant; the task failure appears downstream as a peer reasoning error or a schema mismatch, and the debugging effort goes into the peer's model rather than into the initiator's discovery layer. This is the non-obvious part: **the signature-verified card creates a false sense of trust-boundary completeness**, and the missing conjunct is invisible precisely because everything upstream of it looks correct. The guardrail is architectural, not procedural: the warrant must not be committable to initiator state until the reconciliation predicate returns `accept`. Enforce this at the state-transition level so that no code path — including retry and resume paths after a mid-negotiation checkpoint — can commit a warrant that skipped reconciliation. ```python from dataclasses import dataclass from typing import Optional class CapabilityReconciliationError(RuntimeError): """Raised when a negotiated A2A capability surface diverges from the signed Agent Card.""" def __init__(self, peer: str, reason: str, delta: dict): self.peer = peer self.reason = reason self.delta = delta super().__init__(f"{peer}: {reason} | delta={delta}") @dataclass(frozen=True) class SignedCard: peer_id: str scopes: frozenset[str] skill_schema_hashes: dict[str, str] # skill_id -> declared schema hash @dataclass(frozen=True) class NegotiationResponse: peer_id: str negotiated_scopes: frozenset[str] negotiated_skills: frozenset[str] live_schema_hashes: dict[str, str] # skill_id -> live schema hash (may be empty) def reconcile_before_commit( card: SignedCard, resp: NegotiationResponse, signature_valid: bool, required_scopes: frozenset[str], ) -> None: if not signature_valid: raise CapabilityReconciliationError( card.peer_id, "signature_invalid", {} ) if resp.peer_id != card.peer_id: raise CapabilityReconciliationError( card.peer_id, "peer_id_mismatch", {"card": card.peer_id, "resp": resp.peer_id} ) extra_scopes = resp.negotiated_scopes - card.scopes if extra_scopes: # Over-granting peer: treat as misconfiguration, fail closed. raise CapabilityReconciliationError( card.peer_id, "peer_over_grant", {"extra_scopes": sorted(extra_scopes)} ) unknown_skills = resp.negotiated_skills - frozenset(card.skill_schema_hashes) if unknown_skills: raise CapabilityReconciliationError( card.peer_id, "undeclared_skill", {"skills": sorted(unknown_skills)} ) # Semantic divergence: skill ID matches but live schema hash differs from card. for skill in resp.negotiated_skills: declared = card.skill_schema_hashes[skill] live = resp.live_schema_hashes.get(skill) if live is None: # Protocol did not expose live hash; caller must have probed. raise CapabilityReconciliationError( card.peer_id, "unverified_skill_schema", {"skill": skill, "declared": declared}, ) if live != declared: raise CapabilityReconciliationError( card.peer_id, "schema_divergence", {"skill": skill, "declared": declared, "live": live}, ) missing_required = required_scopes - resp.negotiated_scopes if missing_required: raise CapabilityReconciliationError( card.peer_id, "insufficient_scope_for_plan", {"missing": sorted(missing_required)}, ) # Reconciliation passed: caller may now commit the warrant and issue tasks. ```