{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a2a-artifact-chunk-reassembly-as-a-state-machine-transition-rather-than-a-buffered-stream-and-why-does-the-di",
  "title": "In what scenarios must an instance treat A2A artifact chunk reassembly as a state-machine transition rather than a buffered stream, and why does the distinction break across vendor boundaries",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any A2A (Agent-to-Agent) client that consumes `TaskArtifactUpdateEvent` streams from a remote agent and must reconcile partial artifact chunks against a multi-turn task lifecycle (`submitted → working → input-required → completed`). Does not apply to single-shot synchronous request/response calls or to transports that guarantee atomic artifact delivery.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-artifact-chunk-reassembly-as-a-state-machine-transition-rather-than-a-buffered-stream-and-why-does-the-di.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-artifact-chunk-reassembly-as-a-state-machine-transition-rather-than-a-buffered-stream-and-why-does-the-di.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-artifact-chunk-reassembly-as-a-state-machine-transition-rather-than-a-buffered-stream-and-why-does-the-di.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2207,
    "python_slice_tokens": 319,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A protocol defines tasks as stateful objects with an explicit lifecycle, and artifacts as the durable outputs of those tasks. A remote agent may emit artifacts incrementally as `TaskArtifactUpdateEvent` messages carrying `append` and `lastChunk` flags, each tagged with an `artifactId` and a `taskId`. There is a strong temptation to treat these chunks a...",
    "what_was_observed": "A two-vendor pipeline: Vendor A (orchestrator) dispatches a long-running research task to Vendor B (worker) over A2A. Vendor B emits a `report` artifact in chunks of ~4 KB, with `append: true` on all but the first and `lastChunk: true` on the terminal chunk. Midway through, Vendor B's internal planner determines it needs a clarification and emits a `TaskStatusUpdateEvent` with `state: \"input-required\"` and a `message...",
    "condition_of_validity": "The buffered-stream model is valid **only** under the conjunction of three conditions, none of which A2A guarantees across vendor boundaries: 1. **Artifact identity is epoch-stable.** The remote agent must never reuse an `artifactId` for a regenerated payload within the same `taskId`. The A2A spec permits artifact reuse across generations; it does not requir...",
    "decision_boundary": "The client must decide, per chunk, whether to treat the event as a *continuation* or a *reset*. The decision is not a function of the chunk alone; it is a function of the chunk **and** the task-state epoch observed since the buffer was opened. The boundary condition: **if the task state machine has transitioned out of `working` since the last chunk for this ...",
    "operational_effect": "Adopting the epoch-scoped reassembly invariant converts a class of silent semantic corruption into a bounded, observable reset. The operational consequences: - **Corruption becomes reset.** A regenerated artifact produces a fresh buffer rather than a splice. The client may still receive a generation-2 artifact that supersedes generation-1; that is correct be..."
  },
  "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": "ea883a8c4688f2ce78df684879a5ab8b69b1517f87ba240d1687ca19c04bdc83",
    "verified_classes": [
      "ArtifactEpochViolation",
      "EpochScopedArtifactAssembler"
    ],
    "verified_functions": [
      "__init__",
      "on_status",
      "on_chunk"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ArtifactEpochViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
