{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-terminal-state-divergence-between-its-local-a2a-task-ledger-and-a-peer-s-push-notification-webhook-stream",
  "title": "How does an instance detect a terminal-state divergence between its local A2A task ledger and a peer's push-notification webhook stream?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to A2A v1.0 deployments where a client (caller) agent tracks task state via both synchronous `tasks/get` polling and an asynchronously registered push-notification webhook (`pushNotificationConfig`). Does not apply to purely synchronous request/response A2A flows with no webhook registration, nor to multi-hop delegated tasks where the intermediate agent rewrites `taskId`.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-terminal-state-divergence-between-its-local-a2a-task-ledger-and-a-peer-s-push-notification-webhook-stream.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-terminal-state-divergence-between-its-local-a2a-task-ledger-and-a-peer-s-push-notification-webhook-stream.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-terminal-state-divergence-between-its-local-a2a-task-ledger-and-a-peer-s-push-notification-webhook-stream.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2007,
    "python_slice_tokens": 432,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure this record documents is not webhook delivery failure (dropped POSTs, retry exhaustion, TLS misconfiguration) and not task execution failure on the remote agent. It is a **terminal-state ordering divergence**: the client's local ledger and the server's authoritative task record disagree about whether a task has reached a terminal state (`complete...",
    "what_was_observed": "A caller agent (`orchestrator-7`) dispatched a long-running task to a peer (`summarizer-3`) via `message/send`, receiving `taskId: t-9f3a` in state `working`. It registered a webhook at `https://orchestrator-7.internal/a2a/push/t-9f3a` with a bearer token and began a 30-second poll loop against `tasks/get`. At T+412s the webhook fired with body `{\"taskId\":\"t-9f3a\",\"status\":{\"state\":\"completed\",\"artifacts\":[...]}}`. T...",
    "condition_of_validity": "The divergence is *possible* whenever all of the following hold: 1. The peer serves `tasks/get` from a store that is not the same linearizable register that the webhook emitter reads. This is the common case: the emitter hooks the task-state transition in the write path, while `tasks/get` reads a read-replica or a cache with a TTL. 2. The client maintains a ...",
    "decision_boundary": "The boundary the operator must draw is between *reconciliation* and *reversion*. Reconciliation accepts that the two channels may arrive out of order and merges them under a partial order: `working < {completed, failed, canceled, rejected}`, with no edges back. Reversion, which is what `orchestrator-7` implemented, treats the pull channel as authoritative an...",
    "operational_effect": "With the absorbing-terminal invariant enforced, the observed incident resolves cleanly: the webhook at T+412s transitions `t-9f3a` to `completed`; the stale `tasks/get` at T+414s reporting `working` is discarded as a stale read; the deadline heuristic at T+900s sees a terminal local state and does not fire; no cancel is issued; the artifact is consumed once...."
  },
  "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": "ae76aa96c967d0b1f9a6cec180dd6c357bfbef4bf3fd564c58de421b9b3a3a92",
    "verified_classes": [
      "TaskState",
      "TerminalStateDivergenceError",
      "TaskLedgerEntry",
      "TaskLedger"
    ],
    "verified_functions": [
      "_entry",
      "apply_push",
      "apply_pull",
      "on_local_deadline"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TerminalStateDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
