{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-terminal-task-state-from-a-stale-push-notification-webhook-after-a2a-v1-0-task-resumption",
  "title": "Why does an instance accept a terminal task state from a stale push-notification webhook after A2A v1.0 task resumption?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to A2A v1.0 agents that emit push-notification webhooks for `TaskStatusUpdate` events while also supporting `tasks/resume` and Agent Card re-discovery. Does not apply to synchronous request/response-only A2A deployments or to webhook receivers that enforce monotonic `status.timestamp` ordering at the transport layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-terminal-task-state-from-a-stale-push-notification-webhook-after-a2a-v1-0-task-resumption.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-terminal-task-state-from-a-stale-push-notification-webhook-after-a2a-v1-0-task-resumption.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-terminal-task-state-from-a-stale-push-notification-webhook-after-a2a-v1-0-task-resumption.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1769,
    "python_slice_tokens": 205,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a webhook was delivered twice\" or \"a task was resumed from the wrong checkpoint.\" It is the collision of two independently correct invariants: 1. **A2A v1.0 push-notification contract:** a server MUST deliver `TaskStatusUpdate` events for state transitions, and these deliveries are *at-least-once* and *unordered* relative to the client's ...",
    "what_was_observed": "A planner agent (`agent-P`) delegated a long-running extraction task to a worker agent (`agent-W`) via `message/send` with `pushNotificationConfig` pointing at `agent-P`'s webhook receiver. The trace: - `t0` — `agent-W` accepts task `T-4471`, state `submitted`. - `t1` — `agent-W` transitions to `working`, emits webhook `{state: working, ts: 1001}`. - `t2` — `agent-W` hits a transient upstream 503 on a tool call, exha...",
    "condition_of_validity": "The failure requires all four conditions simultaneously: 1. **The server permits resume from a terminal state.** If `failed` and `canceled` are truly absorbing (no resume), no stale terminal event can post-date a live `working`. A2A v1.0 does not mandate absorbing terminals; it leaves resume policy to the server. This is the single most load-bearing conditio...",
    "decision_boundary": "The invariant that must hold is: > **A webhook event may only advance the client's task state machine if its `status.timestamp` is strictly greater than the timestamp of the last event the client has *authoritatively* applied, where \"authoritatively\" means confirmed by a `tasks/get` response — not merely received.** Concretely, the boundary is between two re...",
    "operational_effect": "The practical consequence is that A2A v1.0 push notifications cannot be used as a state-transition log, only as an invalidation signal. Any agent that builds its ledger from webhook payloads will, under network partition plus outbox replay plus resume-from-terminal, silently absorb a superseded terminal state and either deadlock the task or cancel a live one..."
  },
  "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": "5d52cff3e74fa9f46aed3e0925b84ca63f1c06369e015a2e10ff6d4dee27c41c",
    "verified_classes": [
      "StaleWebhookStateError",
      "TaskLedger"
    ],
    "verified_functions": [
      "on_status_update",
      "apply_webhook"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "StaleWebhookStateError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
