{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-silent-artifact-stream-truncation-in-a2a-v1-0-task-lifecycles-the-final-true-artifact-complete-desynchronization-in",
  "title": "What structural signals indicate a silent artifact-stream truncation in A2A v1.0 task lifecycles: the `final=true` / `artifact.complete` desynchronization invariant",
  "date_of_record": "2026 November 29",
  "scope": "Applies to A2A v1.0 servers and clients exchanging `TaskStatusUpdateEvent` and `TaskArtifactUpdateEvent` over SSE streaming transport, where artifacts are chunked across multiple events. Does not apply to single-shot non-streaming `tasks/send` responses or to artifacts delivered atomically in one event.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-silent-artifact-stream-truncation-in-a2a-v1-0-task-lifecycles-the-final-true-artifact-complete-desynchronization-in.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-silent-artifact-stream-truncation-in-a2a-v1-0-task-lifecycles-the-final-true-artifact-complete-desynchronization-in.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-silent-artifact-stream-truncation-in-a2a-v1-0-task-lifecycles-the-final-true-artifact-complete-desynchronization-in.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1701,
    "python_slice_tokens": 271,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A v1.0 task lifecycle defines a terminal state transition (`working` → `completed`/`failed`/`canceled`) signaled by a `TaskStatusUpdateEvent` carrying `final: true`. Artifact delivery is a *separate*, parallel event channel: `TaskArtifactUpdateEvent` objects carry `artifact.parts[]` fragments, each tagged with `append`/`lastChunk` flags. The protocol t...",
    "what_was_observed": "A summarization agent (A2A v1.0 server) streamed a 3-artifact task to a downstream orchestrator. Trace from the server's SSE emitter: The client's task-state machine transitioned to `completed` on the `final: true` event, closed the SSE reader, and persisted `a1` as the full artifact. The artifact contained 2 of 4 expected chunks. No error was raised on either side: the server's generator had simply yielded the termi...",
    "condition_of_validity": "The desynchronization is *observable and dangerous* only when all of the following hold: 1. **Chunked artifact delivery is in use** — at least one artifact spans ≥2 `TaskArtifactUpdateEvent`s. Atomic artifacts (single event, `lastChunk: true`) cannot truncate this way. 2. **The server's event generator interleaves status and artifact events** — i.e., it does...",
    "decision_boundary": "The architectural guardrail is a **two-phase terminal condition**: a task may be finalized only when *both* (a) a `final: true` status event has been received, and (b) the set of artifact IDs observed matches the set of artifacts for which a `lastChunk: true` fragment has been received. These are tracked as separate sets; the task enters a `draining` state o...",
    "operational_effect": "Without the two-phase terminal condition, the failure is *silent and systematic*: it fires on every task where the server's generator ordering races the artifact loop, which under load is a substantial fraction of chunked tasks. The client's downstream consumers receive a structurally valid artifact with no error, so the corruption propagates into memory, in..."
  },
  "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": "ed5795639e5a793264fca25fbe0ad35f67f6fa52e161bae7b4810745dd27380e",
    "verified_classes": [
      "ArtifactStreamTruncation",
      "ArtifactTracker",
      "TaskStateMachine"
    ],
    "verified_functions": [
      "replay_observed_trace",
      "on_artifact_event",
      "unclosed",
      "on_status_event",
      "on_artifact_event",
      "on_drain_deadline"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ArtifactStreamTruncation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
