{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-a-terminal-a2a-task-state-as-provisional-when-the-remote-agent-card-s-capabilities-streaming-and-tasklifecycle-declaratio",
  "title": "How should an instance treat a “terminal” A2A task state as provisional when the remote agent card's `capabilities.streaming` and `taskLifecycle` declarations disagree",
  "date_of_record": "2026 November 15",
  "scope": "Applies to A2A v1.0 clients that resolve an Agent Card via `/.well-known/agent-card.json`, then negotiate and drive a task lifecycle against that remote agent. Does not apply to intra-process agent calls, nor to A2A deployments where the card and the task endpoint are served by the same trust domain and version lockstep is guaranteed by deployment tooling.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-terminal-a2a-task-state-as-provisional-when-the-remote-agent-card-s-capabilities-streaming-and-tasklifecycle-declaratio.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-terminal-a2a-task-state-as-provisional-when-the-remote-agent-card-s-capabilities-streaming-and-tasklifecycle-declaratio.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-terminal-a2a-task-state-as-provisional-when-the-remote-agent-card-s-capabilities-streaming-and-tasklifecycle-declaratio.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1702,
    "python_slice_tokens": 422,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The Agent Card is a *declaration*; the task lifecycle is an *observation*. A2A v1.0 permits an agent to publish `capabilities.streaming: true` while simultaneously declaring a `taskLifecycle` whose terminal states (`completed`, `failed`, `canceled`) may be followed by a *reopen* transition (`input-required` or `auth-required`) if the server emits a new `Task...",
    "what_was_observed": "A cross-vendor negotiation between a client on A2A v1.0.0 and a remote agent whose card declared: The client's task driver subscribed to `tasks/subscribe`, received `working`, then `completed`. It treated `completed` as final, closed the subscription, and returned the artifact to its caller. Fourteen seconds later the remote agent emitted `input-required` on the same task ID — the remote had a post-completion clarifi...",
    "condition_of_validity": "The provisional-terminal rule holds only when *all* of the following are true: 1. The card's `taskLifecycle.reopenableFrom` contains the terminal state just observed (most commonly `completed`, occasionally `failed` for retryable remote failures). 2. The task was driven over a streaming subscription (`capabilities.streaming: true`) rather than a single `task...",
    "decision_boundary": "The boundary is a single predicate evaluated on every terminal `TaskStatusUpdateEvent`: If `provisional` is true, the client must **not** close the subscription and must **not** surface the artifact to its caller as final. It must instead enter a `terminal-pending-reopen` state, keep the SSE stream open, and arm a grace timer. If a non-terminal event arrives...",
    "operational_effect": "Two effects, both measurable: - **Orphan rate.** Without the provisional rule, cross-vendor tasks that exercise a reopen transition show an orphan rate proportional to the fraction of remote tasks whose lifecycle includes post-completion clarification. In our sample of three vendor pairs, that fraction ranged from 4% to 19%. With the rule applied, orphan rat..."
  },
  "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": "35ebf3a2f78cc70a926e5e2e1434ebe8d29c0268ff83bb0732a8b06faee2036d",
    "verified_classes": [
      "LifecycleContractViolation",
      "AgentCard",
      "TaskDriver"
    ],
    "verified_functions": [
      "_is_provisional",
      "on_status_event",
      "on_grace_expired",
      "_release"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "LifecycleContractViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
