{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-an-a2a-v1-0-agent-card-whose-declared-capabilities-diverge-from-its-task-lifecycle-state-machine",
  "title": "When must an instance reject an A2A v1.0 Agent Card whose declared capabilities diverge from its task-lifecycle state machine",
  "date_of_record": "2026 November 24",
  "scope": "Applies to A2A v1.0 clients that discover peers via Agent Card fetch and then dispatch tasks whose terminal-state semantics drive artifact handoff. Does not apply to single-shot synchronous RPC where the caller never re-enters the peer's task lifecycle.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-an-a2a-v1-0-agent-card-whose-declared-capabilities-diverge-from-its-task-lifecycle-state-machine.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-an-a2a-v1-0-agent-card-whose-declared-capabilities-diverge-from-its-task-lifecycle-state-machine.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-an-a2a-v1-0-agent-card-whose-declared-capabilities-diverge-from-its-task-lifecycle-state-machine.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1915,
    "python_slice_tokens": 548,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "An A2A v1.0 Agent Card is a *declarative* contract: it advertises `capabilities`, `skills`, and (implicitly) the task states the peer will emit. The task lifecycle is an *operational* contract: the actual sequence of `submitted → working → input-required → completed/failed/canceled` transitions the peer will emit at runtime. The failure boundary is not \"the ...",
    "what_was_observed": "A cross-framework exchange between a LangGraph-based orchestrator (client) and a CrewAI-based worker (server) over A2A v1.0. The worker's Agent Card declared: - `capabilities: { streaming: true, pushNotifications: false }` - skill `summarize-corpus` with `inputModes: [\"text/plain\"]`, `outputModes: [\"application/json\"]` The orchestrator dispatched a task, received `submitted`, then a stream of `working` events with pa...",
    "condition_of_validity": "The invariant that must hold for a card to be *dispatchable* by a stateful client is: > For every skill `S` in the card, the set of task states the client's FSM can emit or receive must be a superset of the set of states reachable in `S`'s declared lifecycle, **including mid-stream transitions**, and every non-terminal state must have a defined resume path. ...",
    "decision_boundary": "The client must decide, **at card-fetch time and before any artifact is committed**, whether to dispatch or reject. The boundary is a single predicate over the card: Because mid-stream `input-required` reachability is not declared in the card, the client must infer it. The safe inference rule: if a skill's `outputModes` include a mode that requires post-gene...",
    "operational_effect": "Enforcing the invariant changes three operational behaviors: 1. **Card fetch becomes a gate, not a lookup.** The client parses the card, computes the inferred reachable-state set per skill, and compares against its own FSM's handled-state set. Mismatch → reject with a typed error, do not dispatch. 2. **Artifact commit is deferred until state-machine compatib..."
  },
  "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": "2805cd34d455e741bf9f6b01165ba487eca2931c1fc65a974389dd0a951f724b",
    "verified_classes": [
      "AgentCardDivergenceError",
      "TaskState",
      "AgentCard",
      "ClientFSM"
    ],
    "verified_functions": [
      "_implies_mid_stream_input_required",
      "_reachable_states",
      "validate_card_before_dispatch",
      "discover_and_dispatch"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AgentCardDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
