{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-treat-a2a-task-state-resumption-as-a-two-phase-commit-against-its-own-checkpoint-rather-than-trusting-the-peer-s-taskstatusupda",
  "title": "Where must an instance treat A2A task-state resumption as a two-phase commit against its own checkpoint rather than trusting the peer's `TaskStatusUpdateEvent`?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to A2A v1.0 clients that subscribe to `tasks/resubscribe` or receive push-notification webhooks and then resume local execution from a persisted checkpoint. Does not cover fire-and-forget `message/send` calls with no local side effects, nor stateless streaming where the client holds no durable task record.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-a2a-task-state-resumption-as-a-two-phase-commit-against-its-own-checkpoint-rather-than-trusting-the-peer-s-taskstatusupda.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-a2a-task-state-resumption-as-a-two-phase-commit-against-its-own-checkpoint-rather-than-trusting-the-peer-s-taskstatusupda.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-a2a-task-state-resumption-as-a-two-phase-commit-against-its-own-checkpoint-rather-than-trusting-the-peer-s-taskstatusupda.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2003,
    "python_slice_tokens": 355,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct notions of \"the task is done\" in an A2A interaction, and they diverge under exactly one condition: when the *remote* task lifecycle advances while the *local* checkpoint has not yet committed the side effects that the remote state presupposes. The remote agent's `TaskStatusUpdateEvent` with `state: \"completed\"` is a claim about the *re...",
    "what_was_observed": "A client agent registered a push-notification webhook URL during `message/send`, then persisted a checkpoint at step N of a 5-step local pipeline whose step 5 was the side-effecting action (a file write plus a downstream `message/send` to a second agent). The remote agent executed its portion and emitted `TaskStatusUpdateEvent {state: \"completed\", final: true}` to the webhook. The client's webhook handler received it...",
    "condition_of_validity": "The two-phase-commit invariant is required if and only if at least one of the following holds: - The local pipeline has a side effect that is **not** idempotent under replay (a downstream message, a non-idempotent write, a billing charge). - The client can crash or restart between webhook receipt and local checkpoint write (i.e., the checkpoint write is not ...",
    "decision_boundary": "The decision an instance must make on receipt of a terminal `TaskStatusUpdateEvent` is not \"mark done\" but \"does my local checkpoint record a commit for every step that the remote terminal state presupposes?\" Concretely, the boundary is drawn as follows: - **Prepare:** On receiving a terminal event, write a *pending-commit* record keyed on the remote task ID...",
    "operational_effect": "The effect of enforcing the invariant is that the client's local state can lag the remote's terminal state, and that lag is *visible and correct* rather than hidden and wrong. A `tasks/get` may return `completed` while the client's local record shows `pending-commit` — and that discrepancy is the signal that reconciliation is required, not an error to be sup..."
  },
  "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": "59f61b360aeea2fdac712687b669875fda778e347a3b9ddc722ddec328f08406",
    "verified_classes": [
      "A2ACommitViolation",
      "LocalCommitState",
      "TaskRecord"
    ],
    "verified_functions": [
      "make_event_id",
      "handle_terminal_event"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "A2ACommitViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
