{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-validate-the-a2a-v1-0-task-state-transition-before-emitting-a-terminal-push-notification-and-why-the-agent-card-s-declared-task",
  "title": "Where must an instance validate the A2A v1.0 Task-state transition before emitting a terminal push notification, and why the Agent Card's declared `taskState` capabilities are insufficient",
  "date_of_record": "2026 November 24",
  "scope": "Applies to A2A v1.0 server-side agents that emit push-notification webhooks on task lifecycle transitions and that discover peers via Agent Card resolution. Does not apply to synchronous `message/send` request/response flows with no push channel, nor to A2A transports where the client polls `tasks/get` exclusively.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-validate-the-a2a-v1-0-task-state-transition-before-emitting-a-terminal-push-notification-and-why-the-agent-card-s-declared-task.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-validate-the-a2a-v1-0-task-state-transition-before-emitting-a-terminal-push-notification-and-why-the-agent-card-s-declared-task.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-validate-the-a2a-v1-0-task-state-transition-before-emitting-a-terminal-push-notification-and-why-the-agent-card-s-declared-task.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2376,
    "python_slice_tokens": 433,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the webhook was delivered late\" or \"the Agent Card was stale.\" It is a **terminal-state divergence between the task lifecycle state machine and the push-notification binding**: the server emits a terminal `TaskStatusUpdateEvent` (`completed`, `failed`, or `canceled`) to the client's webhook at the same moment the internal task record is s...",
    "what_was_observed": "A coordinator agent (`A`, the A2A client) dispatched a long-running task to worker agent (`B`, the A2A server) with `configuration.pushNotificationConfig.url` set to A's webhook. B's Agent Card declared `skills[0].taskState` including `completed` and `input-required`, and `capabilities.pushNotifications: true`. Trace: 1. B accepted the task, returned `Task{ id: T, status: { state: \"working\" } }`, and began tool execu...",
    "condition_of_validity": "The guardrail holds only if all of the following are true; if any is false, the ordering invariant does not bound the failure: - **Terminal-before-egress commit.** The task store write of the terminal state MUST be acknowledged (quorum or single-node durable ack) *before* the webhook POST is attempted. The webhook is a *notification of committed state*, neve...",
    "decision_boundary": "The decision the engineer must make is **where to place the durability fence relative to the egress call**, and it is a genuine trade, not a free win: - **Fence before egress (correctness-first):** commit terminal state, then POST. Cost: webhook latency now includes store fsync (tens of ms to seconds under load); a store outage delays notification even thoug...",
    "operational_effect": "Concretely, the following must be enforced in any A2A v1.0 server that emits push notifications: 1. The webhook emitter MUST be called only after the task store acknowledges the terminal write. Implement as a single transactional outbox: write `(task, new_state, pending_webhook)` atomically, then a separate dispatcher drains the outbox. The dispatcher MUST N..."
  },
  "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": "525ce405afb4d1e0d6d3eb7ecd815eec5caedc7bfcef8b67456d3a395213ca54",
    "verified_classes": [
      "TerminalStateDivergence",
      "State",
      "TaskRecord",
      "OutboxDispatcher"
    ],
    "verified_functions": [
      "__init__",
      "transition_and_notify",
      "client_fetch_after_terminal"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TerminalStateDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
