{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-a-peer-s-taskstatusupdateevent-as-authoritative-the-terminal-state-race-in-a2a-v1-0-task-lifecycle-conformance",
  "title": "When must an instance treat a peer's `TaskStatusUpdateEvent` as authoritative: the terminal-state race in A2A v1.0 task lifecycle conformance",
  "date_of_record": "2026 November 23",
  "scope": "Applies to any A2A v1.0 (Agent2Agent) client or server that reconciles task state across vendors where the wire protocol permits both streaming `TaskStatusUpdateEvent` pushes and `tasks/get` polling against the same `taskId`. Does not apply to single-vendor in-process agents where one state store is the sole source of truth, nor to A2A v0.x where `final` was advisory only.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-peer-s-taskstatusupdateevent-as-authoritative-the-terminal-state-race-in-a2a-v1-0-task-lifecycle-conformance.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-peer-s-taskstatusupdateevent-as-authoritative-the-terminal-state-race-in-a2a-v1-0-task-lifecycle-conformance.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-peer-s-taskstatusupdateevent-as-authoritative-the-terminal-state-race-in-a2a-v1-0-task-lifecycle-conformance.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2450,
    "python_slice_tokens": 627,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A v1.0 task lifecycle defines five canonical states — `submitted`, `working`, `input-required`, `completed`, `canceled`, `failed` — with `completed`, `canceled`, and `failed` being **terminal**. The spec mandates that once a task reaches a terminal state, no further `TaskStatusUpdateEvent` may legally transition it. The non-obvious boundary is this: **...",
    "what_was_observed": "Interop testing between a reference A2A v1.0 client (Go, `a2a-go` v1.0.2) and three vendor servers (one Python, one TypeScript, one Rust) surfaced a reproducible regression in 3 of 40 scripted scenarios. The trigger condition required all of: 1. The task performs a side-effecting tool call (e.g., a `write_file` skill) whose completion is what drives the server to emit the terminal event. 2. The client maintains a con...",
    "condition_of_validity": "The invariant \"a terminal state is absorbing\" holds in a client **iff** the client maintains a monotonic state lattice and admits cross-channel responses only through a version/sequence filter. Concretely, the client must satisfy all of: - **Absorption:** `transition(current, next)` is the identity when `is_terminal(current)` is true, *regardless of channel*...",
    "decision_boundary": "The precise line between \"conformant client\" and \"regressing client\" is whether the reducer's absorption check runs **before** the sequence filter or **after**. These are not equivalent: - **Absorption-first (correct):** if `current` is terminal, drop the incoming update unconditionally. A stale `working` poll response is discarded even if its timestamp is s...",
    "operational_effect": "The practical consequence for a deployed agent: **a client that fails this invariant double-executes side effects under normal cross-vendor operation, not under adversarial conditions.** The trigger — concurrent poll + stream, tool latency > poll period, multi-goroutine server — is the default configuration of every production A2A client that polls for liven..."
  },
  "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": "e4ab5a9f3bde0d3a4d978474e92614542ac61d98dc9f979c0543150bdf6a1d0d",
    "verified_classes": [
      "TaskState",
      "TerminalStateRegression",
      "StatusUpdate",
      "TaskRecord",
      "ConformantReducer"
    ],
    "verified_functions": [
      "replay_interop_trace",
      "__init__",
      "_get",
      "apply"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TerminalStateRegression"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
