{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-peer-s-agent-card-at-discovery-but-then-fail-the-task-lifecycle-handshake-mid-execution",
  "title": "Why does an instance accept a peer's Agent Card at discovery but then fail the task lifecycle handshake mid-execution?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to A2A v1.0 (Agent-to-Agent) task delegation where the calling agent (client) discovers a remote agent via its published Agent Card and drives a task through the lifecycle states (`submitted → working → input-required → completed/failed/canceled`). Does not apply to single-shot request/response tool calls, MCP resource fetches, or same-vendor agents sharing a compiled schema.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-peer-s-agent-card-at-discovery-but-then-fail-the-task-lifecycle-handshake-mid-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-peer-s-agent-card-at-discovery-but-then-fail-the-task-lifecycle-handshake-mid-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-peer-s-agent-card-at-discovery-but-then-fail-the-task-lifecycle-handshake-mid-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1845,
    "python_slice_tokens": 395,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The Agent Card is a *discovery-time* document. The task lifecycle is a *runtime* state machine. A2A v1.0 does not require that the two be validated against the same schema version, nor that the card's declared `capabilities` and `skills[].inputModes/outputModes` be re-checked when a task actually transitions. Discovery succeeds on the card alone; the handsha...",
    "what_was_observed": "A client orchestrator (vendor A) discovered a remote agent (vendor B) via `/.well-known/agent.json`. The card validated cleanly: - `protocolVersion: \"1.0\"` - `capabilities.streaming: true`, `capabilities.pushNotifications: false`, `capabilities.stateTransitionHistory: true` - `skills[0].inputModes: [\"text/plain\"]`, `outputModes: [\"text/plain\"]` - `defaultInputModes`/`defaultOutputModes` present at top level The clien...",
    "condition_of_validity": "The invariant that must hold for cross-vendor A2A task execution to be safe: > For any task accepted under a discovered Agent Card, every state the remote can emit on the live stream must be reconstructible from `tasks/get` history, and every part `kind` the remote can emit in any lifecycle message must be in the union of the card's declared modes *and* the ...",
    "decision_boundary": "The boundary is between **trusting the card as a contract** and **treating the card as a hint that must be confirmed by the first task's wire behavior**. - Trusting the card: the client configures its lifecycle deserializer from `inputModes`/`outputModes`, assumes `stateTransitionHistory: true` means full replay, and assumes `streaming: true` means the strea...",
    "operational_effect": "The concrete operational consequence: a task that is *conformant on both sides* deadlocks for the duration of the remote's `input-required` timeout, then fails, and the client's `tasks/get` history shows no record of why. The failure is invisible in the history (lossy) and invisible in the card (conformant). The only trace is the live stream event the client..."
  },
  "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": "34b034e53130047a11d599192ee475516080aa5a9656e90dd792e0b756a98a90",
    "verified_classes": [
      "A2AProtocolFault",
      "TaskState",
      "AgentCard",
      "StatusEvent"
    ],
    "verified_functions": [
      "reconcile_stream_against_history",
      "drive_task"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "A2AProtocolFault"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
