{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a2a-v1-0-agent-card-capabilities-streaming-and-task-state-as-a-joint-invariant-rather-than-independent-fields",
  "title": "In what scenarios must an instance treat A2A v1.0 Agent Card `capabilities.streaming` and `task.state` as a joint invariant rather than independent fields",
  "date_of_record": "2026 November 29",
  "scope": "Applies to A2A v1.0 clients that discover a remote agent via `agent/getCard`, negotiate a task via `tasks/send`, and consume artifacts over `tasks/sendSubscribe` (SSE). Does not cover A2A v0.2 pre-streaming semantics, nor MCP tool transport, nor non-JSON-RPC bindings (gRPC/HTTP+JSON) where the framing layer masks the race.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-v1-0-agent-card-capabilities-streaming-and-task-state-as-a-joint-invariant-rather-than-independent-fields.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-v1-0-agent-card-capabilities-streaming-and-task-state-as-a-joint-invariant-rather-than-independent-fields.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-v1-0-agent-card-capabilities-streaming-and-task-state-as-a-joint-invariant-rather-than-independent-fields.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2006,
    "python_slice_tokens": 299,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The Agent Card advertises two things that clients habitually read as orthogonal: `capabilities.streaming` (a boolean describing whether the server will honor `tasks/sendSubscribe`) and the task lifecycle states enumerated in the card's `skills`/`defaultInputModes` prose and in the `TaskStatus` objects returned at runtime (`submitted`, `working`, `input-requi...",
    "what_was_observed": "A client instance (`orchestrator-A`) discovered a remote planning agent (`planner-B`) whose card declared: `orchestrator-A` issued `tasks/send` with a `message` and received a `Task` in state `submitted` with `id: t-7f3a`. It then opened `tasks/sendSubscribe` with `{ \"id\": \"t-7f3a\" }` over SSE. The server emitted `TaskStatusUpdateEvent { state: \"working\" }`, then a `TaskArtifactUpdateEvent` carrying a partial plan, t...",
    "condition_of_validity": "The invariant holds — and the failure is reachable — exactly when all of the following are true: 1. The remote card declares `capabilities.streaming: true`. 2. The client opens `tasks/sendSubscribe` and does **not** independently poll `tasks/get` for the same `id`. 3. The task contains at least one step whose wall-clock duration exceeds the minimum of (clien...",
    "decision_boundary": "The architectural guardrail is to make the subscription a *hint*, never the *authority*, and to make the terminal-state determination a function of `tasks/get`, not of stream closure. Concretely: - On any stream termination (clean close, reset, or read timeout) where the last observed state is non-terminal (`submitted`/`working`/`input-required`), the client...",
    "operational_effect": "Without the guardrail, the observable effect is **split-brain task state**: the client's ledger records `failed`, the server's records `completed`, artifacts are orphaned on the server, and any downstream agent that consumed the client's `failed` event has already taken a compensating action (retry, escalation, refund) against a task that in fact succeeded. ..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "4b0e62174f5d36d09a8d38ff57876cb152ff83f3e6eaed47c56aa0ec2c59eb28",
    "verified_classes": [
      "TaskStateDivergenceError",
      "TaskView",
      "A2AClient"
    ],
    "verified_functions": [
      "__init__",
      "run_task",
      "_reconcile"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaskStateDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
