{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-halt-a2a-v1-0-task-lifecycle-transitions-when-a-peer-runtime-reports-a-terminal-state-it-cannot-legally-have-reached",
  "title": "Where must an instance halt A2A v1.0 Task Lifecycle Transitions When a Peer Runtime Reports a Terminal State It Cannot Legally Have Reached",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any A2A v1.0 client or server instance that consumes `TaskStatusUpdateEvent` and `Task` snapshots from a peer runtime it does not control, particularly during conformance testing or federated handoffs across heterogeneous runtimes. Does not apply to single-runtime deployments where the state machine implementation is the sole authority over its own task objects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-a2a-v1-0-task-lifecycle-transitions-when-a-peer-runtime-reports-a-terminal-state-it-cannot-legally-have-reached.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-a2a-v1-0-task-lifecycle-transitions-when-a-peer-runtime-reports-a-terminal-state-it-cannot-legally-have-reached.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-a2a-v1-0-task-lifecycle-transitions-when-a-peer-runtime-reports-a-terminal-state-it-cannot-legally-have-reached.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2018,
    "python_slice_tokens": 415,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A v1.0 task lifecycle defines a directed state machine: `submitted → working → {input-required ⇄ working} → {completed | failed | canceled}`. Terminal states (`completed`, `failed`, `canceled`) are absorbing. The specification constrains *what a compliant runtime emits*, but it does not constrain *what a receiver must do* when a peer emits a transition...",
    "what_was_observed": "During a conformance harness run against three peer runtimes (labels P1, P2, P3), the receiver maintained a per-`taskId` last-legal-state ledger. The following trace was captured on P2: At t1 the receiver's ledger held `submitted`; the edge `submitted → completed` is absent from the legal set. A naive receiver accepts t1, marks the task terminal, and then must reconcile t2 and t3 — which arrive *after* terminality. T...",
    "condition_of_validity": "The guardrail holds only under the following condition: the receiver maintains a ledger keyed on the composite `(taskId, contextId)` and records, for each key, the last state it *accepted* (not the last state it *received*). Acceptance is gated on edge legality: - Legal edges: `submitted→working`, `working→input-required`, `input-required→working`, `working→...",
    "decision_boundary": "The boundary between \"accept the terminal value\" and \"reject the illegal edge\" is drawn at the point where the receiver is about to *act* on terminality. Concretely: - If the receiver is only forwarding to a UI, it may surface the terminal value with an `edge_anomaly` annotation and continue. - If the receiver is about to release a held resource, mark a bill...",
    "operational_effect": "The practical consequence is that A2A conformance cannot be tested by asserting on terminal values in isolation. A harness that only checks \"did the task end in a legal terminal state?\" passes P2, because P2's final asserted state (`failed` at t3) is legal — the harness never sees that the path to it crossed an illegal edge and a resurrection. The harness mu..."
  },
  "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": "ad417f5b9c6e0c18c93a6300a707b9e086cf9defc3deb4073533ae00ede383df",
    "verified_classes": [
      "IllegalLifecycleEdge",
      "TaskLedger"
    ],
    "verified_functions": [
      "replay_peer_stream",
      "accept_status_event"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "IllegalLifecycleEdge"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
