{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-renegotiate-an-a2a-v1-0-agent-card-mid-task-when-a-peer-s-advertised-defaultinputmodes-defaultoutputmodes-diver",
  "title": "Under what conditions must an instance renegotiate an A2A v1.0 Agent Card mid-task when a peer's advertised `defaultInputModes`/`defaultOutputModes` diverge from its live task-scoped `Task.status.message` part types",
  "date_of_record": "2026 November 24",
  "scope": "Applies to A2A v1.0 clients that cache a peer's Agent Card at discovery time and then drive one or more `tasks/send` / `tasks/sendSubscribe` exchanges against that cached card. Does not apply to single-shot, stateless RPC calls where the card is re-fetched per invocation, nor to peers behind a stable gateway that normalizes part types.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-renegotiate-an-a2a-v1-0-agent-card-mid-task-when-a-peer-s-advertised-defaultinputmodes-defaultoutputmodes-diver.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-renegotiate-an-a2a-v1-0-agent-card-mid-task-when-a-peer-s-advertised-defaultinputmodes-defaultoutputmodes-diver.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-renegotiate-an-a2a-v1-0-agent-card-mid-task-when-a-peer-s-advertised-defaultinputmodes-defaultoutputmodes-diver.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1837,
    "python_slice_tokens": 337,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A Agent Card is a *static capability declaration*, resolved once at discovery (`/.well-known/agent.json` or the `agentCard` field of a `Task`). The task lifecycle, however, is *dynamic and stateful*: the `TaskStatusUpdateEvent` and `TaskArtifactUpdateEvent` streams carry `Message` objects whose `parts[]` each declare a concrete `type` (`text`, `file`, ...",
    "what_was_observed": "Two heterogeneous runtimes, `planner-runtime` (Python, card advertises `defaultInputModes: [\"text/plain\"]`, `defaultOutputModes: [\"text/plain\", \"application/json\"]`) and `executor-runtime` (a Go agent behind an A2A shim). The planner discovers the executor's card, sees `application/json` in `defaultOutputModes`, and negotiates a task with `acceptedOutputModes: [\"application/json\"]` in the initial `Message`. The execu...",
    "condition_of_validity": "The card-as-schema assumption is valid only when **all three** hold: 1. The peer's runtime is *homogeneous* with respect to part emission — every tool/node that can fire during a task produces parts whose media types are a subset of the card's `default*Modes`. 2. The negotiation (`acceptedOutputModes`) is treated by the peer as a *hard* filter, not a hint, s...",
    "decision_boundary": "The instance must re-fetch the peer's Agent Card (and, if the peer supports it, re-negotiate via a fresh `Message` with updated `acceptedOutputModes`) at the following boundary: - **On first out-of-negotiation part:** if a received part's media type is not in the negotiated set *and* not in the cached card's `defaultOutputModes`, the cached card is stale or ...",
    "operational_effect": "Treating the card as a closed schema converts a legal, spec-permitted emission into either a spurious cancellation (strict clients) or a silent artifact loss (lenient clients). The strict path is loud but destroys completed work because cancellation races the final artifact event. The lenient path corrupts the task's *semantic* outcome: `completed` with no a..."
  },
  "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": "fb6b9ea947c9237ac96a73edf912d2f95f8995b2dda5a43bc4614ea1af9ef6e5",
    "verified_classes": [
      "AgentCardDivergenceError",
      "CachedCard",
      "TaskNegotiation"
    ],
    "verified_functions": [
      "handle_part"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "AgentCardDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
