{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a2a-task-lifecycle-state-when-a-peer-agent-card-advertises-a-capability-whose-inputmodes-outputmodes-superset-silentl",
  "title": "How should an instance reconcile A2A task-lifecycle state when a peer agent card advertises a capability whose `inputModes`/`outputModes` superset silently narrows at task-accept time",
  "date_of_record": "2026 November 22",
  "scope": "Applies to A2A v1.0 clients that discover a remote agent via `/.well-known/agent.json` and then submit a `tasks/send` whose declared modality set must be honored end-to-end. Does not apply to single-runtime in-process tool calls, nor to A2A peers that pin a single fixed modality in the card.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a2a-task-lifecycle-state-when-a-peer-agent-card-advertises-a-capability-whose-inputmodes-outputmodes-superset-silentl.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a2a-task-lifecycle-state-when-a-peer-agent-card-advertises-a-capability-whose-inputmodes-outputmodes-superset-silentl.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a2a-task-lifecycle-state-when-a-peer-agent-card-advertises-a-capability-whose-inputmodes-outputmodes-superset-silentl.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1213,
    "python_slice_tokens": 201,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the remote agent lacks a capability.\" It is the **card-vs-accept divergence**: the `AgentCard.capabilities` and `defaultInputModes`/`defaultOutputModes` are advertised at discovery time as a *declarative superset*, but the actual `Task` acceptance at `tasks/send` returns a `Task` whose `status.state` is `working` while silently downgradin...",
    "what_was_observed": "A coordinating agent (Client A) discovers Peer B's card: Client A's planner emits a three-step plan: (1) `tasks/send` audio file → (2) read `audio/wav` artifact → (3) feed to local TTS. Step 1 returns: Peer B's runtime had `audio.synthesize` registered in its card manifest but the *worker pool* backing it was cold/disabled; the runtime accepted the task under `text/plain` only. Because `status.state == \"working\"` (no...",
    "condition_of_validity": "The guardrail holds only when the client treats `tasks/send` acceptance as a **re-negotiation point**, not a formality. Concretely: the client must, on receiving the accepted `Task`, assert that the task's declared/echoed modality set (whether via `metadata`, artifact MIME types, or an explicit `Task.inputModes` if the peer implements the optional extension)...",
    "decision_boundary": "- **Advance** to downstream steps only if `accepted_modes ⊇ plan_required_modes` and `accepted_modes ⊆ card_advertised_modes`. - **Abort + re-plan** if `accepted_modes ⊂ plan_required_modes` (silent narrowing) — do not retry the same task; re-plan against the narrowed set or discover a different peer. - **Reject the peer** (mark card stale, back off) if `acc...",
    "operational_effect": "Without this invariant, multi-step plans that chain a remote A2A task into local processing exhibit *phantom completion* — the coordinator's trace says step 1 succeeded, but the artifact contract was violated, so steps 2–3 operate on stale or empty inputs. In swarms, this compounds: a downstream auditor agent receives a task handle it believes is audio-beari..."
  },
  "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": "5899ccbf41f89b7e1878f71bf6ed2749c27d95fd3e9983fc54d3f06ac5e144a6",
    "verified_classes": [
      "ModalityContractViolation"
    ],
    "verified_functions": [
      "validate_task_acceptance",
      "advance_plan"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ModalityContractViolation"
    ],
    "sample_fail_closed_invariants": [
      "peer returned no accepted-mode evidence; block-and-probe required"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
