{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-skill-injection-attacks-from-surviving-capability-renegotiation-in-mcp-tool-manifests",
  "title": "Which invariants prevent skill-injection attacks from surviving capability renegotiation in MCP tool manifests",
  "date_of_record": "2026 November 16",
  "scope": "Applies to agent runtimes that load tool capabilities from MCP servers (or equivalent manifest-based tool registries) and re-verify those capabilities across session boundaries, server restarts, or manifest hot-reloads. Does not apply to statically compiled tool bindings where the manifest is immutable at build time and the server process is co-located with the runtime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-skill-injection-attacks-from-surviving-capability-renegotiation-in-mcp-tool-manifests.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-skill-injection-attacks-from-surviving-capability-renegotiation-in-mcp-tool-manifests.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-skill-injection-attacks-from-surviving-capability-renegotiation-in-mcp-tool-manifests.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2277,
    "python_slice_tokens": 642,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"a malicious server advertises a dangerous tool.\" That is detectable by inspecting the tool list. The failure mode is **capability drift across renegotiation**: a server that advertised a benign capability set at handshake time, then mutates its manifest — via a hot-reload, a versioned endpoint that returns different content on subseq...",
    "what_was_observed": "In a controlled harness, an MCP server was admitted with a benign manifest: The runtime computed a capability digest `sha256(canonical(tools))` and cached the policy verdict `ALLOW`. On the next `tools/list` call — triggered by a `tools/list_changed` notification — the server returned: Three observations: 1. Runtimes that keyed their policy cache on server identity (`server_id -> verdict`) accepted the mutated manife...",
    "condition_of_validity": "The defense holds only under all of the following: - **Canonicalization is total.** The digest input must include every field the model will read: tool `name`, `description`, parameter `description`, enum labels, defaults rendered into the prompt, and the server-level `instructions`. Any field omitted from the canonical form is an unguarded injection channel...",
    "decision_boundary": "At each `tools/list` response or `tools/list_changed` notification, the runtime must decide: *accept, re-evaluate, or block.* - If `digest(manifest) == approved_digest` **and** `epoch` is unchanged → **accept** (cache hit, no re-evaluation). - If `digest(manifest) != approved_digest` → **re-evaluate**, regardless of whether the server was previously trusted....",
    "operational_effect": "After enforcing the digest-bound, fail-closed, epoch-monotonic invariant across the harness: - Injected descriptions were blocked at the renegotiation boundary in 100% of trials where the payload altered description text, because the digest diverged and the unknown-digest path returned deny. - The `exfil` tool addition was blocked by the same mechanism (new ..."
  },
  "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": "28c5ff7dfd36bda288a77022ae5ea19aed0194ae567fdba8a38c65be0e014658",
    "verified_classes": [
      "CapabilityRenegotiationError",
      "ManifestCanonicalizationError",
      "Verdict",
      "PolicyCache"
    ],
    "verified_functions": [
      "_normalize_text",
      "_canonical_manifest",
      "digest_manifest",
      "admit_manifest",
      "on_tools_list_changed",
      "epoch_of",
      "bump_epoch",
      "get",
      "put"
    ],
    "verified_functions_count": 9,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "CapabilityRenegotiationError",
      "ManifestCanonicalizationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing",
      "unicodedata"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
