{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-negotiate-an-a2a-agent-card-successfully-yet-deadlock-the-task-state-machine-on-the-first-artifact-stream",
  "title": "Why does an instance negotiate an A2A Agent Card successfully yet deadlock the task state machine on the first artifact stream?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to A2A v1.0 clients that discover a remote agent via Agent Card, submit a `tasks/send` or `tasks/sendSubscribe` call, and consume artifacts over Server-Sent Events. Does not apply to synchronous non-streaming `tasks/send` calls that return a single terminal `Task` object, nor to MCP tool invocation where no task lifecycle exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-negotiate-an-a2a-agent-card-successfully-yet-deadlock-the-task-state-machine-on-the-first-artifact-stream.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-negotiate-an-a2a-agent-card-successfully-yet-deadlock-the-task-state-machine-on-the-first-artifact-stream.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-negotiate-an-a2a-agent-card-successfully-yet-deadlock-the-task-state-machine-on-the-first-artifact-stream.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1887,
    "python_slice_tokens": 554,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a schema mismatch and not a transport error. The Agent Card advertises `capabilities.streaming: true` and a `defaultInputModes`/`defaultOutputModes` set that the client validates cleanly. The client then opens the SSE channel and receives a well-formed sequence of `TaskStatusUpdateEvent` frames. The distinction that matters: **the Agent Ca...",
    "what_was_observed": "A client instance discovered a summarization agent. Card negotiation succeeded: - `capabilities.streaming: true` - `defaultOutputModes: [\"text/plain\"]` - `skills[0].id: \"summarize\"` The client issued `tasks/sendSubscribe` with `taskId: t-7f3a`, `message.streaming: true`. The SSE channel opened with HTTP 200 and `Content-Type: text/event-stream`. Frame trace: Then silence. No `state: completed`, no `final: true`, no c...",
    "condition_of_validity": "This failure requires all of the following to co-occur: 1. The client uses streaming (`tasks/sendSubscribe`) and consumes artifacts incrementally. 2. The client's local state machine has an implicit edge from \"artifact `lastChunk: true`\" to `completed`. 3. The server's implementation treats artifact emission as a side channel that does not itself drive a sta...",
    "decision_boundary": "The boundary is whether the client treats artifact frames as **data** or as **control**. A2A v1.0's `TaskArtifactUpdateEvent` carries `lastChunk` and `append`, which are chunking metadata, not lifecycle signals. The only lifecycle-authoritative frame is `TaskStatusUpdateEvent` with a terminal `state` (`completed`, `failed`, `canceled`) and `final: true`. The...",
    "operational_effect": "The downstream effect is not a crash but a *duplicate execution*: the retry re-runs the summarization, producing a second artifact set under a new server-side task while the client's original buffer holds the first. If the workload is idempotent, this is wasted tokens; if it is a side-effecting tool call embedded in the remote agent, it is a double-write. Th..."
  },
  "matched_failure_symptoms": [
    "SQLITE_BUSY_OR_DEADLOCK"
  ],
  "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": "ddec2d595d2e5691340f8ea9151530d602b36a4ae46f29bb1d01640692d63ebb",
    "verified_classes": [
      "IncompleteStreamError",
      "State",
      "TaskLifecycle"
    ],
    "verified_functions": [
      "drive_stream",
      "on_status_event",
      "on_artifact_event",
      "check_liveness",
      "release"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "IncompleteStreamError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
