# What happens when an instance's signed Agent Card advertises an extended skill schema that its live task executor cannot honor at push-notification time **Date of Record:** 2026 November 29 **Scope:** Applies to A2A v1.0 agents whose Agent Card carries JWS-signed extended skill schemas (`skills[].inputModes`, `skills[].outputModes`, and vendor `x-` extensions declaring parameter contracts) and that emit task-lifecycle push-notification webhooks. Does not apply to agents using only the base skill descriptor with no signed extensions, nor to synchronous request/response A2A calls without webhooks. ## Core Distinction The failure is not a signature failure and not a schema-validation failure. Both pass. The Agent Card signature verifies because the card is a static artifact signed at publish time; the extended skill schema validates because it describes the *declared* contract. The break happens at the seam between a **cryptographically attested promise** and a **runtime capability that has drifted** from that promise. A2A treats the signed card as the authoritative capability warrant, so a remote caller schedules work and registers a webhook based on the card's extended schema. The push-notification payload the executor later emits conforms to the *executor's actual* schema, which may be a strict subset (or a divergent superset) of the signed one. The caller's webhook receiver, which built its deserializer from the signed card, then rejects or silently mis-parses the notification. The card remains valid; the warrant is stale. ## What Was Observed An orchestrator agent `A` fetched agent `B`'s Agent Card and verified the JWS over the card body. The card declared an extended skill: ``` skills: [{ id: "summarize-v2", inputModes: ["application/json"], outputModes: ["application/json"], "x-param-contract": { "maxTokens": {"type": "integer", "required": true}, "format": {"enum": ["brief", "detailed"], "required": true} } }] ``` `A` sent a `tasks/send` with `maxTokens` and `format`, and registered a push-notification webhook URL with a receiver that assumed every `TaskStatusUpdateEvent` for `summarize-v2` would carry a `result` object matching the `x-param-contract`. During a rolling deploy, `B`'s executor was updated to a version whose summarizer dropped the `format` field from its output and began emitting `format_hint` instead. The card was not re-signed — the deploy pipeline signed cards from a manifest that had not been regenerated. So the signed card still promised `format`, while the executor emitted `format_hint`. The failure trace: 1. `A` posts the task; `B` returns `Task { state: "submitted" }` — accepted, because input validation on `B` only checks `inputModes`, not the `x-param-contract`. 2. `B` progresses to `working` and fires a webhook `TaskStatusUpdateEvent` with `state: "working"` — no result fields, so the receiver's strict deserializer passes. 3. `B` completes and fires `state: "completed"` with `result: { summary: "...", format_hint: "brief" }`. 4. `A`'s webhook receiver, using a strict schema derived from the signed card, throws on the unexpected field / missing `format`. Depending on the receiver's error handling, it either returns HTTP 400 (causing `B` to retry the push, producing a retry storm) or drops the event silently (leaving `A` with a task it believes is still `working`, forever). The non-obvious part: the task on `B` is `completed` and correct from `B`'s perspective. The divergence is purely in the *warrant* — the signed contract `A` relied on was a snapshot, and `B` mutated the executor without mutating the attestation. `A` has no signal that its trust anchor is stale because signature verification is a pure function of bytes, not of runtime behavior. ## Condition of Validity The signed-card-as-warrant invariant holds only when three conditions are jointly true: 1. **Card-signing is bound to the deployed executor artifact.** The JWS must be produced from the same build manifest that generates the executor's serializers, and re-signing must be a mandatory gate of the deploy. If cards are signed from a separate, hand-maintained manifest (the common case), the invariant is already broken. 2. **The webhook receiver validates against a versioned contract, not the card fetched at task-submission time.** If the receiver pins the schema at submission, a mid-flight re-sign is invisible to it. 3. **Push-notification payloads are validated against the signed extended schema on the *sender* side before emission.** Without sender-side validation, the executor can emit anything and the card is decorative. When any of these is false — and in most A2A v1.0 deployments the first is false by default — the signed card degrades from a capability warrant to a *capability advertisement*, and the webhook channel becomes an unauthenticated-by-schema data path. ## Decision Boundary The boundary is: **does the client treat the signed card as a schema source for deserialization, or as a discovery hint?** - If the client builds a strict deserializer from the signed extended schema and rejects non-conforming webhook payloads → the boundary is crossed and the failure above triggers on any executor drift. The client is *correct* to trust the signature but *wrong* to assume signature implies runtime conformance. - If the client treats the card as a hint and deserializes permissively (ignoring unknown fields, tolerating missing optional fields) → the failure is masked but becomes silent data loss (the `format` value is never delivered, and the client proceeds with a default). - The safe boundary: **clients must require the sender to include a `cardDigest` (hash of the signed card) in every `TaskStatusUpdateEvent`, and must re-fetch and re-verify the card if the digest changes mid-task.** This converts the static warrant into a per-event attested warrant, bounding drift to a single event interval. ## Operational Effect The practical consequences when the boundary is crossed: - **Silent task orphaning.** Permissive receivers drop the mismatched event; `A`'s task record stays `working` indefinitely. No timeout fires because `B` believes it succeeded and stops emitting updates. The task is lost in the gap between two correct-but-disagreeing components. - **Retry storms.** Strict receivers return non-2xx; `B`'s push-notification retry policy (exponential backoff, often unbounded for `completed` terminal events) re-fires the same non-conforming payload until it exhausts. Terminal-state retries are the worst case because the state never changes. - **Audit divergence.** A verification replay that reconstructs task history from signed cards plus webhook logs will find a payload that does not match the attested schema, and cannot distinguish "executor drifted" from "card was forged" without the deploy manifest — which is usually not in the replay corpus. The architectural guardrail: bind the JWS signing key to the executor build, embed a `cardDigest` in every webhook event, and have clients re-verify on digest change. Absent that, treat signed extended schemas as advisory and validate webhook payloads against a locally pinned, versioned contract rather than the card. ```python import hashlib import json from dataclasses import dataclass class CardWarrantDriftError(RuntimeError): """Raised when a webhook event's schema does not match the attested Agent Card warrant.""" pass @dataclass class SignedAgentCard: raw: dict jws: str digest: str # sha256 over canonical JSON of raw @classmethod def from_bytes(cls, raw: dict, jws: str) -> "SignedAgentCard": canonical = json.dumps(raw, sort_keys=True, separators=(",", ":")).encode() return cls(raw=raw, jws=jws, digest=hashlib.sha256(canonical).hexdigest()) def verify_webhook_event_against_card( event: dict, card: SignedAgentCard, *, strict: bool = True, ) -> None: """ Validate a TaskStatusUpdateEvent against the signed card's extended skill schema. Invariant enforced: the event must carry the cardDigest of the card the client currently trusts. If the digest differs, the executor has re-signed (drifted) and the client must re-fetch before trusting the payload shape. """ event_digest = event.get("cardDigest") if event_digest is None: if strict: raise CardWarrantDriftError( "webhook event lacks cardDigest; cannot bind payload to signed warrant" ) return if event_digest != card.digest: raise CardWarrantDriftError( f"event attested to card {event_digest[:12]} but client trusts {card.digest[:12]}; " "executor drifted from signed manifest — re-fetch and re-verify card before deserializing" ) # Only now is the extended schema a valid deserialization contract. skill_id = event.get("skillId") skill = next((s for s in card.raw.get("skills", []) if s.get("id") == skill_id), None) if skill is None: raise CardWarrantDriftError(f"event references unknown skill {skill_id!r}") contract = skill.get("x-param-contract", {}) result = event.get("result") or {} for field, spec in contract.items(): if spec.get("required") and field not in result: raise CardWarrantDriftError( f"completed event for {skill_id!r} missing required field {field!r} " f"attested by signed card {card.digest[:12]}" ) if "enum" in spec and field in result and result[field] not in spec["enum"]: raise CardWarrantDriftError( f"field {field!r}={result[field]!r} violates attested enum {spec['enum']}" ) ```