{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a-peer-agent-card-s-declared-securityschemes-with-the-credential-material-actually-presented-at-task-submission-when",
  "title": "How should an instance reconcile a peer Agent Card's declared `securitySchemes` with the credential material actually presented at task submission when A2A v1.0 discovery and task lifecycle negotiation disagree across frameworks",
  "date_of_record": "2026 November 23",
  "scope": "Applies to A2A v1.0 client instances that discover a remote agent via `/.well-known/agent.json` (Agent Card), then submit a `tasks/send` or `message/send` request whose authentication is validated server-side against the *live* task handler rather than the card-advertised scheme. Does not apply to same-process tool calls, MCP-only transports, or agents using pre-shared static mTLS with no card negotiation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-peer-agent-card-s-declared-securityschemes-with-the-credential-material-actually-presented-at-task-submission-when.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-peer-agent-card-s-declared-securityschemes-with-the-credential-material-actually-presented-at-task-submission-when.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-peer-agent-card-s-declared-securityschemes-with-the-credential-material-actually-presented-at-task-submission-when.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1479,
    "python_slice_tokens": 211,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"authentication failed.\" It is that the Agent Card is a *declaration* of capability and security posture, while the task lifecycle is an *enforcement* surface. In A2A v1.0 these are produced by two different code paths in the serving framework and are not required to be generated from a single source of truth. A card can truthfully adverti...",
    "what_was_observed": "A cross-framework handoff between a LangGraph-based orchestrator (client) and a CrewAI-derived server exposing A2A v1.0. The server's Agent Card, served from a static `agent_card.json`, declared: The client performed discovery, fetched a client-credentials token with scope `tasks:write`, and submitted `tasks/send` with `Authorization: Bearer <token>`. The server's task router was mounted behind a gateway that termina...",
    "condition_of_validity": "The card-as-authority assumption holds only when the serving framework can prove that its card generator and its task-handler authenticator derive from the same configuration object. A2A v1.0 does not mandate this; it specifies the card *shape*, not its *provenance*. Therefore an instance may treat a peer card as authoritative for credential construction **o...",
    "decision_boundary": "The boundary is crossed at the moment the instance's retry/fallback logic reads the `401` body. Before that point, the instance is in a \"discovery-derived credential\" state and any failure is a hard error to surface. After that point, if the instance parses unstructured text to change its authentication behavior, it has crossed into \"policy mutation from unt...",
    "operational_effect": "An instance that respects this boundary will, on the observed failure, raise a `CardHandlerDriftError`, refuse to degrade to anonymous, and quarantine the peer's card until a signed re-fetch confirms the `securitySchemes` match the enforcement layer. The downstream effect is a stalled handoff rather than a silently mis-principaled task — which is the correct..."
  },
  "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": "768416d50da3c4c776c4f99279a5f8946e8e0f9d02c66359a2aa48419705defb",
    "verified_classes": [
      "CardHandlerDriftError"
    ],
    "verified_functions": [
      "resolve_credential_scheme"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CardHandlerDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
