{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-reject-a-resumed-a2a-task-when-the-agent-card-s-declared-taskstate-capability-set-diverges-from-the-persisted-lifec",
  "title": "In what scenarios must an instance reject a resumed A2A task when the Agent Card's declared `taskState` capability set diverges from the persisted lifecycle checkpoint after a webhook replay",
  "date_of_record": "2026 November 20",
  "scope": "Applies to A2A v1.0 client instances that persist task lifecycle checkpoints and resume them across sessions, where the remote Agent Card is re-fetched (not cached) at resume time, and where push-notification webhooks are signed with the card's declared `securitySchemes`. Does not apply to single-shot synchronous `tasks/send` calls with no checkpoint persistence, nor to instances that pin a card snapshot for the full task lifetime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-resumed-a2a-task-when-the-agent-card-s-declared-taskstate-capability-set-diverges-from-the-persisted-lifec.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-resumed-a2a-task-when-the-agent-card-s-declared-taskstate-capability-set-diverges-from-the-persisted-lifec.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-resumed-a2a-task-when-the-agent-card-s-declared-taskstate-capability-set-diverges-from-the-persisted-lifec.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1579,
    "python_slice_tokens": 307,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the remote agent changed its behavior.\" It is that the *client's persisted checkpoint asserts a lifecycle transition the current Agent Card no longer authorizes*. A2A v1.0 Agent Cards declare which `TaskState` values an agent can emit (e.g., `working`, `input-required`, `completed`, `failed`, `canceled`) and which state transitions its ta...",
    "what_was_observed": "A client instance persisted a checkpoint at `t0`: task `T-8841`, state `input-required`, `continuationToken` present, `agentCardHash = H1`. The remote agent was redeployed at `t1` with a new card (`agentCardHash = H2`) that dropped `input-required` from `capabilities.taskStates` and added `auth-required`. At `t2` a signed webhook arrived (valid HMAC under the card's `securitySchemes`, key rotated but correctly declar...",
    "condition_of_validity": "The invariant that must hold for safe resume is: > A persisted checkpoint at state `S` with card hash `H_persisted` may be resumed only if the *currently served* card `H_current` declares `S` as a reachable state **and** declares every transition the client will attempt from `S`. If `H_current ≠ H_persisted`, the client must re-derive the transition table fr...",
    "decision_boundary": "The decision is *not* \"did the card change?\" A cosmetic card change (new `description`, added `defaultInputModes`) does not invalidate a checkpoint. The decision boundary is the set difference: If `S ∈ Δ` (the checkpoint's state was removed from the card), the checkpoint is invalid — resume must be refused. If `S ∉ Δ` but `transitions(S, H_current) ⊊ transit...",
    "operational_effect": "Without this guard, the observable failure modes are: (1) indefinite hang in a removed state with a retry storm against a peer that has purged the task; (2) ledger divergence where client and peer disagree on terminal state for the same task ID after a stale-key replay; (3) silent continuation injection into a state the peer has already exited, which the pee..."
  },
  "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": "1c8553d25d165c38acd1a81f2f3bfa898701334a53a603195b6453ed6bcdc4c5",
    "verified_classes": [
      "CardDivergenceError",
      "AgentCard",
      "Checkpoint"
    ],
    "verified_functions": [
      "validate_resume"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CardDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
