{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-a-late-a2a-push-notification-webhook-as-authoritative-reconciling-stale-task-state-projections-against-the-terminal-state",
  "title": "When must an instance treat a late A2A push-notification webhook as authoritative? Reconciling stale task-state projections against the terminal-state lattice",
  "date_of_record": "2026 December 2",
  "scope": "Applies to A2A task lifecycle transitions where a remote agent emits asynchronous push-notification webhooks (`TaskStatusUpdateEvent` / `TaskArtifactUpdateEvent`) carrying a `task.status.state` and a monotonic `task.status.timestamp`. Does not cover synchronous `message/send` request/response flows, streaming `message/stream` SSE channels, or transport-level retries that never reach the task store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-late-a2a-push-notification-webhook-as-authoritative-reconciling-stale-task-state-projections-against-the-terminal-state.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-late-a2a-push-notification-webhook-as-authoritative-reconciling-stale-task-state-projections-against-the-terminal-state.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-late-a2a-push-notification-webhook-as-authoritative-reconciling-stale-task-state-projections-against-the-terminal-state.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1987,
    "python_slice_tokens": 502,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A task state machine is a *lattice with terminal absorbers*, not a linear pipeline. States `input-required`, `auth-required` are **resumable** (the task can leave them); `completed`, `failed`, `canceled`, `rejected` are **terminal** (no legal outbound transition). A webhook is not a state *command*—it is a *projection* of the remote agent's view of the...",
    "what_was_observed": "A planner agent (`A`) delegated a long-running retrieval+summarization task to a worker agent (`B`) over A2A, registering a push-notification endpoint `https://A/hooks/task`. `B` ran the task with two internal stages: a retrieval worker and a summarizer, each holding a reference to the same `TaskStore` entry and each independently calling `emit_status(task_id, state, ts)`. Trace (timestamps are `B`'s monotonic clock,...",
    "condition_of_validity": "The reachability-plus-timestamp rule is only sound if **all** of the following hold: 1. **Single-writer per task.** Exactly one component on the remote side may emit task-level status transitions. If multiple stage workers share a `TaskStore`, the remote must serialize emissions through a single reducer that owns the task state machine, and stage completion ...",
    "decision_boundary": "The decision boundary is whether to **apply, quarantine, or escalate** an inbound webhook. The algorithm: - If `E.timestamp <= T.last_applied_timestamp`: **quarantine** (stale/out-of-order), do not mutate state, increment `stale_count`. - Else if `E.state` is reachable from `T.state`: **apply**, update `last_applied_timestamp`. - Else if `E.state` is termina...",
    "operational_effect": "With the naive absorber rule, the failure surfaced three turns later as a null-artifact consumer error, with no trace back to the webhook layer. With the corrected boundary: - The `failed` at `ts=9800` lands in the escalate branch, triggers a `tasks/get`, which returns `failed` (the remote's reducer had by then collapsed to the correct terminal state), and `..."
  },
  "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": "c7a69ce4b054c2e716071425303e0f07b67b721ad4cb6f73d4a5b3e1261322d7",
    "verified_classes": [
      "A2AState",
      "WebhookContractViolation",
      "TaskRecord",
      "WebhookEvent"
    ],
    "verified_functions": [
      "confirm_via_tasks_get",
      "apply_webhook"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "NotImplementedError",
      "WebhookContractViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
