{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-a-resuming-a2a-client-from-re-negotiating-artifact-mime-types-against-a-peer-whose-agent-card-has-silently-drifted-mid-task",
  "title": "Which invariants prevent a resuming A2A client from re-negotiating artifact MIME types against a peer whose Agent Card has silently drifted mid-task",
  "date_of_record": "2026 November 29",
  "scope": "Applies to A2A v1.0 clients that resume an interrupted task (transport drop, client restart, or long `input-required` pause) and re-fetch the peer's Agent Card before continuing. Does not apply to single-shot tasks that complete within one transport session, nor to peers that pin card versions via signed ETags.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-resuming-a2a-client-from-re-negotiating-artifact-mime-types-against-a-peer-whose-agent-card-has-silently-drifted-mid-task.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-resuming-a2a-client-from-re-negotiating-artifact-mime-types-against-a-peer-whose-agent-card-has-silently-drifted-mid-task.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-resuming-a2a-client-from-re-negotiating-artifact-mime-types-against-a-peer-whose-agent-card-has-silently-drifted-mid-task.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1842,
    "python_slice_tokens": 406,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different reasons an A2A task resumes with a mismatched artifact contract, and conflating them is the root cause of most mid-task negotiation failures: 1. **Task-local drift** — the peer legitimately changed the artifact schema *for this task* (e.g., it escalated from `text/plain` interim artifacts to `application/vnd.chart+json` f...",
    "what_was_observed": "A client submitted `tasks/send` with `acceptedOutputModes: [\"application/json\"]`. The peer accepted, entered `working`, emitted one interim `text/plain` artifact, then the HTTP/2 stream reset. The client persisted its task handle and resumed 40 seconds later by (a) re-fetching `/.well-known/agent.json` and (b) validating the in-flight task's `acceptedOutputModes` against the freshly fetched card's `defaultOutputModes...",
    "condition_of_validity": "Re-validating an in-flight task's artifact modes against a freshly fetched Agent Card is only sound when **all** of the following hold: - The card is fetched with an integrity token (signed card or strong `ETag`) and the token matches the one captured at `tasks/send`. If the token differs, the card is a *different contract* and MUST NOT be used to validate a...",
    "decision_boundary": "The boundary is between *discovery-time capability negotiation* and *task-time contract enforcement*. Formally: - `tasks/send` with `acceptedOutputModes = M` freezes the task's artifact contract to `M`. The peer MUST produce artifacts in `M` or fail the task with a task-layer error (`UnsupportedModeError` scoped to the task), never silently substitute. - On ...",
    "operational_effect": "Clients that re-derive artifact validity from the live card on every resume exhibit a characteristic failure signature: spurious `canceled` terminal states on tasks whose peers produced valid artifacts, `TaskNotCancelableError` storms when the cancel races artifact delivery, and silent artifact loss (the artifact exists at the peer but is never fetched becau..."
  },
  "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": "fbbd21c91b6097fba4e04ce1060e4f881769fa8650616776e8a97f0ae538b37d",
    "verified_classes": [
      "ContractDriftError",
      "ContractInvalidCancelError",
      "AgentCard",
      "TaskHandle"
    ],
    "verified_functions": [
      "resume_task",
      "cancel_on_mode_mismatch"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ContractDriftError",
      "ContractInvalidCancelError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
