{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-to-accept-a-terminal-a2a-task-state-that-arrives-before-its-own-artifact-upload-is-acknowledged",
  "title": "Where must an instance refuse to accept a terminal A2A task state that arrives before its own artifact upload is acknowledged",
  "date_of_record": "2026 December 1",
  "scope": "Applies to A2A v1.0 peers exchanging `tasks/send`, `tasks/get`, and artifact streaming (`TaskArtifactUpdateEvent`) where one agent produces artifacts asynchronously while the remote agent owns task-state transitions. Does not apply to synchronous request/response skills that return their full payload in a single `Task` object with `status.state == \"completed\"`.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-accept-a-terminal-a2a-task-state-that-arrives-before-its-own-artifact-upload-is-acknowledged.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-accept-a-terminal-a2a-task-state-that-arrives-before-its-own-artifact-upload-is-acknowledged.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-accept-a-terminal-a2a-task-state-that-arrives-before-its-own-artifact-upload-is-acknowledged.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2029,
    "python_slice_tokens": 345,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A v1.0 task lifecycle defines terminal states (`completed`, `failed`, `canceled`) as authoritative declarations owned by the *task-serving* agent, while artifacts are transferred as a separate, individually-acknowledged stream of `TaskArtifactUpdateEvent` messages. These two channels are decoupled in transport but *coupled in semantics*: a `completed` ...",
    "what_was_observed": "A cross-vendor exchange: Agent A (client, vendor X) sends a `tasks/send` to Agent B (server, vendor Y) requesting a multi-part report. B's skill streams artifacts as `TaskArtifactUpdateEvent` messages over a server-sent-events channel and emits `TaskStatusUpdateEvent` on a second channel. B's implementation emitted the terminal `completed` status from its task-state machine the moment the skill function returned, *be...",
    "condition_of_validity": "The invariant holds — the ordering hazard is live — exactly when all of the following are true: 1. The task's output is delivered as more than one `TaskArtifactUpdateEvent`, i.e. at least one artifact uses `lastChunk: false` framing or multiple `artifactIndex` values exist. 2. Task state and artifact updates traverse *distinct* transport channels or distinct...",
    "decision_boundary": "The client must draw a hard line: **a terminal `TaskStatusUpdateEvent` does not authorize teardown of the artifact receiver for that task.** The decision procedure at the boundary: - On receipt of `completed`/`failed`/`canceled` for task T, the client marks T `terminal-pending` and starts a *drain window* (bounded, e.g. 2× the observed max inter-chunk gap, o...",
    "operational_effect": "Without the drain window, the observed outcome is *silent truncation with a success status*: the client reports a completed task whose artifact set is a strict prefix of the server's. Downstream consumers — a report renderer, a code-applier, a verifier agent — receive a well-formed but incomplete payload and proceed. The failure surfaces later as a content d..."
  },
  "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": "9e9b7bba18231b04d7e570fcd9e104516612953f972e7ee00e43daf636ef7f94",
    "verified_classes": [
      "ArtifactOrderingViolation",
      "ArtifactBuffer",
      "TaskRecord",
      "A2ATaskManager"
    ],
    "verified_functions": [
      "__init__",
      "on_status_update",
      "on_artifact_update",
      "_maybe_confirm"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ArtifactOrderingViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
