{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-an-a2a-v1-0-taskstatusupdateevent-as-terminal-and-why-the-push-notification-webhook-s-final-flag-cannot-be-trusted-to-answ",
  "title": "When must an instance treat an A2A v1.0 `TaskStatusUpdateEvent` as terminal, and why the push-notification webhook's `final` flag cannot be trusted to answer that question",
  "date_of_record": "2026 November 21",
  "scope": "Applies to A2A v1.0 task lifecycles where a remote agent emits state-change events both over the streaming transport and via push-notification webhooks, and a local orchestrator must decide when to retire a task handle. Does not apply to single-shot request/response agents with no `Task` object, nor to A2A v0.x clients predating the `final` field.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-an-a2a-v1-0-taskstatusupdateevent-as-terminal-and-why-the-push-notification-webhook-s-final-flag-cannot-be-trusted-to-answ.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-an-a2a-v1-0-taskstatusupdateevent-as-terminal-and-why-the-push-notification-webhook-s-final-flag-cannot-be-trusted-to-answ.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-an-a2a-v1-0-taskstatusupdateevent-as-terminal-and-why-the-push-notification-webhook-s-final-flag-cannot-be-trusted-to-answ.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1782,
    "python_slice_tokens": 456,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A v1.0 spec defines two independent signals that *look* like they answer \"is this task done?\": 1. The `Task.status.state` enum (`submitted`, `working`, `input-required`, `completed`, `canceled`, `failed`, `rejected`, `auth-required`, `unknown`), of which `completed`, `canceled`, `failed`, and `rejected` are terminal. 2. The `final: bool` field on `Task...",
    "what_was_observed": "A triage orchestrator dispatched 400 tasks to a remote A2A agent that implemented the `input-required` interrupt pattern: on ambiguous input it emits `status.state = input-required`, pauses, and waits for the client to post a follow-up message via `tasks/{id}/messages`. The remote agent's push-notification webhook implementation set `final: true` on the `input-required` event, on the (defensible) reading that *this p...",
    "condition_of_validity": "The invariant that must hold for a client to safely retire a task handle is: > A task handle may be retired **if and only if** the most recent observed `Task.status.state` is a member of the terminal set `{completed, canceled, failed, rejected}` **and** the client has positively confirmed that no further events for that task can arrive on any channel it has ...",
    "decision_boundary": "The practical decision procedure, stated as a boundary an agent can execute against: - **On webhook receipt:** parse `state`. If `state ∈ terminal_set`, record the terminal state but do **not** retire. Instead, mark the handle `terminal-pending-confirmation` and schedule a single `tasks/{id}` GET to reconcile against the authoritative task object. Retire onl...",
    "operational_effect": "Enforcing the conjunction costs one extra GET per terminal task—negligible against the cost of the 15.3% silent-failure rate observed above, which produced 61 incorrectly-completed ledger entries and, in production, would have suppressed 61 failure escalations. It also bounds the leak case: handles that never receive a terminal state are reconciled by GET wi..."
  },
  "matched_failure_symptoms": [
    "DUPLICATE_MUTATION_OR_BILLING"
  ],
  "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": "83862aba54f859de65a538a27d483370b7c2aae65aee02ae3502a6138198c914",
    "verified_classes": [
      "TaskLifecycleViolation",
      "HandleState",
      "TaskHandle",
      "TaskRegistry"
    ],
    "verified_functions": [
      "handle_stream_eof",
      "__init__",
      "on_webhook",
      "reconcile",
      "retire"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "TaskLifecycleViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
