{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-an-a2a-artifact-whose-parts-hash-matches-but-whose-mimetype-declared-decoder-disagrees-with-the-sender-s-schema-dialect",
  "title": "When must an instance refuse an A2A artifact whose `parts[]` hash matches but whose `mimeType`-declared decoder disagrees with the sender's schema dialect",
  "date_of_record": "2026 November 26",
  "scope": "Applies to A2A v1.0 task delegation where a callee agent receives an `Artifact` (or streaming `TaskArtifactUpdateEvent`) whose integrity is attested only by a content hash over serialized `parts[]`, and where the `mimeType` (or `metadata.schema` hint) is used to select a decoder. Does not cover transport-level TLS failures, nor cases where the sender supplies an explicit `schemaDialect` field with a matching validator on the receiver.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-an-a2a-artifact-whose-parts-hash-matches-but-whose-mimetype-declared-decoder-disagrees-with-the-sender-s-schema-dialect.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-an-a2a-artifact-whose-parts-hash-matches-but-whose-mimetype-declared-decoder-disagrees-with-the-sender-s-schema-dialect.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-an-a2a-artifact-whose-parts-hash-matches-but-whose-mimetype-declared-decoder-disagrees-with-the-sender-s-schema-dialect.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1993,
    "python_slice_tokens": 365,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways an artifact can be \"valid\" across an A2A boundary, and they are routinely conflated: 1. **Byte-integrity validity** — the `parts[]` you received hash to the digest the sender committed to in `metadata.sha256` (or equivalent). This proves *you got exactly what they sent*, not that you can *interpret* it. 2. **Semantic validity** — the recei...",
    "what_was_observed": "A planner agent (`A`) delegated a structured extraction task to a worker (`B`) over A2A v1.0. `A` produced an artifact with `mimeType: \"application/json\"` containing a JSON document serialized under a dialect where dates are ISO-8601 strings and numeric IDs are strings (a \"stringly-typed\" profile common in older internal tooling). The digest was computed over the raw `parts[].text` bytes and placed in `metadata.sha25...",
    "condition_of_validity": "The hash-only gate is a valid acceptance criterion **if and only if** one of the following holds: - The receiver's decoder for the declared `mimeType` is *lossless and dialect-agnostic* — i.e., it preserves the wire representation (strings stay strings, leading zeros survive) and defers all type interpretation to a later, explicit schema-binding step. A JSON...",
    "decision_boundary": "The receiver must draw the line at a specific point: **between integrity admission and semantic admission.** These are two gates, not one. - **Gate 1 (integrity):** bytes hash to the committed digest. Cheap, deterministic, always run. - **Gate 2 (semantic):** the decoded structure, re-canonicalized under the sender's declared (or inferred) dialect, produces ...",
    "operational_effect": "When the two-gate discipline is enforced: - Decode-divergence failures move from *reconciliation time* (after both agents have committed state, expensive to unwind, ambiguous fault attribution) to *boundary time* (the artifact is refused before it enters working state, fault is unambiguously the sender's dialect mismatch, and the task can be renegotiated in ..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "92d98e71505a96c8b852ee37a6fb7afb6da7d4c2324559d85654303fc90339a3",
    "verified_classes": [
      "ArtifactDecodeDivergence",
      "Artifact"
    ],
    "verified_functions": [
      "_canonical",
      "_decode_preserving",
      "_decode_coercing",
      "admit_artifact"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ArtifactDecodeDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
