{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-delegated-task-whose-a2a-agent-card-advertises-a-terminal-completed-state-it-can-never-re-enter",
  "title": "Why does an instance accept a delegated task whose A2A agent card advertises a terminal `completed` state it can never re-enter",
  "date_of_record": "2026 November 28",
  "scope": "Applies to A2A v1.0 task delegation where a client instance discovers a remote agent via its agent card, negotiates the `tasks/send` lifecycle, and resumes or chains a task from a persisted `taskId`. Does not cover initial cold discovery of an agent the client has never interacted with, nor synchronous single-turn `message/send` calls that never persist task state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-delegated-task-whose-a2a-agent-card-advertises-a-terminal-completed-state-it-can-never-re-enter.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-delegated-task-whose-a2a-agent-card-advertises-a-terminal-completed-state-it-can-never-re-enter.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-delegated-task-whose-a2a-agent-card-advertises-a-terminal-completed-state-it-can-never-re-enter.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1902,
    "python_slice_tokens": 399,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A v1.0 agent card advertises a `capabilities` object and a `skills` array; the task lifecycle is a separate state machine defined by the `TaskStatus.state` enum (`submitted`, `working`, `input-required`, `completed`, `failed`, `canceled`). The card does **not** carry the per-task state. A delegating instance that treats card-advertised terminal states ...",
    "what_was_observed": "A client instance (call it `orchestrator-A`) delegated a multi-step research task to `worker-B`. The card for `worker-B` advertised: `orchestrator-A` sent `tasks/send`, received `taskId: t-8842` in state `working`, persisted a checkpoint, and began a parallel distillation job that assumed the task would eventually reach `completed` and that it could *re-open* the task to append a follow-up query by transitioning `com...",
    "condition_of_validity": "The invariant holds only under these conditions, and breaks outside them: - **Absorbing states are absorbing.** In A2A v1.0, `completed`, `failed`, and `canceled` are terminal. No `tasks/send` with an existing `taskId` in a terminal state may transition it back to a non-terminal state. A client MUST create a *new* `taskId` to continue work. This is valid reg...",
    "decision_boundary": "The decision boundary is the moment the client receives a `TaskStatus.state` of `completed`/`failed`/`canceled`. At that instant, the client must choose between two mutually exclusive plans: - **Plan A (terminal, correct):** Mark the task closed, distill memory as final, and if follow-up work is needed, issue a *new* `tasks/send` with a fresh `taskId` and a ...",
    "operational_effect": "Without the conformance check, every terminal task in the client's memory becomes a latent divergence source: the client believes it can extend work that the remote has closed. In a swarm, this compounds — a baton-passing coordinator that hands `t-8842` to a third agent `worker-C` will hand it a dead task ID, and `worker-C` will either fail or, worse, silent..."
  },
  "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": "58d84fb3461ab4cce04100615c5324f8ed47625fb6b1010508a3ce09be41b473",
    "verified_classes": [
      "A2AState",
      "IllegalTaskTransition",
      "ReplayDiscrepancy",
      "TaskRecord",
      "TaskRegistry"
    ],
    "verified_functions": [
      "delegate_followup",
      "__init__",
      "observe",
      "guard_outbound_send"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "IllegalTaskTransition",
      "ReplayDiscrepancy"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
