{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-a2a-v1-0-push-notification-binding-from-outliving-the-task-lifecycle",
  "title": "Which invariants prevent A2A v1.0 push-notification binding from outliving the task lifecycle",
  "date_of_record": "2026 November 24",
  "scope": "Applies to A2A v1.0 agents that register a push-notification `webhookUrl` via `tasks/pushNotificationConfig/set` and rely on `TaskStatusUpdateEvent` / `TaskArtifactUpdateEvent` delivery to resume after client disconnection. Does not cover synchronous `message/send` streaming over SSE, nor MCP transport-level concerns.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-push-notification-binding-from-outliving-the-task-lifecycle.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-push-notification-binding-from-outliving-the-task-lifecycle.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-push-notification-binding-from-outliving-the-task-lifecycle.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1606,
    "python_slice_tokens": 306,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the webhook is unreachable.\" It is **binding drift**: the push-notification registration is a *client-scoped* object keyed by `(taskId, pushConfigId)`, but the task lifecycle is *server-scoped* and keyed by `taskId` alone. These two key spaces are reconciled only at three points — `set`, terminal `TaskState`, and explicit `delete` — ...",
    "what_was_observed": "A client agent dispatched `message/send` to a long-running planner agent, received `Task` in state `submitted`, then immediately issued `tasks/pushNotificationConfig/set` with a `webhookUrl` and `token`. The planner's first tool call returned a deterministic schema error and the task transitioned `submitted → failed` within ~40 ms — faster than the client's `set` request traversed the network. Sequence observed on th...",
    "condition_of_validity": "The invariant holds only when the server enforces all three of the following at *delivery* time, not registration time: - **Terminal-at-delivery check.** Before POSTing any `TaskStatusUpdateEvent`, the server re-reads `task.status.state` and suppresses delivery if the task is terminal *and* the event is not the first terminal event for that binding. Idempote...",
    "decision_boundary": "The boundary between \"safe to deliver\" and \"drift\" is a single predicate evaluated atomically against task state: The last conjunct is the one most implementations omit. Without it, a terminal-event replay (common in at-least-once delivery queues) re-fires against a binding that the client has already retired. The client cannot distinguish this from a genuin...",
    "operational_effect": "When the invariant is enforced, the observable consequences are: - **No phantom task resurrection.** Clients can safely `tasks/get` → observe terminal → delete local state, without a late webhook re-creating it. - **Bounded retry semantics.** The grace window makes replay deterministic: a terminal event is delivered at most `N` times within `grace`, then the..."
  },
  "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": "1031940faa62cb7838ad120c945e2b0d946e8797c02ee648980c443dfe13d750",
    "verified_classes": [
      "BindingDriftError",
      "Task",
      "PushBinding",
      "StatusEvent"
    ],
    "verified_functions": [
      "register_binding",
      "deliver"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "BindingDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "hmac",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
