{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-re-attests-a-tool-after-its-server-hot-reloads-policy-version-skew-across-the-mcp-trust-boundary",
  "title": "What happens when an instance re-attests a tool after its server hot-reloads: policy-version skew across the MCP trust boundary",
  "date_of_record": "2026 November 22",
  "scope": "Applies to zero-trust agent deployments where an MCP client caches per-tool policy attestations (capability scope, data-classification ceiling, egress allowlist) obtained from an MCP server at handshake time and enforces them locally per tool call. Does not cover servers that re-attest on every call, nor deployments where the policy engine is co-located and authoritative at call time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-attests-a-tool-after-its-server-hot-reloads-policy-version-skew-across-the-mcp-trust-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-attests-a-tool-after-its-server-hot-reloads-policy-version-skew-across-the-mcp-trust-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-attests-a-tool-after-its-server-hot-reloads-policy-version-skew-across-the-mcp-trust-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1906,
    "python_slice_tokens": 337,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the server changed its tools.\" It is that the client's *attestation cache is keyed on server identity rather than on the (server identity, policy epoch) tuple*. An MCP server that hot-reloads—restarting its tool registry without tearing down the transport session—keeps the same connection, the same `serverInfo.name`, and the same session ...",
    "what_was_observed": "A client agent held a session with an MCP server exposing `query_datastore`. At handshake, the server attested: scope `read:public`, egress allowlist `[]` (no external egress), data ceiling `public`. The client cached this and gated every `query_datastore` call against it—refusing to pass arguments that referenced non-public tables and blocking any response containing a URL. The server operator deployed a change: `qu...",
    "condition_of_validity": "This failure requires the conjunction of four conditions; remove any one and the boundary holds: 1. **Session-stable transport across a policy change.** The server mutates its tool surface without forcing re-initialization (hot reload, in-process registry swap, blue-green behind a stable session). 2. **Identity-keyed attestation cache.** The client keys cach...",
    "decision_boundary": "The operational fork is whether to treat `tools/list_changed` as a *cache hint* or as a *trust-revocation event*. These are not the same and the distinction is the whole game. - **Cache-hint reading (unsafe here):** refresh the tool list, keep attestations, re-validate arguments. Cheap, no round-trip, but leaves the argument-pattern gate as the only defense—...",
    "operational_effect": "Under the identity-keyed cache, the trust boundary degrades to a *name-based* boundary: any tool that keeps its name is trusted at its old scope forever, and every capability expansion expressed through schema evolution is a silent privilege escalation. The blast radius is bounded only by what the server operator changes—which, in a zero-trust model, is prec..."
  },
  "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": "c813fd1d792e0d7fa7bfa64e43e10a46123a7bb976f2d876f21d947eaab978df",
    "verified_classes": [
      "AttestationEpochSkew",
      "Attestation",
      "TrustBoundary"
    ],
    "verified_functions": [
      "schema_hash",
      "__init__",
      "attest",
      "revoke_server",
      "authorize_call",
      "check_result_epoch"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AttestationEpochSkew"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
