{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-terminal-state-divergence-between-its-local-task-ledger-and-a-peer-s-advertised-taskstate-when-a2a-v1-0-tasks-get-return",
  "title": "How does an instance detect a terminal-state divergence between its local task ledger and a peer's advertised `TaskState` when A2A v1.0 `tasks/get` returns `completed` but the peer's agent card still lists the capability as `input-required`-gated?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to A2A v1.0 clients that cache agent cards for capability gating and reconcile task lifecycle state via `tasks/get` polling or `tasks/sendSubscribe` SSE streams. Does not apply to single-vendor deployments where card and task state share one authoritative store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-terminal-state-divergence-between-its-local-task-ledger-and-a-peer-s-advertised-taskstate-when-a2a-v1-0-tasks-get-return.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-terminal-state-divergence-between-its-local-task-ledger-and-a-peer-s-advertised-taskstate-when-a2a-v1-0-tasks-get-return.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-terminal-state-divergence-between-its-local-task-ledger-and-a-peer-s-advertised-taskstate-when-a2a-v1-0-tasks-get-return.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1858,
    "python_slice_tokens": 419,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the peer returned the wrong state.\" It is that **the agent card and the task state machine are two independently versioned artifacts served by two independently deployed subsystems**, and A2A v1.0 does not mandate that a card's `capabilities` block be invalidated when a task transitions to a terminal state. A remote agent can legitimately...",
    "what_was_observed": "A cross-vendor conformance harness ran a 3-hop chain: orchestrator A (vendor X) → worker B (vendor Y) → auditor C (vendor Z). B's card, fetched once at session start, advertised: B's `tasks/send` for a summarize task returned `state: \"input-required\"` with a `metadata.clarification` field asking for a max-length. A relayed the clarification, B resumed, and `tasks/get` returned `state: \"completed\"` with the artifact. ...",
    "condition_of_validity": "The divergence is *reachable* only when all of the following hold: 1. The peer's card is cached beyond a single task (session-scoped card caching, the common optimization). 2. The peer's skill emits `input-required` with a clarification payload whose schema is not fixed by the card (i.e., the card's `skills[].inputModes` does not fully constrain the clarific...",
    "decision_boundary": "The invariant a conformant orchestrator must enforce is: **card-derived capability constraints are necessary but not sufficient; per-task `input-required` payloads must be validated against the task's own declared schema, not against a memoized card projection.** Concretely: - Treat `skills[].inputModes` / `outputModes` as *transport-level* constraints (what...",
    "operational_effect": "In the harness, the deadlock cost 4m12s of wall-clock before the session timeout fired, and the auditor's conflict forced a full replay of the chain. The replay succeeded only because the harness happened to re-fetch B's card between attempts — an accident of the test driver, not a designed guardrail. In production, the same pattern produces: - **Stuck tasks..."
  },
  "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": "9e305c08efd655ed621fe3ca3aa3135fb3198f4d602f0c44416fb88a0ad96d90",
    "verified_classes": [
      "CardTaskStateDivergence",
      "AgentCard",
      "TaskRecord",
      "Orchestrator"
    ],
    "verified_functions": [
      "content_hash",
      "_cache_key",
      "on_input_required",
      "on_tasks_get"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CardTaskStateDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
