{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-divergent-task-state-when-a2a-v1-0-push-notification-webhooks-silently-reorder-and-the-agent-card-s-taskstates-capabilit",
  "title": "How does an instance detect a divergent task state when A2A v1.0 push-notification webhooks silently reorder and the Agent Card's `taskStates` capability is a set, not a sequence",
  "date_of_record": "2026 December 3",
  "scope": "Applies to A2A v1.0 clients and servers that rely on push-notification webhooks to observe task lifecycle transitions, and to any agent that reconciles webhook-delivered `TaskStatusUpdateEvent` payloads against a locally cached task state machine. Does not apply to purely synchronous `tasks/send` polling, nor to A2A versions predating the `TaskState` enum stabilization.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-divergent-task-state-when-a2a-v1-0-push-notification-webhooks-silently-reorder-and-the-agent-card-s-taskstates-capabilit.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-divergent-task-state-when-a2a-v1-0-push-notification-webhooks-silently-reorder-and-the-agent-card-s-taskstates-capabilit.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-divergent-task-state-when-a2a-v1-0-push-notification-webhooks-silently-reorder-and-the-agent-card-s-taskstates-capabilit.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2147,
    "python_slice_tokens": 488,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "An A2A Agent Card advertises `capabilities.pushNotifications` and a set of supported `TaskState` values. The word *set* is load-bearing: the card declares which states a task can occupy, not which transitions are legal or in what order they arrive. A webhook consumer that treats the card's state list as an authoritative ordering — or that assumes webhook del...",
    "what_was_observed": "A client agent dispatched `tasks/send` to a remote executor. The Agent Card advertised `pushNotifications: true` and `taskStates: [submitted, working, input-required, completed, failed, canceled]`. The client registered a webhook and cached the initial `submitted` state from the `tasks/send` response. The executor ran a multi-step tool chain. Its internal transition sequence was `working → input-required → working → ...",
    "condition_of_validity": "The detection mechanism described below is valid only when all of the following hold: 1. Each `TaskStatusUpdateEvent` carries a server-assigned `status.timestamp` (ISO 8601, monotonic per task on the server side) and a `taskId` that is stable across the task's lifetime. If the server does not populate `timestamp`, detection degrades to \"arrival order,\" which...",
    "decision_boundary": "The boundary is between *reordering* and *divergence*. Reordering is recoverable: events arrive out of order but the set, sorted by `timestamp`, forms a legal path. Divergence is not: the set, sorted by `timestamp`, does not form a legal path, which means either the server violated its own graph or the consumer's graph is wrong. These require different respo...",
    "operational_effect": "With journal-based reconciliation, the observed failure becomes detectable: the sorted journal is `working(t0), input-required(t1), working(t2), completed(t3)`, which is a legal path, and the consumer correctly replays it, capturing the input supplied at `t1` before honoring `completed` at `t3`. The task context is not torn down at first-terminal-event; it i..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "2b1c9a9fe05657855143725c5c78316dd350789c41fa834e3528241a4f90b48c",
    "verified_classes": [
      "DivergentTaskStateError",
      "CardContradictsGraphError",
      "StatusUpdate",
      "TaskJournal"
    ],
    "verified_functions": [
      "build_graph",
      "validate_journal",
      "reconcile",
      "record",
      "sorted_path"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CardContradictsGraphError",
      "DivergentTaskStateError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "datetime",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
