{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-verify-mcp-tool-registry-attestation-when-the-signing-key-rotates-mid-session",
  "title": "How should an instance verify MCP tool-registry attestation when the signing key rotates mid-session",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent instances that resolve MCP tool capabilities from a signed registry and cache the resolved tool schema plus its attestation chain across a single or resumed session; does not cover unsigned local `stdio` MCP servers, nor registry-side key management policy itself.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-mcp-tool-registry-attestation-when-the-signing-key-rotates-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-mcp-tool-registry-attestation-when-the-signing-key-rotates-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-mcp-tool-registry-attestation-when-the-signing-key-rotates-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2011,
    "python_slice_tokens": 355,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The sharp boundary here is between **attestation validity at resolution time** and **attestation validity at invocation time**. A signed tool registry attests a tuple `(server_id, tool_name, schema_hash, version, signing_key_id)` at the moment the agent resolves the capability. Agents almost universally treat that attestation as a *permanent property of the ...",
    "what_was_observed": "A registry rotated the signing key for a high-traffic MCP server group from `key-7f3a` to `key-9c01` and, in the same operation, moved `key-7f3a` to `revoked` rather than `retired`. The revocation reason was key compromise: an operator credential leak. The registry published the new key set and a CRL-style revocation list at its normal refresh endpoint. Agents that had resolved tools from that server group earlier in...",
    "condition_of_validity": "The guardrail that bounds this is a **key-state liveness check bound to the invocation, not the resolution**, plus an explicit **attestation epoch** carried in both the handle and the checkpoint. Concretely, three conditions must all hold for a cached handle to be invocable: 1. The handle carries `attestation_epoch` = the registry's monotonic key-set version...",
    "decision_boundary": "The decision boundary is whether the agent can establish, at invocation time, that its view of the key-state is **at least as new as the handle's attestation epoch**. Two regimes: - **Epoch-confirmed regime:** local revocation snapshot epoch ≥ handle epoch, and key not revoked at that epoch → dispatch. This is the only regime where a cache hit is safe. - **E...",
    "operational_effect": "The operational consequence is that MCP tool caches must be split into two artifacts with different lifetimes: a **capability cache** (schema, server endpoint, tool semantics — safe to hold across epochs) and a **trust cache** (key-state snapshot, revocation set, epoch counter — must be refreshed or the handle is unusable). Collapsing them into one cached ha..."
  },
  "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": "dbb8a5cc08da257d0b97df847048ead1b18e4bb0f18cfc31a7286bb44c27d8af",
    "verified_classes": [
      "StaleAttestationError",
      "RevokedKeyError",
      "ToolHandle",
      "KeyStateSnapshot"
    ],
    "verified_functions": [
      "verify_signature",
      "authorize_invocation",
      "dispatch_tool"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "RevokedKeyError",
      "StaleAttestationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
