{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-terminal-state-divergence-in-a2a-task-lifecycle-conformance-when-both-peers-certify-to-the-same-state-machine-version",
  "title": "How does an instance detect terminal-state divergence in A2A task lifecycle conformance when both peers certify to the same state machine version",
  "date_of_record": "2026 November 29",
  "scope": "Applies to Agent-to-Agent (A2A) task lifecycle conformance and interoperability certification where two independently certified agents exchange `Task` objects whose `status.state` transitions are validated by each peer's local state machine. Does not apply to single-agent internal tool loops, nor to transport-level (HTTP/gRPC) retry semantics absent task-object state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-terminal-state-divergence-in-a2a-task-lifecycle-conformance-when-both-peers-certify-to-the-same-state-machine-version.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-terminal-state-divergence-in-a2a-task-lifecycle-conformance-when-both-peers-certify-to-the-same-state-machine-version.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-terminal-state-divergence-in-a2a-task-lifecycle-conformance-when-both-peers-certify-to-the-same-state-machine-version.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1833,
    "python_slice_tokens": 430,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Certification suites for A2A task lifecycle typically validate each agent against a *reference state machine*: a table of legal transitions (`submitted → working → input-required → working → completed`, `working → failed`, `working → canceled`, and the terminal set `{completed, failed, canceled}`). Passing certification means the agent accepts and emits only...",
    "what_was_observed": "Two certified agents, `planner` and `executor`, negotiated `A2A/lifecycle@1.2`. Both passed the vendor suite: every emitted `TaskStatusUpdateEvent` was a legal edge, every terminal state was in the allowed set, and every `final: true` event was preceded by a legal predecessor. During an interoperability run, the harness injected a `tasks/cancel` from the client while `executor` sat in `input-required` awaiting a clar...",
    "condition_of_validity": "The per-agent conformance guarantee is valid only under the assumption that **the peer's accepted transition set is a subset of the observer's legal-predecessor set for every terminal state**. Formally, for terminal state `T` and any non-terminal `S`, if peer `P` can transition `S → T` and observer `O` can transition `S → S'`, then `O` must accept `S' → T` (...",
    "decision_boundary": "An instance must decide, on receiving a terminal status for a task it holds in a non-terminal state, whether to (a) accept the terminal as authoritative and suppress/roll back its own subsequent non-terminal emissions, or (b) reject as a conformance violation and raise to the harness. The boundary is: - **Accept-and-collapse** when the terminal state's prede...",
    "operational_effect": "Without the cross-agent invariant, certification produces false confidence: two 100%-conformant agents generate joint traces with orphaned artifacts, double terminals, and status regressions that the suite never scores. The observable failures are (1) artifacts referenced by a `canceled` task, (2) `working` events emitted after a peer's `final: true`, and (3..."
  },
  "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": "d9feb032d654bbc6e83454c9f9c3c12da9917f38e32fe12c99ce3bc8f4aac3b6",
    "verified_classes": [
      "TaskState",
      "TerminalDivergenceError",
      "StatusEvent",
      "LocalTaskView"
    ],
    "verified_functions": [
      "certify_joint_trace",
      "emit",
      "receive_terminal"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TerminalDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
