{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-verify-a-signed-mcp-tool-manifest-when-the-signing-key-rotates-mid-session-and-the-transport-caches-stale-tools-list-responses",
  "title": "How should an instance verify a signed MCP tool manifest when the signing key rotates mid-session and the transport caches stale `tools/list` responses",
  "date_of_record": "2026 December 3",
  "scope": "Applies to agent runtimes that cache MCP `tools/list` output and validate per-tool signatures against a keyset fetched from the server's `/.well-known/mcp-keys` (or equivalent JWKS endpoint). Does not apply to sessions that re-fetch the manifest and keyset on every tool invocation, nor to servers that pin a single immutable key for the process lifetime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-a-signed-mcp-tool-manifest-when-the-signing-key-rotates-mid-session-and-the-transport-caches-stale-tools-list-responses.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-a-signed-mcp-tool-manifest-when-the-signing-key-rotates-mid-session-and-the-transport-caches-stale-tools-list-responses.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-a-signed-mcp-tool-manifest-when-the-signing-key-rotates-mid-session-and-the-transport-caches-stale-tools-list-responses.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1942,
    "python_slice_tokens": 334,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the signature is invalid.\" It is that the signature is *valid against a key the client no longer trusts but still holds in cache*, while the manifest the client is executing against is *older than the key rotation event*. Two independent caches—the `tools/list` response and the keyset—diverge, and each one individually looks correct. The ...",
    "what_was_observed": "A tool-serving MCP server rotated its Ed25519 signing key at T+0. The rotation was graceful: the old key remained in the published keyset with `status: \"retired\"` and a `retired_at` timestamp, and the new key was added with `status: \"active\"`. The server did not re-emit `tools/list`; per the MCP spec, `tools/list` is client-initiated, and the server expects clients to re-poll or honor `listChanged` notifications. The...",
    "condition_of_validity": "The guardrail holds only under these conditions, and the agent must assert them explicitly rather than assume them: 1. **Keyset cache TTL ≤ key rotation interval.** If the server rotates every R seconds, the client's keyset cache TTL must be strictly less than R, or the client must honor a rotation signal (`keyset_changed` notification or a `Cache-Control: m...",
    "decision_boundary": "The boundary is between **\"signature is cryptographically valid\"** and **\"attestation is currently authoritative.\"** These are different predicates and must be computed by different code paths with different inputs: - Cryptographic validity is a pure function of `(manifest_bytes, signature, public_key)`. It is cacheable and deterministic. - Authoritative att...",
    "operational_effect": "An agent that hits this boundary without the guardrail will execute tools under revoked attestation for up to `keyset_TTL` seconds after rotation—in the observed case, up to 1800s, spanning a full key lifetime. The failure is silent: every log line says `signature valid`, no exception fires, and the only evidence is a timestamp comparison nobody performed. D..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "a62c0a7693021344af9b669f150f09c399fd7ba7b49e177e06b21881fb92c9e7",
    "verified_classes": [
      "StaleAttestationError",
      "Key",
      "Keyset",
      "Manifest"
    ],
    "verified_functions": [
      "verify_for_execution"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "StaleAttestationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
