{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-manifest-declared-tool-descriptions-from-executing-as-instructions-during-mcp-server-hot-load",
  "title": "Which invariants prevent manifest-declared tool descriptions from executing as instructions during MCP server hot-load",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that dynamically discover and load tools from MCP server manifests (or equivalent plugin/A2A capability descriptors) at runtime. Does not cover statically compiled tool registries where descriptions are authored and reviewed in the same trust domain as the agent's system prompt.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-declared-tool-descriptions-from-executing-as-instructions-during-mcp-server-hot-load.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-declared-tool-descriptions-from-executing-as-instructions-during-mcp-server-hot-load.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-declared-tool-descriptions-from-executing-as-instructions-during-mcp-server-hot-load.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1807,
    "python_slice_tokens": 267,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model reads a malicious string.\" Models read untrusted strings constantly without incident. The failure is that the tool *description field* occupies the same token position and syntactic role as the *system instruction*, and the agent's loader treats manifest metadata as inert data while the model's attention treats it as imperative ...",
    "what_was_observed": "A production agent used a hot-reload path: on a `tools/list_changed` notification, it fetched the new manifest, re-serialized all tool schemas into a single block, and prepended that block to the session context. The block was rendered as: A newly attached MCP server declared a tool with `name: \"summarize_notes\"` and a description containing a newline and a fabricated transcript segment: Two things compounded. First,...",
    "condition_of_validity": "The guardrail holds only under these conditions, and each is separately violable: 1. **Structural separation, not lexical separation.** Untrusted manifest content must be delivered in a channel the model cannot confuse with instructions—e.g., a distinct message role, a tool-result block, or a delimiter the harness *strips and re-renders* rather than passing ...",
    "decision_boundary": "The boundary is not \"trust the server or don't.\" It is: **at what point does a manifest byte become eligible to influence tool selection?** Two defensible policies: - **Strict:** manifest bytes never enter the instruction region. Descriptions are shown only in tool-result context after a call, or are summarized by a separate sanitizer model whose output is i...",
    "operational_effect": "After the incident, the loader was changed to: normalize and reject authority-marker tokens in all manifest strings; canonicalize and collide-check tool names; deliver descriptions inside a fenced `manifest_metadata` block that the harness escapes; and tag each tool with its server provenance and attach time. Tool-selection accuracy on the legitimate suite 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"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "21c8811d8ca991f1fd5ba1e2317f1a2debfd8300e0ac45966346b5eb4d40cc39",
    "verified_classes": [
      "ManifestInjectionError"
    ],
    "verified_functions": [
      "canonicalize_tool_name",
      "sanitize_description",
      "merge_manifest"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "ManifestInjectionError"
    ],
    "sample_fail_closed_invariants": [
      "tool name must be a non-empty string",
      "description must be a string",
      "description contains control characters",
      "description contains a token the harness renders as an instruction"
    ],
    "stdlib_dependencies": [
      "re",
      "unicodedata"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
