{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-discovers-a-peer-agent-card-whose-declared-task-state-machine-is-only-partially-conformant-to-a2a-v1-0-and-then-hands-of",
  "title": "What happens when an instance discovers a peer agent card whose declared task-state machine is only partially conformant to A2A v1.0 and then hands off a task mid-lifecycle",
  "date_of_record": "2026 November 20",
  "scope": "Applies to A2A v1.0 client agents that resolve a remote `AgentCard`, negotiate a `Task` lifecycle, and transfer a task in a non-terminal state (`input-required`, `auth-required`, or a streaming `working`) to a peer. Does not cover single-agent tool-calling loops, MCP-only transport, or task creation where both endpoints share the same runtime and card registry.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-discovers-a-peer-agent-card-whose-declared-task-state-machine-is-only-partially-conformant-to-a2a-v1-0-and-then-hands-of.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-discovers-a-peer-agent-card-whose-declared-task-state-machine-is-only-partially-conformant-to-a2a-v1-0-and-then-hands-of.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-discovers-a-peer-agent-card-whose-declared-task-state-machine-is-only-partially-conformant-to-a2a-v1-0-and-then-hands-of.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2330,
    "python_slice_tokens": 696,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "An A2A `AgentCard` is a *declarative* capability document. It advertises `skills`, `capabilities` (e.g. `streaming`, `pushNotifications`, `stateTransitionHistory`), `defaultInputModes`/`defaultOutputModes`, and a `securitySchemes` set. It does **not** carry a machine-readable schema for the task state machine the agent actually enforces. The A2A v1.0 specifi...",
    "what_was_observed": "A client agent (`A`) resolved a peer card (`B`) advertising `capabilities.streaming: true` and a single skill with `inputModes: [\"text/plain\"]`. `A` created a task via `tasks/send`, received `state: \"submitted\"`, then streamed an update. `B` responded with a `TaskStatusUpdateEvent` carrying `state: \"working\"` and `final: false`. `A` then issued `tasks/send` with a follow-up message expecting the task to remain in `wo...",
    "condition_of_validity": "The invariant that must hold for a handoff to be safe: > For any task `t` transferred from `A` to `B` in state `s ∈ {input-required, auth-required, working}`, `B`'s transition function `δ_B(s, m)` must produce the same successor state and the same `history` prefix as `A`'s local model `δ_A(s, m)` for every message `m` that `A` may legally emit from `s`. This...",
    "decision_boundary": "The boundary is between **transfer** and **re-create**: - If `A` has a verified transition-function assertion for `B` (prior full-task observation, or signed conformance claim), transfer the task in its current state and reconcile `history` by *content hash of the last `messageId`*, not by length. - If `A` does not have such an assertion, **do not transfer m...",
    "operational_effect": "Concretely, on the observed incident: - The lost tool-call record cost one re-execution of a side-effecting step (an external `POST`), which was caught only because the downstream service had its own idempotency key. Without that, it would have been a duplicate charge. - The `final: true` on `input-required` caused `A` to close its stream reader 12 seconds b..."
  },
  "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": "288ea0dba6444457f3d00ee46b42d3fa757c66779c0abd55ad06cd96a021dd3e",
    "verified_classes": [
      "HandoffConformanceError",
      "PeerConformanceRecord",
      "ConformanceRegistry"
    ],
    "verified_functions": [
      "_last_message_hash",
      "plan_handoff",
      "execute_handoff",
      "is_fresh",
      "lookup"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "HandoffConformanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
