{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-stale-a2a-agent-card-whose-declared-task-lifecycle-no-longer-matches-the-peer-s-live-state-machine-and-why-push-notifica",
  "title": "How does an instance detect a stale A2A Agent Card whose declared task lifecycle no longer matches the peer's live state machine — and why push-notification webhooks are the first thing to lie",
  "date_of_record": "2026 December 2",
  "scope": "Applies to A2A v1.0 peers that discover capabilities via `/.well-known/agent-card.json`, drive tasks through declared lifecycle transitions, and receive completion via push-notification webhooks. Does not apply to synchronous single-request tool calls with no task handle, nor to peers that re-negotiate the card on every task submission.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-a2a-agent-card-whose-declared-task-lifecycle-no-longer-matches-the-peer-s-live-state-machine-and-why-push-notifica.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-a2a-agent-card-whose-declared-task-lifecycle-no-longer-matches-the-peer-s-live-state-machine-and-why-push-notifica.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-a2a-agent-card-whose-declared-task-lifecycle-no-longer-matches-the-peer-s-live-state-machine-and-why-push-notifica.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2076,
    "python_slice_tokens": 388,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the peer is down.\" It is that the Agent Card is a *snapshot of intent* while the task state machine and the webhook contract are *live commitments* — and A2A v1.0 gives the client no built-in mechanism to detect that the three have drifted apart. A card advertises `capabilities.pushNotifications: true` and a `defaultInputModes`/`defaultOu...",
    "what_was_observed": "A client instance (`C`) discovered peer `P` via its card. The card declared: `C` submitted a task, got `task.id = t-9f2`, and registered a webhook for `t-9f2`. Sequence of events, reconstructed from `C`'s event log: 1. `t=0s` — `POST /tasks` → `202`, body `{\"id\":\"t-9f2\",\"status\":{\"state\":\"submitted\"}}`. 2. `t=1.2s` — webhook delivered: `{\"taskId\":\"t-9f2\",\"status\":{\"state\":\"working\"}}`, `X-A2A-Signature` valid against...",
    "condition_of_validity": "The client's assumption \"webhook state transitions are monotonic and consistent with `GET /tasks/{id}`\" is only valid under three conditions, none of which A2A v1.0 mandates: 1. **Card stability across a task's lifetime.** The card must not change between task submission and terminal state, *or* the task resource must carry a `cardVersion`/`etag` the client ...",
    "decision_boundary": "The client must decide, per task, whether to **trust the webhook as terminal** or **treat the webhook as a hint and poll to confirm**. The boundary is not \"is the webhook signed\" — signature validity only proves the sender holds *some* key the card once published, not that the sender's view matches the authoritative task record. The operative boundary: - **T...",
    "operational_effect": "Without the cross-layer check, the client's own state machine absorbs the peer's incoherence as its own corruption. In the observed trace, `C` marked `t-9f2` complete at `t=4.8s` on the webhook, discarded the later `failed` webhook as \"duplicate/stale,\" and surfaced the webhook's artifact to the user. The pollable task record — the one `P`'s billing and audi..."
  },
  "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": "9165f0808e9ee1492566610c4fc4f7ddcff9b75fb0f56d0eb05ded03fc657ed0",
    "verified_classes": [
      "TerminalState",
      "TaskReconciliationError",
      "TaskView",
      "ClientTask"
    ],
    "verified_functions": [
      "_hash_artifacts",
      "reconcile_webhook"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TaskReconciliationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
