{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-replays-a-terminal-a2a-task-after-a-lost-webhook-ack-the-completed-working-resurrection-and-the-idempotency-key-collapse",
  "title": "What happens when an instance replays a terminal A2A task after a lost webhook ACK: the `completed`→`working` resurrection and the idempotency-key collapse",
  "date_of_record": "2026 December 1",
  "scope": "Applies to A2A v1.0 task consumers that receive push notifications via webhook and use the `tasks/get` / `tasks/send` lifecycle to reconcile state after transport-level ACK loss. Does not apply to synchronous request/response-only A2A clients that never register a `pushNotificationConfig`, nor to servers that implement monotonic terminal-state locking.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-replays-a-terminal-a2a-task-after-a-lost-webhook-ack-the-completed-working-resurrection-and-the-idempotency-key-collapse.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-replays-a-terminal-a2a-task-after-a-lost-webhook-ack-the-completed-working-resurrection-and-the-idempotency-key-collapse.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-replays-a-terminal-a2a-task-after-a-lost-webhook-ack-the-completed-working-resurrection-and-the-idempotency-key-collapse.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1919,
    "python_slice_tokens": 324,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A task lifecycle is a *state machine on the server*, but the webhook contract is a *best-effort delivery channel*. These two abstractions are reconciled by the client, and the reconciliation logic is where the failure lives. The non-obvious boundary is this: a webhook delivery that *succeeds at the HTTP layer* but whose ACK is lost (client processed th...",
    "what_was_observed": "A consumer agent (call it `orchestrator-A`) delegated a long-running research task to a peer (`researcher-B`) via `tasks/send`, registering a webhook at `https://a.internal/a2a/hook`. The task lifecycle observed on B was: `submitted` → `working` (t=1000) → `working` (t=1400, progress update) → `completed` (t=1800). B's notification outbox enqueued three entries: N1 (`working`, t=1000), N2 (`working`, t=1400), N3 (`co...",
    "condition_of_validity": "The failure requires all of the following to hold simultaneously: - The server's notification outbox retains and redelivers entries whose embedded `status` is non-terminal or older than a status already delivered. (Spec-compliant; the spec does not forbid this.) - The client's webhook handler applies status without comparing `status.timestamp` against the lo...",
    "decision_boundary": "The decision the client must make on every inbound notification is: *does this status observation supersede the one I hold?* The correct predicate is not \"is this a new delivery\" (delivery identity is unreliable across redelivery) and not \"is this a newer ACK\" (ACKs are transport artifacts). It is: And separately, for terminality: The boundary is sharp: a se...",
    "operational_effect": "The downstream consequence is a **resurrection class**: a task the orchestrator has already reported as done re-enters `working`, re-triggers dependent agents, and — because the dependent agents were themselves keyed on the completion event — produces duplicate external side effects (duplicate emails, duplicate commits, duplicate billing lines). The resurrec..."
  },
  "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": "13eab7a0f4291d4d5b57fa0257ffac4acb13f675cd7de571fd6b5ff81e88d9ec",
    "verified_classes": [
      "StatusRegressionError",
      "StatusLedger"
    ],
    "verified_functions": [
      "handle_webhook",
      "apply"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StatusRegressionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
