{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-cached-agent-card-past-a-signing-key-rotation",
  "title": "What happens when an instance trusts a cached Agent Card past a signing-key rotation",
  "date_of_record": "2026 November 26",
  "scope": "Applies to A2A v1.0 peer discovery where an orchestrator caches remote Agent Cards (with `signatures[]`) and reuses them across task handoffs without re-verifying the JWS against the peer's current JWKS. Does not apply to same-trust-domain agents sharing a signing authority, nor to deployments that re-fetch and re-verify the card on every RPC.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-cached-agent-card-past-a-signing-key-rotation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-cached-agent-card-past-a-signing-key-rotation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-cached-agent-card-past-a-signing-key-rotation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1981,
    "python_slice_tokens": 475,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"signature verification is skipped.\" Verification runs, and it passes. The failure is that verification runs against a *stale key set* bound to a *stale card*, and the card's `capabilities` and `securitySchemes` fields are treated as immutable properties of the peer's identity rather than as a time-bounded attestation. A2A v1.0 separa...",
    "what_was_observed": "An orchestrator agent (`orch-1`) discovers a worker (`worker-search`) via `/.well-known/agent.json`. The card is signed with `kid=search-2024-11`, carrying `capabilities: {streaming: true, pushNotifications: true, stateTransitionHistory: true}` and a `securitySchemes` entry pointing at `oauth2` scope `search:execute`. `orch-1` caches the card with a 24h TTL and a verification result of `VALID`. At T+9h the worker's o...",
    "condition_of_validity": "The invariant that must hold for cached-card reuse to be safe: > A cached Agent Card is valid for capability negotiation only while (a) the JWS verifies against the JWKS snapshot taken at cache time, **and** (b) the peer's current JWKS still contains the signing `kid`, **and** (c) the card's `capabilities` and `securitySchemes` are unchanged since signing. C...",
    "decision_boundary": "The orchestrator must choose, on every handoff, between three policies. The boundary is not \"cache or don't cache\" — it is **what the cache is allowed to authorize**: - **Cache authorizes identity only.** The cached card may be used to know *who* the peer is and *where* to send requests. It may **not** be used to decide *which optional capabilities to exerci...",
    "operational_effect": "Without the gate, the observable failure modes are: (1) indefinite `WORKING` state with healthy heartbeats and no push delivery — the orchestrator cannot distinguish \"slow task\" from \"channel never existed\"; (2) mid-task `401` after partial writes when `securitySchemes` rotated; (3) capability-surface drift where the orchestrator exercises a feature the peer..."
  },
  "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": "1f8d70769470f0abd831ed6b0551f13f23a15980f66a3b2c597cd069acbf0245",
    "verified_classes": [
      "StaleAgentCardError",
      "KeyLivenessError",
      "CachedCard",
      "LivePeerState"
    ],
    "verified_functions": [
      "assert_card_authorizes_handoff",
      "negotiate_handoff"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "KeyLivenessError",
      "StaleAgentCardError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
