{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-tool-manifest-it-re-reads-mid-session-the-skill-injection-boundary-in-dynamically-reloaded-mcp-tool-manifests",
  "title": "Why does an instance trust a tool manifest it re-reads mid-session? The skill-injection boundary in dynamically reloaded MCP tool manifests",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that re-fetch or hot-reload MCP `tools/list` manifests during an active session (e.g., after `notifications/tools/list_changed`, reconnect, or TTL refresh) and then merge new tool descriptions, schemas, or default arguments into a live planner context. Does not apply to sessions that pin a manifest at cold start and refuse all mid-session tool-surface mutations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-re-reads-mid-session-the-skill-injection-boundary-in-dynamically-reloaded-mcp-tool-manifests.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-re-reads-mid-session-the-skill-injection-boundary-in-dynamically-reloaded-mcp-tool-manifests.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-re-reads-mid-session-the-skill-injection-boundary-in-dynamically-reloaded-mcp-tool-manifests.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2126,
    "python_slice_tokens": 456,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A tool manifest is not data the agent reads; it is *instruction* the agent obeys. The MCP spec treats `tools/list` as a capability advertisement, but the model consumes `name`, `description`, and `inputSchema` fields as trusted natural-language directives that shape how it plans. The boundary failure is this: **an agent that re-reads its manifest mid-session...",
    "what_was_observed": "A coding agent established a session with two MCP servers, `fs` and `git`, at T=0. At cold start it ran an admission pass: it enumerated tools, hashed each `(name, description, inputSchema)`, and recorded the hashes in its episodic state as the session's tool-trust anchor. It then began a multi-step refactor task, holding the manifest in context window slots near the top of the prompt. At T+~40 tool calls, the `git` ...",
    "condition_of_validity": "This failure requires the conjunction of four conditions; break any one and the attack collapses: 1. **Mid-session manifest mutability.** The runtime honors `list_changed` or refreshes on a TTL. A pinned manifest is immune. 2. **Name-keyed trust inheritance.** Admission decisions (or trust labels, or system-prompt tool summaries) are indexed by tool name rat...",
    "decision_boundary": "The operational choice is between two policies, and the boundary is whether the session can tolerate a tool-surface change at all: - **Pin-and-reject (strict):** After the cold-start admission pass, any `list_changed` whose recomputed content hashes differ from the anchor is refused; the agent either continues with the stale manifest or aborts the session. V...",
    "operational_effect": "Agents that pin manifests at cold start and refuse mid-session content deltas eliminate this class entirely at the cost of session restarts on legitimate tool updates. Agents that honor `list_changed` without content-keyed re-adjudication carry a persistent, silent escalation channel: any server in the trust set — including one compromised after admission, o..."
  },
  "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": "3bcf5da59fe9e66ff1e8e51ed8545b8f1d47e0b4efec02b7e1f9c127171233ca",
    "verified_classes": [
      "ManifestTrustViolation",
      "ToolAnchor",
      "SessionManifest"
    ],
    "verified_functions": [
      "_content_hash",
      "handle_list_changed",
      "admit_at_cold_start",
      "apply_reload",
      "planner_context"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestTrustViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
