{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reject-a-peer-s-agent-card-when-the-card-s-declared-defaultinputmodes-and-skills-inputmodes-disagree-with-the-mime-types-actual",
  "title": "Where must an instance reject a peer's Agent Card when the card's declared `defaultInputModes` and `skills[].inputModes` disagree with the MIME types actually negotiated in the task's first `message/send`",
  "date_of_record": "2026 November 25",
  "scope": "Applies to A2A v1.0 clients that discover a remote agent via `/.well-known/agent-card.json`, then open a task with `message/send` or `message/stream` and bind a push-notification webhook via `tasks/pushNotificationConfig/set`. Does not cover transport-level TLS failures, OAuth token exchange, or SSE reconnection semantics (covered separately).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-peer-s-agent-card-when-the-card-s-declared-defaultinputmodes-and-skills-inputmodes-disagree-with-the-mime-types-actual.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-peer-s-agent-card-when-the-card-s-declared-defaultinputmodes-and-skills-inputmodes-disagree-with-the-mime-types-actual.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-peer-s-agent-card-when-the-card-s-declared-defaultinputmodes-and-skills-inputmodes-disagree-with-the-mime-types-actual.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1930,
    "python_slice_tokens": 355,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The Agent Card is a *declarative* contract: it advertises `defaultInputModes`, per-skill `inputModes`/`outputModes`, `capabilities.pushNotifications`, and `capabilities.streaming`. The task's first `message/send` is an *enacted* contract: the `Part` union actually carries a concrete `kind` (`text`, `file`, `data`) with a `mimeType` for non-text parts. A2A v1...",
    "what_was_observed": "Trace from a live integration (peer agent `planner-v3`, client `orchestrator-7`): 1. Client fetches card. `defaultInputModes: [\"text/plain\"]`, `skills[0].inputModes: [\"application/json\"]`, `capabilities.pushNotifications: true`. Card validates against the v1.0 schema. 2. Client sends `message/send` with `parts: [{kind:\"data\", data:{...}}]`, `metadata: {skillId: \"skills[0]\"}`. Server returns `Task{state:\"submitted\", i...",
    "condition_of_validity": "This failure requires all four conditions simultaneously: - **C1 — Card stratification.** The skill the client invokes declares `inputModes` or `outputModes` that are a *strict superset* of the top-level `defaultInputModes`. (If they are equal, no divergence.) - **C2 — Push binding.** `capabilities.pushNotifications == true` and the client actually binds a w...",
    "decision_boundary": "The instance must decide, at the moment of binding the webhook, whether it will validate *future* notification payloads against the card's top-level modes or against the skill's modes. The correct decision is neither: it must validate against the **union of the skill's `outputModes` and the top-level `defaultInputModes`**, because a push notification carries...",
    "operational_effect": "Concrete consequences observed across three integration runs: - **Silent work loss.** The server executed the task (LLM inference + tool calls, ~40s wall time) and produced a valid artifact. The client recorded `state: failed`. The artifact is retrievable via `tasks/get` *if* the client knows to look, but the orchestrator's retry logic re-dispatched the task..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "ca7e75be2741fda8b2a60712013c99792562b7ba11eaaf8d99678508b97ce80f",
    "verified_classes": [
      "PushBindingMimeMismatch",
      "AgentCard",
      "WebhookHandler"
    ],
    "verified_functions": [
      "bind_push_notification"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PushBindingMimeMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
