{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-s-agent-card-signing-key-rotates-mid-federation-and-downstream-verifiers-cache-the-old-jwks-without-a-kid-anchored-inval",
  "title": "What happens when an instance's Agent Card signing key rotates mid-federation and downstream verifiers cache the old JWKS without a `kid`-anchored invalidation path",
  "date_of_record": "2026 November 28",
  "scope": "Applies to cross-org agent trust federation where Agent Cards are JWS-signed and verified against a foreign origin's published JWKS, and where verifiers cache those key sets locally. Does not apply to single-org deployments where the verifier and signer share a trust root, nor to ephemeral per-request mTLS without signed capability documents.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-s-agent-card-signing-key-rotates-mid-federation-and-downstream-verifiers-cache-the-old-jwks-without-a-kid-anchored-inval.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-s-agent-card-signing-key-rotates-mid-federation-and-downstream-verifiers-cache-the-old-jwks-without-a-kid-anchored-inval.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-s-agent-card-signing-key-rotates-mid-federation-and-downstream-verifiers-cache-the-old-jwks-without-a-kid-anchored-inval.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1945,
    "python_slice_tokens": 355,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"expired credential\" or \"revoked key.\" It is a **key-rotation race across an asymmetric cache boundary**: the signing org rotates its Agent Card key, publishes a new JWKS with a new `kid`, and begins signing new Agent Cards under that `kid`—but the verifying org holds a cached JWKS snapshot that predates the rotation and, critically, ...",
    "what_was_observed": "A federated auditor agent (`auditor-a`, org `A`) verifies Agent Cards presented by peer agents from org `B`. Org `B` runs a 90-day rotation policy on its Agent Card signing key. The verifier caches `B`'s JWKS with a 24-hour TTL and, on each verification, selects the key by `kid`. At T+0, `B` rotates: new keypair, new `kid` (`b-2026-05`), JWKS republished. `B`'s Agent Cards begin carrying `kid: b-2026-05`. The old key...",
    "condition_of_validity": "This failure requires all of the following to hold simultaneously: 1. The verifier caches JWKS with a **TTL-only** invalidation policy (no re-fetch on unknown `kid`). 2. The signing org rotates keys **within** the verifier's cache TTL. 3. The signing org **retains** the old key in JWKS (overlap window), so a naive \"does the JWKS contain the signing key\" chec...",
    "decision_boundary": "The decision boundary is between two interpretations of an unknown `kid` at verification time: - **Interpretation A (correct):** \"I do not have this key. My cache may be stale. Re-fetch the JWKS from the peer's authoritative endpoint, re-verify, and only then decide.\" - **Interpretation B (the failure):** \"I do not have this key. Therefore the peer presented...",
    "operational_effect": "Downstream of the fix, three operational properties change: - **Rotation becomes invisible to federation peers** as long as the peer's JWKS endpoint is reachable and the refetch budget is not exhausted. A 90-day rotation no longer produces a 24-hour quarantine window. - **Error taxonomy must be preserved across the adapter boundary.** `kid`-not-found, signat..."
  },
  "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": "b9b8c14afd3f5a87979a80bbedb59c0dffc8758a7e8fff9f4982690044b0e478",
    "verified_classes": [
      "FederationVerificationError",
      "UnknownKidAfterRefetch",
      "RefetchBudgetExhausted",
      "JwksCache"
    ],
    "verified_functions": [
      "_fetch_jwks_from_peer",
      "verify_agent_card",
      "is_fresh",
      "has_kid",
      "refetch_allowed",
      "record_refetch"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "FederationVerificationError",
      "NotImplementedError",
      "RefetchBudgetExhausted",
      "UnknownKidAfterRefetch"
    ],
    "sample_fail_closed_invariants": [
      "wire to peer JWKS endpoint"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
