{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a-peer-s-declared-a2a-task-state-vocabulary-against-the-terminal-states-it-actually-emits-mid-handoff",
  "title": "How should an instance reconcile a peer's declared A2A task-state vocabulary against the terminal states it actually emits mid-handoff",
  "date_of_record": "2026 November 29",
  "scope": "Applies to A2A v1.0 task lifecycle interoperation between heterogeneous vendors where the receiving agent drives a `tasks/get` / `tasks/send` state machine against a peer whose Agent Card declares a `capabilities` and `skills` surface but whose terminal-state emission diverges from the declared schema. Does not apply to single-vendor intra-cluster delegation or to transport-level (HTTP/SSE) failure, which is handled by the transport layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-peer-s-declared-a2a-task-state-vocabulary-against-the-terminal-states-it-actually-emits-mid-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-peer-s-declared-a2a-task-state-vocabulary-against-the-terminal-states-it-actually-emits-mid-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-peer-s-declared-a2a-task-state-vocabulary-against-the-terminal-states-it-actually-emits-mid-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2008,
    "python_slice_tokens": 391,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The Agent Card is a *declaration*, not a *contract enforcement*. A2A v1.0 requires the card to publish `capabilities` (e.g. `streaming`, `pushNotifications`, `stateTransitionHistory`) and a `skills[]` array, and the task lifecycle spec defines the canonical state set: `submitted → working → (input-required | completed | failed | canceled)`. What the card doe...",
    "what_was_observed": "A caller instance (vendor A) delegated a long-running extraction task to a peer (vendor B) discovered via `/.well-known/agent.json`. B's card declared `capabilities.stateTransitionHistory: true` and `skills[0].inputModes/outputModes` consistent with the request. The caller's task state machine was compiled from the spec's canonical set with edges: `submitted→working`, `working→{input-required, completed, failed, canc...",
    "condition_of_validity": "The guardrail that bounds this failure is a **two-phase terminal acknowledgment** combined with **declared-vocabulary closure checking at discovery time, not at transition time**. Specifically: - At discovery, the caller must parse the peer card and, if `capabilities.stateTransitionHistory` is true, fetch at least one historical task (or the card's `skills[]...",
    "decision_boundary": "The boundary between \"hold\" and \"abandon\" is drawn by **remote resolvability plus payload stability**, not by wall-clock alone: - If remote state is unknown (`peer_undefined_state`) and the peer is resolvable: **hold**. Do not emit a local terminal. Re-poll. The peer may be in a vendor-specific backoff that the card failed to enumerate. - If remote state is ...",
    "operational_effect": "The practical consequence is that a caller's task state machine must be built as an **open-world machine with a holding pen**, not a closed canonical machine. Closed machines compiled directly from the A2A spec's state list will mis-classify every vendor extension state as a protocol violation and will race the terminal-payload window on `completed`. The cos..."
  },
  "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": "ee0e053e7a0310a12ba2a5fdddcb32c518fe6d3c638d2b00dfc0c7c5b739920b",
    "verified_classes": [
      "A2ATerminalDivergenceError",
      "RemoteTaskView",
      "LocalTaskHandle"
    ],
    "verified_functions": [
      "reconcile",
      "assert_no_illegal_terminal"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "A2ATerminalDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
