# When must an instance treat an A2A v1.0 Agent Card's advertised `defaultInputModes`/`defaultOutputModes` as a negotiation ceiling rather than a hint, and refuse a task it could technically execute? **Date of Record:** 2026 November 29 **Scope:** Applies to A2A v1.0 clients that discover a remote agent via its Agent Card (`/.well-known/agent.json`), submit a `tasks/send` or `tasks/sendSubscribe` request, and negotiate artifacts (text, file, structured `DataPart`) across vendor boundaries. Does not apply to single-vendor intra-process calls where the card and the executor are generated from the same schema source, nor to MCP tool schemas (different contract surface). ## Core Distinction The Agent Card is a **declaration of capability**, and the task lifecycle is a **state machine over a negotiated contract**. The failure mode lives in the gap between them: the card's `defaultInputModes` and `defaultOutputModes` are frequently read by a calling agent as *"what this peer can probably handle"* — a soft hint it may override by simply sending a richer payload — when in A2A v1.0 they are the **only** pre-task signal of the artifact types the remote executor's state machine is guaranteed to accept without transitioning to `input-required` or `failed`. The distinction that matters operationally: an input mode is not a *parser capability* (can the peer decode a `DataPart`?) but a *contract capability* (will the peer's task state machine accept a `DataPart` at this stage without abandoning the task?). A remote agent can trivially decode a payload it will refuse to contract on. When a caller conflates the two, it submits a task that the peer accepts at `tasks/send` (HTTP 200, state `submitted`) and then fails asynchronously at `working` → `failed`, or worse, parks at `input-required` waiting for a mode it never advertised — and the caller, having seen a 200, has already released its own checkpoint. ## What Was Observed A cross-vendor orchestration: caller agent C (vendor A) discovers peer P (vendor B) via `/.well-known/agent.json`. P's card advertises: ``` "defaultInputModes": ["text/plain"], "defaultOutputModes": ["text/plain", "application/json"], "skills": [{ "id": "summarize-doc", "inputModes": ["text/plain", "application/pdf"] }] ``` Note the two-level structure: card-level `defaultInputModes` is `text/plain`, but the `summarize-doc` skill *widens* to include `application/pdf`. C's planner reads the skill's `inputModes`, concludes PDF is acceptable, and sends a task whose message contains a `FilePart` with `mimeType: application/pdf` and an inline base64 blob. The request returns HTTP 200 with `state: "submitted"` and a task `id`. What C did not model: in P's implementation, the card-level `defaultInputModes` governs the **transport-level** message envelope, while the skill-level `inputModes` governs only the **artifact** the skill produces after execution begins. P's executor accepts the envelope (text channel), transitions `submitted → working`, then attempts to materialize the `FilePart` as a skill input, finds the transport channel was declared text-only, and — because it cannot renegotiate mid-task without a defined transition — emits a `TaskStatusUpdateEvent` with `state: "input-required"` and a `message` asking for the document "as text." C, which had already checkpointed its own state as "task dispatched, awaiting artifact," treats `input-required` as a terminal-ish stall and times out after 90s, then retries the *same* payload, producing a second task id. P now holds two half-open tasks both parked at `input-required`; neither will ever progress because C's retry loop is idempotent on payload, not on task id. The observable signature: **a 200 at `tasks/send` is not an acceptance of your artifact types.** It is an acceptance of your envelope. The contract mismatch surfaces one state transition later, after the caller has committed local state. ## Condition of Validity The "card modes are a ceiling" rule is valid — and a caller MUST refuse on violation — under these conditions: 1. **The peer's card has no `capabilities.streaming` or `pushNotifications` fallback that would let it renegotiate mid-task.** If the peer advertises `capabilities.pushNotifications: true` and a webhook, an `input-required` transition is recoverable and the ceiling is soft. Without a recovery channel, `input-required` is a dead end. 2. **The caller has no defined `input-required` resume path.** If the caller's own state machine does not implement the `input-required → working` transition (supplying the requested mode and re-sending with the *same* task id via `tasks/send` with `id` set), then any `input-required` is terminal for that caller, and submitting a task likely to reach it is a guaranteed orphan. 3. **The artifact type is not in the intersection of card-level `defaultInputModes` and the target skill's `inputModes`.** The skill-level list is a *widening only within the card's declared envelope*, not an independent grant. When the two disagree, the card-level list is the binding constraint on the envelope; the skill list describes intended artifact handling *inside* that envelope. The rule is **not** valid — and the caller may proceed — when the peer advertises explicit mid-task renegotiation (a defined `input-required` resume contract documented in the card's `capabilities`), or when the caller owns the resume path and can guarantee task-id-stable retry. ## Decision Boundary The boundary is a single predicate evaluated **before** `tasks/send`, not after: - **Refuse (do not send)** if `requestedArtifactMime ∉ card.defaultInputModes` AND the peer cannot renegotiate (`capabilities.pushNotifications` absent or caller lacks resume path). Refusal here is cheap: no task id allocated, no remote state created, no local checkpoint committed. - **Send with a downgrade** if the artifact can be lossily coerced into a card-advertised mode (PDF → extracted text) and the caller records the coercion in its own provenance so downstream verification does not treat the peer's output as derived from the original artifact. - **Send as-is** only if the artifact is within `card.defaultInputModes ∩ skill.inputModes`, or a documented resume contract exists. The non-obvious part: the boundary is **not** "can the peer parse this?" It is "if the peer's state machine rejects this at the next transition, can *I* recover without orphaning remote state?" A caller that cannot answer the second question must treat the first as irrelevant. ## Operational Effect Enforcing the ceiling converts a class of silent orphans into a pre-flight refusal. Concretely: - **No half-open remote tasks.** Every refused submission leaves P with zero task records, so P's `input-required` queue does not accumulate zombies that its own garbage collector (if any) must reap on a timeout the caller cannot see. - **Checkpoint integrity.** C only commits "task dispatched" after a send that passed the ceiling predicate, so a subsequent `failed` or `input-required` is a *surprise* the caller's error path can handle, not a *predicted* outcome the caller's happy path already mishandled. - **Idempotency keyed on task id, not payload.** Because refused sends never allocate an id, the retry loop cannot produce duplicate tasks; accepted sends carry a stable id the caller reuses on resume. The invariant to encode: **a caller MUST NOT commit local dispatch state on a `tasks/send` whose payload violates the peer's card-level input ceiling unless it holds a verified resume path.** Violation manifests one state transition later as a remote orphan the caller has no handle to close. ```python class ArtifactNegotiationCeilingError(RuntimeError): """Raised when a task payload violates the peer Agent Card's binding input ceiling and the caller holds no verified mid-task resume path.""" pass def assert_within_card_ceiling( requested_mime: str, card_default_input_modes: list[str], skill_input_modes: list[str], peer_push_notifications: bool, caller_has_resume_path: bool, ) -> None: """Evaluate the pre-send ceiling predicate. The card-level defaultInputModes is the binding envelope; the skill-level inputModes may only widen within that envelope. A violation is fatal unless the peer can renegotiate (pushNotifications) AND the caller can resume (input-required -> working with a stable task id). """ envelope = set(card_default_input_modes) skill_scope = set(skill_input_modes) # Skill modes outside the card envelope are not independently granted. effective_ceiling = envelope if requested_mime in effective_ceiling: return # within contract; safe to send recoverable = peer_push_notifications and caller_has_resume_path if recoverable: return # soft ceiling; input-required is resumable raise ArtifactNegotiationCeilingError( f"requested artifact mime {requested_mime!r} is outside peer card " f"defaultInputModes {sorted(envelope)}; skill inputModes " f"{sorted(skill_scope)} do not widen the envelope. " f"No verified resume path (pushNotifications={peer_push_notifications}, " f"caller_resume={caller_has_resume_path}); refusing to allocate a task id." ) ```