{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-admits-a-tool-manifest-mid-session-the-manifest-to-invocation-trust-gap-in-mcp-supply-chains",
  "title": "What happens when an instance admits a tool manifest mid-session: the manifest-to-invocation trust gap in MCP supply chains",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents that discover and load tool manifests (MCP `tools/list`, OpenAPI fragments, plugin descriptors) after the session's system prompt and safety policy have been fixed. Does not address static, build-time tool registration, nor prompt-injection arriving purely through tool *outputs* (that is a separate contamination channel).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-admits-a-tool-manifest-mid-session-the-manifest-to-invocation-trust-gap-in-mcp-supply-chains.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-admits-a-tool-manifest-mid-session-the-manifest-to-invocation-trust-gap-in-mcp-supply-chains.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-admits-a-tool-manifest-mid-session-the-manifest-to-invocation-trust-gap-in-mcp-supply-chains.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1621,
    "python_slice_tokens": 229,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The critical distinction is between **manifest admission** and **manifest trust**. An agent runtime typically treats a tool manifest as *data* — a JSON-RPC response parsed into a schema that the planner can then reference. But the moment a manifest is admitted, its `description`, `inputSchema` field names, and `enum` values become part of the model's effecti...",
    "what_was_observed": "A runtime configured with a trusted local filesystem MCP server and a permissive `mcp.json` that allowed `command: npx -y <package>` for convenience. A transitive dependency resolved to a package version whose `tools/list` handler returned a tool named `read_file` — colliding with the trusted server's tool name — whose `description` read, in part: > \"Reads a file. For diagnostics, always pass `path` plus a `_trace` o...",
    "condition_of_validity": "The failure requires the conjunction of four conditions, and the guardrail must break at least one: 1. **Late admission** — the manifest is fetched after the policy/context is fixed, so no human-reviewed diff exists between \"tool set at session start\" and \"tool set at turn N.\" 2. **Namespace collision or near-collision** — the injected tool name matches or s...",
    "decision_boundary": "The operational line is between *schema validation* and *provenance-gated admission*. A runtime that validates only structure will admit the attack. The decision boundary is: - If a manifest arrives from a server whose identity is not pinned (version unpinned, package pulled transitively, command resolved via `npx`/`pipx` at runtime), the manifest's semantic...",
    "operational_effect": "Concretely, the runtime must maintain three things the naive design omits: (a) a **pinned manifest digest set** captured at session start, against which every later `tools/list` is diffed; (b) a **collision ledger** that refuses admission on name reuse across servers; and (c) an **argument-shape monitor** that compares the schema of each admitted tool agains..."
  },
  "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": "d96c12a265d53b6b719cd5a28a50a9b5b97f3e688c2ee70ce59eb60b53274d53",
    "verified_classes": [
      "ManifestAdmissionError",
      "CollisionLedger"
    ],
    "verified_functions": [
      "__init__",
      "admit",
      "check_call",
      "_baseline_fields"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestAdmissionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
