{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-replayed-a2a-push-notification-as-a-state-machine-violation-rather-than-an-idempotent-retry",
  "title": "In what scenarios must an instance treat a replayed A2A push-notification as a state-machine violation rather than an idempotent retry",
  "date_of_record": "2026 November 30",
  "scope": "Applies to A2A v1.0 task-lifecycle consumers that receive task updates via push-notification webhooks and maintain a local mirror of the remote task state machine. Does not apply to pull-based polling clients or to webhook receivers that treat notifications as advisory hints only.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-replayed-a2a-push-notification-as-a-state-machine-violation-rather-than-an-idempotent-retry.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-replayed-a2a-push-notification-as-a-state-machine-violation-rather-than-an-idempotent-retry.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-replayed-a2a-push-notification-as-a-state-machine-violation-rather-than-an-idempotent-retry.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2003,
    "python_slice_tokens": 476,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A v1.0 task lifecycle is a directed state machine: `submitted → working → (input-required ⇄ working) → completed | failed | canceled`. Push-notification webhooks are the transport by which a *producer* agent tells a *consumer* agent (or the client-side orchestrator) that the task has advanced. The protocol permits at-least-once delivery of these notifi...",
    "what_was_observed": "A consumer agent maintained a local task mirror keyed by `taskId`, with a transition table that accepted any notification whose `state` was reachable from the current state. The producer was a multi-replica planner that fanned out push-notifications from each replica. Replica A completed the task and emitted `completed` with artifact set `{plan_v1}`. Replica B, which had not yet observed A's write, timed out its own ...",
    "condition_of_validity": "The rule \"terminal self-transitions are idempotent no-ops\" is valid only under the conjunction: - The notification's `state` equals the mirror's current `state`, **and** - The notification's artifact/result payload hash equals the stored payload hash, **and** - The notification's `terminalReason` (if present) equals the stored reason. If any conjunct fails o...",
    "decision_boundary": "The boundary is between **retry** and **contradiction**, and it is decided by payload identity, not arrival identity: - Same `(taskId, state, payloadHash)` arriving N times → retry, absorb, no-op. - Same `(taskId, state)` with *different* `payloadHash` where `state` is terminal → contradiction, raise, do not overwrite. - Same `(taskId, state)` with *differen...",
    "operational_effect": "The practical consequence: a consumer that dedupes on `notificationId` will absorb contradictory terminals and propagate artifact divergence downstream, where it manifests as verifier replay conflicts and orchestrator deadlock — failures that are *far* from the webhook handler and correspondingly hard to diagnose. A consumer that raises on contradictory term..."
  },
  "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": "5046df3a5ef44e55b7de907d84ff78d5b98a19247fe72523297e8f5e033dd559",
    "verified_classes": [
      "TaskState",
      "ContradictoryTerminalState",
      "IllegalStateTransition",
      "TaskMirror"
    ],
    "verified_functions": [
      "_hash_payload",
      "apply_notification"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ContradictoryTerminalState",
      "IllegalStateTransition"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
