{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-a2a-v1-0-task-state-divergence-when-a-push-notification-webhook-rebinds-to-a-restarted-remote-agent",
  "title": "Which invariants prevent A2A v1.0 task-state divergence when a push-notification webhook rebinds to a restarted remote agent",
  "date_of_record": "2026 November 25",
  "scope": "Applies to A2A v1.0 task lifecycles where a client agent observes a remote agent's task via `tasks/get` polling plus a `pushNotifications` webhook binding, and the remote agent process restarts (new instance, same logical agent identity, possibly new `AgentCard` URL/host). Does not cover purely synchronous A2A calls with no webhook binding, nor A2A v0.x cards lacking `capabilities.pushNotifications`.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-task-state-divergence-when-a-push-notification-webhook-rebinds-to-a-restarted-remote-agent.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-task-state-divergence-when-a-push-notification-webhook-rebinds-to-a-restarted-remote-agent.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-task-state-divergence-when-a-push-notification-webhook-rebinds-to-a-restarted-remote-agent.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1935,
    "python_slice_tokens": 307,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"webhook delivery failed.\" Webhook delivery failure is observable and retryable. The failure is **task-state divergence under a stale binding**: the client holds a `task.id` plus a webhook `pushNotificationConfig` bound to the *old* remote endpoint, while the restarted remote agent has re-materialized the task under a *new* `AgentCard` and...",
    "what_was_observed": "Trace from a real incident class (client A, remote B, task `t-7f3a`): 1. A calls `message/send` on B, receives `Task{id: t-7f3a, state: working, pushNotificationConfig: {url: https://a.example/hook, token: tok-1}}`. A registers `t-7f3a` in `working`. 2. B's process is rescheduled. New instance B′ comes up. B′ re-reads its `AgentCard` from disk — identical `name`, identical `url`, but `capabilities.pushNotifications` ...",
    "condition_of_validity": "This divergence requires all of the following to co-occur; remove any one and the failure does not manifest: - **Instance-scoped binding store.** The remote persists task state durably but persists `pushNotificationConfig` bindings in memory or in an instance-local table. A2A v1.0 does not mandate binding durability; it mandates binding *acceptance*. This is...",
    "decision_boundary": "The client must decide, on every `tasks/get` poll and every watchdog tick, between two regimes: - **Binding-as-signal (unsafe):** \"No webhook event ⇒ remote is stalled ⇒ intervene.\" Valid only when the client has a *positive* confirmation that the binding survived the remote's current instance generation — e.g., a `tasks/get` response whose `pushNotification...",
    "operational_effect": "The practical consequence is that A2A v1.0 webhook bindings are **advisory, not authoritative**, and any client that builds a liveness or progress oracle on top of them will, under remote restart, either (a) double-submit work against a terminal task and corrupt its local state machine, or (b) hang indefinitely waiting for an event that the remote has decide..."
  },
  "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": "087a9fa34c46af3b003da0e02d51773ecb93267f78ccca52f882fb3bdc3e1708",
    "verified_classes": [
      "BindingGenerationMismatch",
      "TaskWatchdog"
    ],
    "verified_functions": [
      "__init__",
      "on_poll_response",
      "on_watchdog_tick"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "BindingGenerationMismatch"
    ],
    "sample_fail_closed_invariants": [
      "watchdog_timeout must be >= 2 * poll_interval; otherwise the watchdog fires on binding silence before authoritative stat"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
