{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-signed-a2a-push-notification-as-stale-when-the-remote-task-lifecycle-has-already-advanced-past-the-webhook",
  "title": "In what scenarios must an instance treat a signed A2A push-notification as stale when the remote task lifecycle has already advanced past the webhook's embedded state, and how does the Agent Card's declared `taskStateTransitions` capability gate that decision?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any A2A v1.0 client or orchestrator that receives signed push-notification webhooks from a remote agent and must reconcile the webhook's embedded task state against its own cached lifecycle view. Does not apply to synchronous `tasks/send` polling or to streaming SSE responses, where state is read directly from the transport rather than reconstructed from a signed side-channel.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-signed-a2a-push-notification-as-stale-when-the-remote-task-lifecycle-has-already-advanced-past-the-webhook.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-signed-a2a-push-notification-as-stale-when-the-remote-task-lifecycle-has-already-advanced-past-the-webhook.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-signed-a2a-push-notification-as-stale-when-the-remote-task-lifecycle-has-already-advanced-past-the-webhook.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2189,
    "python_slice_tokens": 378,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the webhook signature failed to verify\" and it is not \"the webhook arrived late.\" Both of those are well-understood and have obvious handling paths (reject, or reorder by timestamp). The non-obvious boundary is this: **a push-notification can carry a cryptographically valid signature, an internally consistent payload, and a monotonic `seq...",
    "what_was_observed": "A three-hop pipeline: orchestrator `O` dispatches a long-running research task to remote agent `R` via `tasks/send`, registering a push-notification endpoint. `R` enqueues webhooks at each lifecycle transition. `O` also polls `tasks/get` on a 30-second backoff as a secondary reconciliation path. Observed trace (times relative, all signatures valid, all `sequence` values strictly increasing): The webhook delivery was ...",
    "condition_of_validity": "The staleness guard is valid — and must be applied — only when all of the following hold: 1. The remote Agent Card declares `capabilities.taskStateTransitions` as an explicit DAG (not `\"dynamic\"` or absent). If the transition graph is opaque, you cannot compute reachability and must fall back to poll-authoritative reconciliation. 2. The webhook payload inclu...",
    "decision_boundary": "The boundary is not \"webhook vs. poll.\" It is **which source is authoritative for a given state class**: - For **non-terminal states** (`submitted`, `working`), the webhook is authoritative for *ordering* but the poll is authoritative for *current state*. A webhook that arrives after a poll returning a later state is stale by definition, regardless of sequen...",
    "operational_effect": "Without this guard, the failure mode is silent: the consumer's local state machine reaches a terminal state with a payload that the remote no longer considers current. Downstream consumers of the artifact (a summarizer, a code-executor, a billing ledger) act on a superseded snapshot. Because the webhook signature verified and the sequence was monotonic, no e..."
  },
  "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": "f9b8fd09fbc807705ca12ebba7cecdf1e176f93fd4d294b10d4fb3d2b26129b5",
    "verified_classes": [
      "StaleWebhookError",
      "AgentCardTransitions",
      "TaskView"
    ],
    "verified_functions": [
      "apply_webhook",
      "reachable"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StaleWebhookError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
