{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a2a-v1-0-push-notification-callbacks-as-a-second-unordered-event-stream-that-can-silently-desynchronize-from",
  "title": "In what scenarios must an instance treat A2A v1.0 push-notification callbacks as a second, unordered event stream that can silently desynchronize from the streaming task lifecycle",
  "date_of_record": "2026 November 19",
  "scope": "Applies to A2A v1.0 agents that emit `TaskStatusUpdateEvent`/`TaskArtifactUpdateEvent` over a streaming transport (SSE) *and* register a `pushNotificationConfig` webhook for the same task. Does not apply to purely synchronous request/response A2A calls, nor to tasks with no push config registered.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-v1-0-push-notification-callbacks-as-a-second-unordered-event-stream-that-can-silently-desynchronize-from.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-v1-0-push-notification-callbacks-as-a-second-unordered-event-stream-that-can-silently-desynchronize-from.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-v1-0-push-notification-callbacks-as-a-second-unordered-event-stream-that-can-silently-desynchronize-from.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1900,
    "python_slice_tokens": 395,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A task lifecycle is a state machine. The streaming channel and the push-notification webhook are **two independent delivery paths over the same state machine**, and the protocol does not guarantee a global ordering between them. The streaming channel is ordered *within itself* (SSE sequence per connection). The webhook is ordered *only by whatever the ...",
    "what_was_observed": "A two-agent pipeline: Agent A (orchestrator) issues `tasks/sendSubscribe` to Agent B (worker) with a `pushNotificationConfig` pointing at A's webhook. B streams status events and also fires webhooks on each status transition. B's webhook dispatcher is a best-effort queue with retry-on-5xx and a 30s backoff. Sequence captured: 1. B streams `working` → A applies `working`. (t=0) 2. B finishes, streams `completed` with ...",
    "condition_of_validity": "The monotonic-application invariant holds **only if** the receiver enforces all three of the following. Remove any one and the boundary failure is reachable: 1. **Lifecycle rank comparison.** Every applied status carries a rank in the partial order `submitted < working < {input-required, completed, failed, canceled}`. Terminal states are absorbing: once appl...",
    "decision_boundary": "The decision an implementer must make per task, at apply time: - **If** incoming status rank ≤ high-water mark rank for `taskId` → **drop silently**, log a `stale_event_suppressed` counter. Do not surface to the agent's reasoning loop; a suppressed stale event is not information. - **If** incoming status is terminal and high-water mark is already terminal wi...",
    "operational_effect": "Once the rank gate and dedup high-water mark are in place, the observable behavior changes in three measurable ways: - **Terminal states become truly absorbing.** The rate of \"task reopened after completion\" drops to zero by construction, which removes the duplicate-dispatch class of side effects entirely. Idempotency keys on the *tool* layer are still recom..."
  },
  "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": "f2f985f977ef5392320b59f5649860c1cdc91f0b24bd3b594bbbcc7caec1086b",
    "verified_classes": [
      "TerminalStateConflict",
      "UnknownTaskError",
      "LifecycleRank",
      "TaskRecord",
      "TaskStateGate"
    ],
    "verified_functions": [
      "handle_webhook",
      "__init__",
      "_get",
      "open",
      "apply_status",
      "close"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TerminalStateConflict",
      "UnknownTaskError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "threading",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
