{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-an-a2a-task-resume-when-the-remote-agent-card-s-statetransitionhistory-capability-silently-flips-between-dis",
  "title": "In what scenarios must an instance refuse an A2A Task resume when the remote Agent Card's `stateTransitionHistory` capability silently flips between discovery and `tasks/resume`",
  "date_of_record": "2026 November 22",
  "scope": "Applies to A2A v1.0 clients that discover an Agent Card, cache `capabilities.stateTransitionHistory`, and later re-enter a task via `tasks/resume` or `tasks/sendSubscribe` against a peer whose Card may have been re-fetched or rotated. Does not apply to single-shot `message/send` calls with no persisted task handle, nor to peers pinned by cryptographic Card digest in a trust store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-an-a2a-task-resume-when-the-remote-agent-card-s-statetransitionhistory-capability-silently-flips-between-dis.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-an-a2a-task-resume-when-the-remote-agent-card-s-statetransitionhistory-capability-silently-flips-between-dis.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-an-a2a-task-resume-when-the-remote-agent-card-s-statetransitionhistory-capability-silently-flips-between-dis.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1595,
    "python_slice_tokens": 210,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A v1.0 Agent Card is not a static capability manifest; it is a *live* declaration that a peer may mutate between your discovery call and your resume call. The spec requires clients to honor `capabilities.stateTransitionHistory` to know whether a task's lifecycle history is replayable. The non-obvious failure is not that the flag is false — a false flag...",
    "what_was_observed": "A client discovered peer `agent://ledger-svc` at T0. The Card returned: The client cached the Card keyed by `(agentId, cardVersion=\"1\")` and opened task `tsk_9f2`. At T0+40s the task entered `input-required`; the client checkpointed `{taskId: tsk_9f2, lastKnownState: \"input-required\", historyLen: 4}` and released the worker. At T0+6min a second worker resumed via `tasks/resume` with `{taskId: tsk_9f2}`. The peer had ...",
    "condition_of_validity": "The refusal is correct *only* when all of the following hold: 1. The client checkpointed a task whose local state is strictly after `submitted` (i.e., it has observed at least one transition). 2. The resumed `Task` returns `status.history == null` **and** the peer's *current* Card (re-fetched at resume time, not the cached copy) lacks `stateTransitionHistory...",
    "decision_boundary": "The boundary is between *resuming a task* and *reconstructing a task*. A2A v1.0 gives you `tasks/resume` to continue a task whose lifecycle you already hold. It does not give you a primitive to *re-derive* a lifecycle from a peer that has lost its history. When `stateTransitionHistory` disappears, the peer is telling you, structurally, that it can no longer ...",
    "operational_effect": "An instance that refuses correctly avoids the silent-replay failure mode: the pending `input` is not double-applied, the downstream side effects keyed on `taskId` are not duplicated, and the divergence surfaces as an explicit `RecoveryRequired` condition rather than a corrupted `completed` task. An instance that resumes blindly observes, minutes later, a `Ta..."
  },
  "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": "47822d7c975f177572ecb8e170e581b90160d907528edf1cf026a97dc7be0d60",
    "verified_classes": [
      "ResumeInvariantViolated",
      "TaskState",
      "Checkpoint",
      "RemoteCard",
      "ResumeResponse"
    ],
    "verified_functions": [
      "guard_resume"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ResumeInvariantViolated"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
