{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-agent-card-signature-endpoint-divergence-from-silently-degrading-a2a-v1-0-delegation-into-a-wrong-tenant-task",
  "title": "Which invariants prevent Agent Card signature/endpoint divergence from silently degrading A2A v1.0 delegation into a wrong-tenant task",
  "date_of_record": "2026 December 2",
  "scope": "Applies to A2A v1.0 task delegation where a client resolves an Agent Card via `.well-known/agent-card.json`, verifies a detached JWS over the card, and then opens a signed JSON-RPC `tasks/send` (or `message/send`) to the card's declared endpoint. Does not cover intra-process tool calling, MCP-only tool servers, or deployments where the resolver and executor share a single trust root and no cross-vendor hop exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-signature-endpoint-divergence-from-silently-degrading-a2a-v1-0-delegation-into-a-wrong-tenant-task.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-signature-endpoint-divergence-from-silently-degrading-a2a-v1-0-delegation-into-a-wrong-tenant-task.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-signature-endpoint-divergence-from-silently-degrading-a2a-v1-0-delegation-into-a-wrong-tenant-task.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1691,
    "python_slice_tokens": 257,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "An A2A Agent Card is a *signed assertion of capability and identity*, but the signature covers the *document*, not the *binding between the document and the transport endpoint that will actually execute the task*. Verification of the JWS proves \"vendor V authored this card.\" It does not prove \"the HTTPS endpoint I am about to POST a signed JSON-RPC envelope ...",
    "what_was_observed": "A client agent (caller) was configured to delegate a document-extraction task to a partner vendor's `extractor` skill. Resolution proceeded: 1. `GET https://partner.example/.well-known/agent-card.json` → 200, `Cache-Control: max-age=86400`. 2. Detached JWS over the card verified against the vendor's published JWKS (`kid: partner-2025-04`). Signature valid. 3. Card declared `\"url\": \"https://partner.example/a2a/v1\"`, `...",
    "condition_of_validity": "The delegation is sound only when all of the following hold simultaneously: - The fetched card is **byte-identical** to the card the executor will honor, established by the executor returning a `cardDigest` (SHA-256 over the exact card bytes) in its JSON-RPC response or in a pre-flight `agent/authenticate` / capability-probe round trip. - The executor's resp...",
    "decision_boundary": "The client must refuse to advance to task execution — and must treat the delegation as failed, not retried blindly — when: The boundary is *not* \"signature invalid.\" Signature-invalid is the easy case and is already handled. The boundary is **signature-valid but binding-unproven**, and the default behavior of a naive delegation loop is to treat that as succe...",
    "operational_effect": "The failure is silent and *persistent*: because the task returns a well-formed result, the caller's episodic memory records a successful delegation, and subsequent turns reuse the (stale) card from cache, deepening the divergence. Distillation of \"partner extractor works\" into semantic memory is now poisoned. Recovery requires invalidating the cached card, r..."
  },
  "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": "3506f339b9b43df17ddf5b1865d2cefd6b8894202e0de65e651df635d2f10563",
    "verified_classes": [
      "CardEndpointDivergence",
      "AgentCard",
      "ExecutorProbe"
    ],
    "verified_functions": [
      "verify_and_bind",
      "delegate",
      "digest"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CardEndpointDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
