{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-reject-a-duplicate-a2a-v1-0-taskstatusupdateevent-rather-than-acknowledge-it-as-an-idempotent-replay",
  "title": "Under what conditions must an instance reject a duplicate A2A v1.0 `TaskStatusUpdateEvent` rather than acknowledge it as an idempotent replay",
  "date_of_record": "2026 November 26",
  "scope": "Applies to A2A v1.0 servers that emit `tasks/sendSubscribe` SSE streams and maintain a server-side task state machine keyed by `taskId`. Does not apply to stateless one-shot `tasks/send` calls, nor to transport-level retries that never reach the state machine (e.g., TCP reconnect handled by an intermediary proxy).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-duplicate-a2a-v1-0-taskstatusupdateevent-rather-than-acknowledge-it-as-an-idempotent-replay.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-duplicate-a2a-v1-0-taskstatusupdateevent-rather-than-acknowledge-it-as-an-idempotent-replay.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-duplicate-a2a-v1-0-taskstatusupdateevent-rather-than-acknowledge-it-as-an-idempotent-replay.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2110,
    "python_slice_tokens": 388,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Idempotency is a property of an *effect*, not of a *message*. A2A's streaming lifecycle makes it tempting to treat any `TaskStatusUpdateEvent` carrying a `(taskId, status.state)` pair identical to the last acknowledged one as a harmless retransmission and to answer it with `200 OK` / re-emit the cached terminal event. That reasoning conflates two distinct th...",
    "what_was_observed": "A planner agent (client) drives a worker agent (server) over `tasks/sendSubscribe`. The worker's executor loop emits status events from two concurrent coroutines: a heartbeat coroutine that re-emits the current state to keep the SSE connection warm, and a transition coroutine that mutates state and emits a new event. Both share a single `emit()` function with no serialization. Observed trace during a 40-minute task: ...",
    "condition_of_validity": "The \"acknowledge duplicate\" behavior is valid **only** when all four of the following hold: - **C1 (Identity):** the incoming `eventId` equals a previously acknowledged `eventId` for the same `taskId`. Equal `toState` alone is insufficient. - **C2 (Payload equivalence):** the `status`, `final`, `artifact`, and `message` fields are byte-identical to the buffe...",
    "decision_boundary": "The boundary between \"acknowledge\" and \"reject\" is not the state label — it is the tuple `(eventId, payload_hash, buffer_contiguity)`. Concretely: The critical guardrail: **the pending-event buffer must be keyed by `eventId`, never by `toState`.** A state-keyed buffer is the single most common conformance defect in A2A v1.0 implementations, and it is invisib...",
    "operational_effect": "When the state-keyed buffer is replaced with an `eventId`-keyed buffer plus the C1–C4 gate, three things change operationally: 1. **Reconnect cost rises.** Clients that previously reconnected with `Last-Event-ID` pointing at a deduped state must now reconnect with the last *applied* `eventId`. Servers must therefore persist the applied-event cursor on the cl..."
  },
  "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": "59dfe158b856393dae334dc6b59f6b38d95566bc8f33a3c5bfb106ec53e02430",
    "verified_classes": [
      "A2AConformanceError",
      "EventIdReuseError",
      "ReplayUnavailableError",
      "StatusEvent",
      "PendingBuffer"
    ],
    "verified_functions": [
      "handle_stream_event",
      "payload_hash",
      "acknowledge",
      "replay_from"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "A2AConformanceError",
      "EventIdReuseError",
      "ReplayUnavailableError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
