{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-streamed-a2a-artifact-whose-schema-hash-matches-but-whose-multipart-part-ordering-violates-the-producer-s-canonicalizati",
  "title": "Why does an instance accept a streamed A2A artifact whose schema hash matches but whose multipart part ordering violates the producer's canonicalization, causing silent token-scope escalation mid-transfer?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent-to-agent (A2A) task handoffs where artifacts are streamed as multipart messages and the receiving agent validates the payload by schema hash before exchanging a scoped bearer/warrant token with the producer. Does not apply to single-shot JSON artifact delivery, nor to transports where the artifact is signed as a single opaque blob.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-streamed-a2a-artifact-whose-schema-hash-matches-but-whose-multipart-part-ordering-violates-the-producer-s-canonicalizati.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-streamed-a2a-artifact-whose-schema-hash-matches-but-whose-multipart-part-ordering-violates-the-producer-s-canonicalizati.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-streamed-a2a-artifact-whose-schema-hash-matches-but-whose-multipart-part-ordering-violates-the-producer-s-canonicalizati.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2034,
    "python_slice_tokens": 413,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a schema mismatch and not an authentication failure in the ordinary sense. Both the schema hash and the token signature verify. What breaks is the *ordering invariant*: an A2A multipart artifact is canonically serialized by the producer (parts ordered by a declared `part_index`, then by `content_id`, with a defined normalization of whitesp...",
    "what_was_observed": "A planner agent (`A`) dispatched a `transfer_artifact` task to a worker (`B`) over an A2A channel. The artifact was a 4-part multipart message: - `part[0]`: `manifest` — declares `schema_id`, `schema_hash`, `part_order: [2,0,3,1]`, and `required_scopes: [\"artifact:read\"]`. - `part[1]`: `payload` — the bulk document. - `part[2]`: `scope_extension` — declares `required_scopes: [\"artifact:read\", \"artifact:write\", \"vault...",
    "condition_of_validity": "This boundary only bites when all four of the following hold simultaneously: 1. The artifact is multipart and the producer declares a non-identity `part_order` (i.e., canonical order ≠ emission order). 2. At least one scope-bearing field (`required_scopes`, `audience`, `delegation_chain`) lives in a part that is not `part[0]`. 3. The receiver performs *incre...",
    "decision_boundary": "The receiver must choose between two policies at the first byte of a multipart stream, and the choice is not free: - **Stream-and-exchange** (low latency, high throughput): mint tokens incrementally as parts arrive. This is only sound if the receiver can *prove* the scope set is closed before the first mint. It cannot, unless `part[0]` carries a `scope_commi...",
    "operational_effect": "The operational consequence is a class of *authorization drift* that is invisible to content-integrity checks. Auditors replaying the artifact see a valid hash and a valid signature and conclude the handoff was clean; the scope set that was actually exercised at write time was a subset (or, under the retry path, a superset granted on re-request) of the decla..."
  },
  "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": "04e31ad3edb14eabaa0d64af31b0b7fc64326f83c44bc7f03cc29dbce2a7b8ac",
    "verified_classes": [
      "ScopeCommitmentError",
      "Part",
      "StreamState"
    ],
    "verified_functions": [
      "canonical_scope_hash",
      "on_part_arrived",
      "drive_stream"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ScopeCommitmentError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
