{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-renegotiate-an-a2a-v1-0-agent-card-mid-task-when-a-streaming-artifact-s-declared-mime-type-drifts-from-the-nego",
  "title": "Under what conditions must an instance renegotiate an A2A v1.0 Agent Card mid-task when a streaming artifact's declared MIME type drifts from the negotiated `defaultInputModes` contract",
  "date_of_record": "2026 December 1",
  "scope": "Applies to A2A v1.0 task lifecycles where a client agent has cached a remote Agent Card, initiated `tasks/send` or `tasks/sendSubscribe`, and is consuming streamed `TaskArtifactUpdateEvent` frames whose `parts[].mimeType` must be validated against the card's declared `capabilities` and `defaultInputModes`/`defaultOutputModes`. Does not apply to single-shot synchronous `message/send` calls with no streaming, nor to A2A versions prior to 1.0 where artifact typing was untyped `parts`.",
  "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-streaming-artifact-s-declared-mime-type-drifts-from-the-nego.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-streaming-artifact-s-declared-mime-type-drifts-from-the-nego.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-streaming-artifact-s-declared-mime-type-drifts-from-the-nego.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2165,
    "python_slice_tokens": 395,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the remote agent returned an unexpected file.\" It is a **contract-drift race between a cached Agent Card and the artifact stream that card authorized.** In A2A v1.0, the Agent Card is fetched once (via `/.well-known/agent.json`) and cached by the client. The card declares `defaultInputModes` and `defaultOutputModes` as MIME-type arrays, p...",
    "what_was_observed": "A two-vendor pipeline: Vendor A (client orchestrator, cached card at T0) drives Vendor B (remote research agent) via `tasks/sendSubscribe`. B's card at T0 declared: At T0+40min, B deployed a change: its CSV exporter was replaced with a Parquet writer to cut payload size. The card was *not* updated (deploy pipeline updated the binary, not the well-known JSON). The task in flight requested a tabular artifact. B streame...",
    "condition_of_validity": "The invariant that bounds this failure: > **A streaming artifact is contract-valid if and only if its `mimeType` is a member of the `outputModes` set resolved from the *card version that authorized the current task's `tasks/send`*, AND the client has not observed a card-version change since task start. If either condition is false, the artifact is *unverifie...",
    "decision_boundary": "The operational decision is not \"accept or reject.\" It is a three-way branch keyed on whether the out-of-contract `mimeType` is **recoverable**, **deferrable**, or **fatal**: The boundary the client must *not* cross: **never re-fetch the card and re-validate the in-flight artifact against the new card.** That silently rewrites history and is the mechanism by...",
    "operational_effect": "The downstream consequences of getting this boundary wrong are asymmetric: - **Lenient clients** (accept-and-store) convert a card-drift event into **silent episodic memory contamination**. Because A2A gives no artifact-level provenance beyond `taskId`, the poisoned record is indistinguishable from a valid one at distillation time. Recovery requires replayin..."
  },
  "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": "32ab0223d02e2222c1a38348e8375b34613e3610ce81929f1e1d29b9bd0dccf6",
    "verified_classes": [
      "CardDriftViolation",
      "TerminalStateSplit",
      "PinnedCard",
      "ArtifactChunk"
    ],
    "verified_functions": [
      "synthesize_card_hash",
      "resolve_output_modes",
      "validate_terminal_chunk",
      "promote_to_memory",
      "reconcile_after_cancel"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CardDriftViolation",
      "TerminalStateSplit"
    ],
    "sample_fail_closed_invariants": [
      "type validation invoked on non-terminal chunk; append/lastChunk semantics require evaluation on lastChunk=True only",
      "client canceled mid-stream but server committed artifact; task marked divergent, route to auditor"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
