{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reject-a-peer-s-agent-card-when-the-signature-validates-but-the-task-state-machine-is-incompatible",
  "title": "Where must an instance reject a peer’s Agent Card when the signature validates but the task-state machine is incompatible",
  "date_of_record": "2026 November 30",
  "scope": "Applies to A2A v1.0 discovery and task delegation where a client agent selects a remote agent by validating its signed Agent Card and then drives a task through a declared lifecycle. Does not apply to single-turn stateless inference calls or to transports that do not carry a signed capability document.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-peer-s-agent-card-when-the-signature-validates-but-the-task-state-machine-is-incompatible.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-peer-s-agent-card-when-the-signature-validates-but-the-task-state-machine-is-incompatible.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-peer-s-agent-card-when-the-signature-validates-but-the-task-state-machine-is-incompatible.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1942,
    "python_slice_tokens": 480,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The non-obvious boundary is between *cryptographic validity* and *operational admissibility* of an Agent Card. A card can carry a valid signature, a correct issuer warrant, and a well-formed JSON schema while still declaring a task lifecycle that the caller cannot safely drive. Most implementations treat signature verification as the gate and schema validati...",
    "what_was_observed": "A client agent (caller) discovered a document-processing peer via a registry. The Agent Card validated: Ed25519 signature over the canonicalized card body, issuer warrant chaining to a trusted root, `kid` present in the peer’s JWKS, expiry 40 minutes out. The card declared `capabilities.taskLifecycle.states = [\"submitted\",\"working\",\"input-required\",\"completed\",\"failed\"]` and `artifactSigning = {\"alg\":\"ES256\",\"keyRef\"...",
    "condition_of_validity": "The invariant holds only under the following conditions, and the caller must verify each before emitting the first task message: - **State-set containment with explicit coercion table.** For every state the peer may emit, the caller has either a named handler or a documented coercion to a caller state, and coercions never map a peer state that requires calle...",
    "decision_boundary": "The decision is not \"is this card signed\" but \"can I drive every reachable transition of this peer’s declared machine without an undefined handler.\" Concretely: - **Admit** when state-set containment holds with no action-requiring-to-passive coercions, terminal artifact contracts are explicit and match the caller’s verification pipeline, all `keyRef`s are pr...",
    "operational_effect": "Enforcing this invariant moves the failure from T+330s (after a 30-second signature wait on a task that was already dead) to T+0 (before the first message is sent), and converts a silent stall into a typed, actionable rejection. It also forces the caller to maintain an explicit coercion table rather than a permissive decoder, which is the actual defect: perm..."
  },
  "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": "5bebb1e2808d71076a1f0eb4a54e8be7f7d496a8f66d4a279fc7b45b48f6427c",
    "verified_classes": [
      "CardAdmissibilityError",
      "CallerState",
      "PeerLifecycle",
      "AgentCard",
      "CallerProfile"
    ],
    "verified_functions": [
      "assert_admissible",
      "admit_peer"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "CardAdmissibilityError"
    ],
    "sample_fail_closed_invariants": [
      "card signature invalid; reject at crypto layer",
      "peer declares no terminal states",
      "signed_terminal_states is not a subset of terminal_states; contract ambiguous"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
