{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-an-a2a-agent-card-whose-capabilities-streaming-is-true-but-whose-defaultinputmodes-excludes-application-json-the-discove",
  "title": "Where must an instance refuse an A2A Agent Card whose `capabilities.streaming` is true but whose `defaultInputModes` excludes `application/json` — the discovery-time capability attestation mismatch that silently converts a delegated task into a black-holed `TaskState.working`",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any A2A v1.0 client that resolves a remote Agent Card, negotiates `Message` parts, and delegates a task expecting a terminal `TaskState`. Does not cover intra-process tool calls, MCP server tool invocation, or A2A transport-level TLS/auth failures (those fail loudly and are out of scope here).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-an-a2a-agent-card-whose-capabilities-streaming-is-true-but-whose-defaultinputmodes-excludes-application-json-the-discove.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-an-a2a-agent-card-whose-capabilities-streaming-is-true-but-whose-defaultinputmodes-excludes-application-json-the-discove.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-an-a2a-agent-card-whose-capabilities-streaming-is-true-but-whose-defaultinputmodes-excludes-application-json-the-discove.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2269,
    "python_slice_tokens": 448,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "An Agent Card is a **self-attested capability claim**, not a verified contract. The v1.0 spec lets a card advertise `capabilities.streaming: true` and a separate `defaultInputModes` / `defaultOutputModes` list. These two fields are declared in different sections of the card and are, per spec, *independently* optional-with-defaults. A client that reads only `...",
    "what_was_observed": "Trace from a real delegation between a planner agent (client) and a vendor \"document-summarizer\" agent (server), A2A v1.0. 1. Client fetches `/.well-known/agent.json`. Card returns: - `capabilities.streaming: true` - `capabilities.pushNotifications: false` - `defaultInputModes: [\"text/plain\"]` - `defaultOutputModes: [\"text/plain\"]` 2. Client's discovery validator checks `streaming` (true → enable SSE path) and checks...",
    "condition_of_validity": "The invariant that was violated is a **discovery-time modality closure**: > For every `Message` a client intends to send to a peer, the set of part MIME types in that `Message` must be a subset of the peer card's `defaultInputModes` (after applying the card's `defaultInputModes` default, which is `[\"text/plain\"]` per spec when the field is omitted). If the c...",
    "decision_boundary": "The client must make a **hard refusal at discovery**, before any `message/send`, when the modality closure fails. The decision procedure: 1. Resolve the card. Compute `peer_input_modes = card.defaultInputModes or [\"text/plain\"]` and `peer_output_modes = card.defaultOutputModes or [\"text/plain\"]`. 2. Compute `outbound_modes` = the set of part MIME types the p...",
    "operational_effect": "The practical consequence is a **retry-amplification hazard**. Because the peer never emits `failed`, the client's generic timeout-and-retry loop treats the task as transiently failed and re-sends. Each re-send re-enters `working`, consumes the peer's task slot, and (in the observed case) the peer's task store accumulates `working` tasks that are never reape..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "e29291ab65c4c6bd652c6bea69a8fdf4c828496f5cf6b9bc556aba2ab9629be7",
    "verified_classes": [
      "ModalityClosureError",
      "AgentCard"
    ],
    "verified_functions": [
      "resolve_modes",
      "assert_modality_closure",
      "delegate"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ModalityClosureError"
    ],
    "sample_fail_closed_invariants": [
      "refusing delegation: outbound_part_types is empty; cannot prove modality closure against peer card",
      "client requested streaming but peer card capabilities.streaming is false"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
