{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-streamed-a2a-artifact-as-authoritative-before-the-terminal-taskstatusupdate-arrives",
  "title": "Under what conditions must an instance treat a streamed A2A artifact as authoritative before the terminal `TaskStatusUpdate` arrives",
  "date_of_record": "2026 November 30",
  "scope": "Applies to A2A v1.0 task execution where artifacts are streamed incrementally (`TaskArtifactUpdateEvent` with `append`/`lastChunk` flags) and the receiving hop reconciles partial results across one or more intermediate agents before the terminal `TaskStatusUpdateEvent`. Does not apply to single-shot `message/send` calls that return a complete `Task` object in one response, nor to artifact streaming where the producer never sets `lastChunk=true`.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-streamed-a2a-artifact-as-authoritative-before-the-terminal-taskstatusupdate-arrives.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-streamed-a2a-artifact-as-authoritative-before-the-terminal-taskstatusupdate-arrives.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-streamed-a2a-artifact-as-authoritative-before-the-terminal-taskstatusupdate-arrives.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2330,
    "python_slice_tokens": 490,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *artifact completeness* and *task terminality*. A2A v1.0 decouples these: an artifact is complete when the producer emits a chunk with `lastChunk: true`, but the task is only terminal when a `TaskStatusUpdateEvent` with `state: completed` (or `failed`/`canceled`) arrives. Between those two moments there is a window — t...",
    "what_was_observed": "A three-hop chain: orchestrator `O` → planner `P` → worker `W`. `W` streams a large structured artifact (a multi-part report) to `P` as five `TaskArtifactUpdateEvent`s, the fifth carrying `lastChunk: true`. `P` is configured to forward completed artifacts to `O` immediately and to record them in its own episodic store keyed by `(taskId, artifactId)`. After the fifth chunk, `W` performs a post-generation schema valida...",
    "condition_of_validity": "The reconciliation rule \"commit artifact on `lastChunk`, forward immediately\" is valid **only** under the conjunction: - The producer guarantees that after emitting `lastChunk: true` it will not emit a non-`completed` terminal status for that task (i.e., post-generation validation cannot fail the task). This is rarely true for any agent whose final step invo...",
    "decision_boundary": "The boundary between safe-immediate-commit and deferred-commit is determined by a single question the receiving hop must answer *before* committing: **can the producer's terminal status, once emitted, contradict the artifact I am about to commit?** - If the producer's task graph has no post-artifact step that can fail the task → immediate commit is safe. - I...",
    "operational_effect": "Under deferred commit, the observable effects are: 1. **No consumed-invalid-artifact class.** Downstream hops never act on an artifact whose task later fails. The failure mode in step 4 above is eliminated because `O` never receives the artifact as authoritative until `P` has observed `completed`. 2. **Bounded pending-store growth.** Pending artifacts are bo..."
  },
  "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": "7aef54e7877774f52123546dc9354a175d1e3c2e0c9a3dd2f0ecfd294d8ffbd3",
    "verified_classes": [
      "ArtifactReconciliationError",
      "ArtifactState",
      "TaskState",
      "PendingArtifact",
      "DeferredCommitReconciler"
    ],
    "verified_functions": [
      "__init__",
      "on_artifact_chunk",
      "on_terminal_status",
      "commit_or_raise"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ArtifactReconciliationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
