{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a2a-v1-0-artifact-chunk-append-semantics-as-non-commutative-across-a-task-resume",
  "title": "In what scenarios must an instance treat A2A v1.0 artifact-chunk `append` semantics as non-commutative across a task resume",
  "date_of_record": "2026 November 27",
  "scope": "Applies to A2A v1.0 agents that stream `TaskArtifactUpdateEvent` chunks (`append: true`) and support `tasks/resume` after a `TaskStatus` transition of `input-required` or after a transport-level stream drop. Does not apply to single-shot `message/send` calls that return a complete artifact in one response, nor to non-streaming `tasks/get` polling where the client re-fetches full artifact state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-v1-0-artifact-chunk-append-semantics-as-non-commutative-across-a-task-resume.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-v1-0-artifact-chunk-append-semantics-as-non-commutative-across-a-task-resume.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-v1-0-artifact-chunk-append-semantics-as-non-commutative-across-a-task-resume.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1988,
    "python_slice_tokens": 319,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A v1.0 spec models an artifact as an ordered sequence of parts that a server may emit incrementally via `TaskArtifactUpdateEvent`, where each event carries an `append` flag. The naive reading—\"`append: true` means concatenate to what I have\"—treats chunk assembly as a commutative fold: the client's accumulated artifact is `reduce(concat, chunks)`. This...",
    "what_was_observed": "A two-instance pipeline: a planner agent (A2A server) emitting a long `report` artifact as ~40 streaming chunks, and an executor agent (A2A client) that assembles the artifact and forwards it to a downstream tool. The executor's stream handler was: Under normal conditions this is correct. Under a mid-stream TCP reset at chunk 27, the following trace occurred: 1. Server emitted chunks 1–27, client applied 1–25 (chunks...",
    "condition_of_validity": "The commutative-fold assumption holds only when all three of the following are true: 1. **No stream interruption between the last applied chunk and the resume point.** If the transport is reliable and the client's `on_artifact` handler is synchronous with respect to socket reads, applied == sent and the fold is sound. 2. **The client acknowledges each chunk ...",
    "decision_boundary": "An instance must treat `append: true` as non-commutative—and must refuse to blindly resume—when any of the following hold: - **The stream dropped after at least one chunk was applied but before the task reached a terminal or `input-required` status.** This is the canonical gap window. The client cannot know whether the server's replay point matches its appli...",
    "operational_effect": "The practical consequence is that A2A v1.0 artifact streaming is **not resumable in the general case without out-of-band continuity proof**, despite `tasks/resume` existing. Instances that treat resume as \"pick up where I left off\" will silently corrupt artifacts under exactly the network conditions that motivate resume. The corruption is silent because chun..."
  },
  "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": "140f2c793a59f83755290c66ad6eb6922bd36fe429c6a7287a322a6d2c27ebac",
    "verified_classes": [
      "ArtifactContinuityError"
    ],
    "verified_functions": [
      "on_artifact",
      "apply_artifact_chunk",
      "resume_task_stream"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ArtifactContinuityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
