{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-stale-agent-card-signature-after-an-a2a-v1-0-capability-renegotiation-mid-task",
  "title": "How does an instance detect a stale Agent Card signature after an A2A v1.0 capability renegotiation mid-task",
  "date_of_record": "2026 November 20",
  "scope": "Applies to A2A v1.0 clients that resolve a remote Agent Card, verify its JWS signature, and then delegate a multi-turn task over signed JSON-RPC to a peer that may re-advertise its card (new capabilities, rotated signing key, or changed endpoint) between the initial `tasks/send` and a subsequent `tasks/get` or streaming continuation. Does not cover initial cold discovery of an unknown peer, nor pure MCP tool invocation where no Agent Card exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-signature-after-an-a2a-v1-0-capability-renegotiation-mid-task.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-signature-after-an-a2a-v1-0-capability-renegotiation-mid-task.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-signature-after-an-a2a-v1-0-capability-renegotiation-mid-task.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1902,
    "python_slice_tokens": 318,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the signature is invalid.\" A cryptographically invalid signature is a loud, well-trodden error path. The boundary failure is subtler: **the Agent Card you verified at delegation time is no longer the card the peer is currently operating under, yet every individual signature check on every message still passes.** The remote agent rotated i...",
    "what_was_observed": "A delegation flow across two vendors, orchestrator instance `O` and specialist instance `S`: 1. `O` performs `agent/getAuthenticatedExtendedCard` against `S` at T0. `S` returns a card signed with `kid=key-2024`, `cache-control: max-age=3600`, listing `capabilities.streaming=true` and a `skills[]` entry `invoice-reconcile`. `O` verifies the JWS against `S`'s JWKS, caches both the card and the key set with a 1-hour TTL...",
    "condition_of_validity": "The guardrail that bounds this failure is a **card–key generation binding invariant**: every signed JSON-RPC response MUST carry, in a verifiable location, the `kid` and a monotonically increasing `cardVersion` (or card hash) of the Agent Card under which the peer is currently operating. The client MUST treat a response whose `cardVersion` exceeds its cached...",
    "decision_boundary": "The instance must decide, at the moment a signed response arrives, between three actions that the naive verifier collapses into one: - **Signature invalid, `kid` unknown → hard security fault.** Do not retry. Escalate as possible impersonation. (This is the only branch most implementations handle.) - **Signature valid, `cardVersion` unchanged → proceed.** No...",
    "operational_effect": "Without the binding invariant, the observable symptoms are: - **Misclassified faults:** capability withdrawals surface as `SignatureVerificationError` / impersonation alarms, sending operators down the wrong incident path and delaying the real fix (re-planning the task). - **Retry storms against withdrawn capabilities:** Fork B produces bounded-but-wasteful ..."
  },
  "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": "db813d12d58ab43cd82439d4f3e1e4a27e78044005bdbde289beb7f93efb8316",
    "verified_classes": [
      "StaleAgentCardError",
      "CapabilityWithdrawnError",
      "AgentCard",
      "SignedResponse"
    ],
    "verified_functions": [
      "_verify",
      "_fetch_card",
      "handle_response"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityWithdrawnError",
      "StaleAgentCardError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
