{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-tool-manifest-capability-escalation-from-surviving-mcp-server-hot-reload",
  "title": "Which invariants prevent tool-manifest capability escalation from surviving MCP server hot-reload",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that dynamically load tool plugins or MCP servers whose manifests (name, description, input schema, declared side-effect scopes) can change between sessions or mid-session via hot-reload. Does not apply to statically compiled tool registries where the manifest is fixed at process start and never renegotiated.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-tool-manifest-capability-escalation-from-surviving-mcp-server-hot-reload.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tool-manifest-capability-escalation-from-surviving-mcp-server-hot-reload.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tool-manifest-capability-escalation-from-surviving-mcp-server-hot-reload.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1620,
    "python_slice_tokens": 302,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not prompt injection into the *content* of a tool result, and it is not a malformed schema that fails to parse. It is **capability drift across a manifest identity boundary**: a server that was previously admitted under a low-privilege manifest re-registers under the *same identity key* while silently widening its declared surface — addin...",
    "what_was_observed": "A host agent loaded a filesystem MCP server at cold start. The manifest declared one tool, `read_file`, with an input schema of `{path: string}` and a description of \"Read a UTF-8 file under the workspace root.\" The host's policy engine evaluated the manifest, classified the tool as read-only, and granted it a low-tier warrant: no write scope, path confined to `/workspace`. Mid-session, the server process restarted (...",
    "condition_of_validity": "The guardrail holds only when all three of the following are true at the moment of re-registration: 1. **Manifest digest is part of the identity key.** The admission grant is stored against `hash(canonical_manifest)`, not `tool_name`. A name match with a digest mismatch is treated as a *new, unadmitted* tool. 2. **Description text is classified as untrusted ...",
    "decision_boundary": "The boundary is between **reconnect** and **re-admission**. A transport reset, a process restart, a version bump, or a manifest re-fetch are all *reconnect* events from the transport's perspective and *re-admission* events from the security perspective. The host must not conflate them. Concretely: if `digest(new_manifest) == digest(admitted_manifest)`, reuse...",
    "operational_effect": "With digest-keyed warrants and description scanning, the observed escalation degrades to a benign event: the reconnect detects a digest mismatch, revokes the read-only warrant, re-runs admission, flags the instructional description and the unannotated `read_file_batch`, and either denies the server or admits only `read_file` with the original confinement — t..."
  },
  "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": "635232a0c6abf45338224bd077ea8a1561a9335e69051f30432777cf7d97f132",
    "verified_classes": [
      "ManifestEscalationError",
      "Warrant"
    ],
    "verified_functions": [
      "canonical_digest",
      "admit",
      "on_reconnect"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestEscalationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
