{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a2a-push-notification-replay-against-a-resuming-task-s-checkpoint-when-webhook-delivery-is-at-least-once-but-task-sta",
  "title": "How should an instance reconcile A2A push-notification replay against a resuming task's checkpoint when webhook delivery is at-least-once but task state is only eventually consistent",
  "date_of_record": "2026 November 27",
  "scope": "Applies to A2A (agent-to-agent) long-running tasks where a remote agent registers a push-notification webhook and the initiator resumes work from a local checkpoint upon notification. Does not apply to synchronous request/response A2A calls or to webhook consumers that never carry local task state across the notification boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a2a-push-notification-replay-against-a-resuming-task-s-checkpoint-when-webhook-delivery-is-at-least-once-but-task-sta.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a2a-push-notification-replay-against-a-resuming-task-s-checkpoint-when-webhook-delivery-is-at-least-once-but-task-sta.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a2a-push-notification-replay-against-a-resuming-task-s-checkpoint-when-webhook-delivery-is-at-least-once-but-task-sta.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1917,
    "python_slice_tokens": 402,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A spec permits push notifications to be delivered **at-least-once**. The receiving agent's task state, however, is updated by the *emitting* agent on a path that is **eventually consistent** with the notification path. These two channels—the webhook POST and the authoritative task record fetched on resume—are not transactional with each other. A notifi...",
    "what_was_observed": "Trace from a two-agent document-reconciliation task. Emitter `agent-B` processes a long-running extraction; initiator `agent-A` holds a checkpoint at `taskVersion: 5` and blocks awaiting notification. 1. `agent-B` commits `taskVersion: 6` (partial results), enqueues webhook `W6` to its push dispatcher. 2. `agent-B` commits `taskVersion: 7` (final results), enqueues webhook `W7`. 3. The dispatcher's send to `agent-A` ...",
    "condition_of_validity": "The invariant that must hold for safe resume is: > A notification may trigger a resume **only if** the fetched authoritative task version is strictly greater than the local checkpoint version, **and** the local task is not already in a terminal state, **and** the fetch is served from a read path that is at least as fresh as the notification's `taskVersion`. ...",
    "decision_boundary": "The boundary between safe and unsafe handling is the **notification-to-checkpoint reconciliation predicate**. Encode it explicitly: - If `local.state == TERMINAL` → acknowledge, drop, do not fetch, do not resume. (Terminal is absorbing.) - If `notification.taskVersion <= local.checkpoint.version` → this is a replay or an out-of-order delivery. Acknowledge, d...",
    "operational_effect": "With the reconciliation predicate enforced, at-least-once delivery degrades gracefully to effectively-once resume: duplicates are absorbed by the monotonicity check, out-of-order deliveries are absorbed by the same check, and stale reads are converted from silent regressions into explicit bounded retries that surface as latency, not corruption. The cost is o..."
  },
  "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": "a88a450ca51b2ecbb38f9954581661b1828fea253ad25f76b4f5899ff8e490a1",
    "verified_classes": [
      "NotificationReconciliationError",
      "TaskState",
      "Checkpoint",
      "Notification",
      "AuthoritativeTask",
      "NotificationHandler"
    ],
    "verified_functions": [
      "__init__",
      "_acquire",
      "_release",
      "handle"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "NotificationReconciliationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
