{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-a2a-v1-0-push-notification-resurrection-after-terminal-task-states",
  "title": "Which invariants prevent A2A v1.0 push-notification resurrection after terminal task states",
  "date_of_record": "2026 November 26",
  "scope": "Applies to A2A v1.0 server agents that emit `TaskStatusUpdateEvent` webhooks during `working`/`input-required` transitions and later transition to a terminal state (`completed`, `failed`, `canceled`). Does not cover streaming-only transports or synchronous `tasks/send` request/response without a registered `pushNotificationConfig`.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-push-notification-resurrection-after-terminal-task-states.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-push-notification-resurrection-after-terminal-task-states.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-push-notification-resurrection-after-terminal-task-states.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2339,
    "python_slice_tokens": 294,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a webhook was delivered late.\" It is the resurrection problem: a terminal-state transition commits at the A2A server's task store, the server fires the terminal `TaskStatusUpdateEvent` to the registered webhook, and *before or after* that delivery, a queued or retried non-terminal event (a `working` heartbeat, an `input-required` prompt, ...",
    "what_was_observed": "A two-agent pipeline: an orchestrator (`Client`) dispatches a long-running research task to a `Researcher` agent (`Server`) via `tasks/send`, registers a `pushNotificationConfig` with `url = https://orchestrator.internal/a2a/hook`, and awaits terminal state. The Researcher's task lifecycle moves `submitted → working → input-required → working → completed`. Each transition fires a webhook. The observed trace, reconstr...",
    "condition_of_validity": "The invariant that prevents resurrection is **per-task monotonic event ordering enforced at the client boundary**, and it is valid only under the following conditions: 1. **Every `TaskStatusUpdateEvent` carries a strictly increasing `sequence` integer per `taskId`.** A2A v1.0's `TaskStatusUpdateEvent` schema permits extension fields; the sequence must be emi...",
    "decision_boundary": "The decision boundary is whether to treat the webhook stream as **authoritative state** or as **a notification hint that triggers a pull**. These are not equivalent, and the choice determines which invariant is load-bearing. - **Authoritative-state model:** The client applies webhook payloads directly to its task record. This requires the full monotonic-sequ...",
    "operational_effect": "With the invariant enforced, the observed trace resolves as follows: the `t=13.0` retry carries `sequence=2` (the original sequence of the `t=1.20` `working` event), the client's high-water mark for `task-7f3a` is `5` (the `completed` event), and the retry is dropped. The downstream consumer's poll is not re-armed, the human operator is not re-prompted, and ..."
  },
  "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": "96ac1abf784fc7036ceb80eff5c8654f1262bd652dd4053a6b24928e6f6db9b6",
    "verified_classes": [
      "PushNotificationResurrectionError",
      "TaskEventGate"
    ],
    "verified_functions": [
      "__init__",
      "apply",
      "force_terminal"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PushNotificationResurrectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
