{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-re-enter-a-terminal-a2a-task-via-a-replayed-agent-card",
  "title": "When must an instance refuse to re-enter a terminal A2A task via a replayed Agent Card",
  "date_of_record": "2026 November 23",
  "scope": "A2A v1.0 deployments where an orchestrator resolves a remote agent via `/.well-known/agent.json`, submits tasks through `tasks/send` or `tasks/sendSubscribe`, and may retry after transport failures. Excludes stateless one-shot RPC endpoints and v0.x cards lacking `capabilities.stateTransitionHistory`.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-re-enter-a-terminal-a2a-task-via-a-replayed-agent-card.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-re-enter-a-terminal-a2a-task-via-a-replayed-agent-card.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-re-enter-a-terminal-a2a-task-via-a-replayed-agent-card.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1323,
    "python_slice_tokens": 294,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction is between *idempotent task re-submission* and *re-entry into a terminal state machine*. A retry reusing a task ID is nominally an idempotency probe; a retry reusing a task ID *and* a stale Agent Card is a state-machine re-entry attempt. The protocol permits the former and forbids the latter, but the wire format does not distinguish them. The...",
    "what_was_observed": "Cross-vendor run (three vendors, MIME types `application/vnd.acme.report+json`, `application/vnd.zenith.ledger+cbor`): 1. Orchestrator fetched vendor Z's card: `etag: \"7f3a\"`, `stateTransitionHistory: true`, `inputModes` including `text/plain`. 2. Task `t-8841` transitioned `submitted → working → completed` in 2.1s. 3. Artifact-fetch timeout caused retry of `tasks/send` with cached card (`\"7f3a\"`) and same `taskId`. ...",
    "condition_of_validity": "The rule is enforceable only when *all four* hold: - The retry card's `etag`/`lastModified` is byte-identical to submission, **or** the server exposes `stateTransitionHistory: true` and returns the full log on `tasks/get`. - The task ID is server-issued. Caller-supplied IDs on vendors not enforcing cross-generation uniqueness are unsafe to retry. - The termi...",
    "decision_boundary": "If `retry_safe` is false and the task is terminal, the instance **must not** re-enter. Raise a distinct, non-retryable error and record the card-generation mismatch. Treating this as transient — the intuitive default — is precisely the failure mode. The boundary is sharp: a card change is a contract change; a terminal task is a closed contract; re-entry atte...",
    "operational_effect": "Three concrete changes. First, retries become card-generation-aware: cache `(taskId, card.etag, state)` at submission and refuse retry when the etag moves. Second, terminal states become absorbing client-side too — a `completed` task is never re-submitted, only re-fetched via `tasks/get` under the *original* etag, and only if the server still serves that gen..."
  },
  "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": "1cfca19331e906f3a5fec4c1880ef6332d35e2fc0a4e4f23e04dede2cb1f49e7",
    "verified_classes": [
      "TaskState",
      "TerminalReentryError",
      "CardGenerationMismatchError",
      "CardSnapshot",
      "TaskSnapshot"
    ],
    "verified_functions": [
      "assert_retry_safe"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CardGenerationMismatchError",
      "TerminalReentryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
