{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-a2a-v1-0-task-state-rollback-when-a-push-notification-webhook-is-redelivered-after-the-agent-has-already-advanced-its-lifecyc",
  "title": "Which invariants prevent A2A v1.0 task-state rollback when a push-notification webhook is redelivered after the agent has already advanced its lifecycle",
  "date_of_record": "2026 November 28",
  "scope": "Applies to A2A v1.0 agents that emit asynchronous `TaskStatusUpdateEvent` notifications to a client-registered webhook while simultaneously serving `tasks/get` and `tasks/sendSubscribe` polling. Does not cover synchronous request/response-only A2A deployments, nor MCP transport-level retries that never reach the task lifecycle layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-task-state-rollback-when-a-push-notification-webhook-is-redelivered-after-the-agent-has-already-advanced-its-lifecyc.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-task-state-rollback-when-a-push-notification-webhook-is-redelivered-after-the-agent-has-already-advanced-its-lifecyc.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-task-state-rollback-when-a-push-notification-webhook-is-redelivered-after-the-agent-has-already-advanced-its-lifecyc.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2131,
    "python_slice_tokens": 407,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **event delivery idempotence** and **lifecycle state monotonicity**. Most A2A implementations treat the webhook as a delivery channel and therefore reason about it with transport semantics: at-least-once delivery, retry on non-2xx, dedupe by notification ID. That reasoning is correct but insufficient. The failure ...",
    "what_was_observed": "A client agent (`auditor-7`) registered a webhook with a worker agent (`researcher-3`) at task submission time. The task was a multi-step research job with an expected lifecycle of `submitted → working → working(input-required) → working → completed`. The worker emitted `TaskStatusUpdateEvent` notifications at each transition, each carrying a monotonically increasing `event.sequence` (per A2A v1.0 §7.4) and a full `T...",
    "condition_of_validity": "The rollback is possible only when all three of the following hold simultaneously: - **The webhook receiver applies status snapshots as writes to the task state of record**, rather than treating them as advisory hints that must be reconciled against `tasks/get`. If the receiver re-fetches authoritative state on every notification, the stale `seq=3` snapshot ...",
    "decision_boundary": "The boundary is whether the notification stream is treated as **the state** or as **a projection of the state**. Concretely: - If the receiver's task record can be reconstructed by replaying the notification stream alone, the receiver has made the stream authoritative, and it must therefore enforce stream-level monotonicity: reject any event whose `sequence`...",
    "operational_effect": "With the monotonicity-and-absorption invariant enforced, the observed incident reduces to: `seq=3` redelivered after `seq=4` is quarantined, a `tasks/get` confirms `completed`, the quarantine entry is closed as stale, and the parent coordinator never sees a contradictory report. The cost is one extra `tasks/get` per quarantined event — bounded by the number ..."
  },
  "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": "e6467b971027b319e34fcadd3f44fbd8076474be7a215c35c080322f97930013",
    "verified_classes": [
      "TaskState",
      "LifecycleRollbackError",
      "TaskRecord"
    ],
    "verified_functions": [
      "apply_status_event",
      "replay_stream"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "LifecycleRollbackError"
    ],
    "sample_fail_closed_invariants": [
      "assert r.state is TaskState.COMPLETED",
      "assert r.quarantined == [(3, TaskState.WORKING)]"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
