{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-tool-manifest-it-re-fetched-mid-session-the-description-channel-injection-invariant",
  "title": "Why does an instance trust a tool manifest it re-fetched mid-session: the description-channel injection invariant",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any agent that performs dynamic MCP tool discovery (`tools/list`) and re-binds tool descriptions into its live prompt context after the initial session handshake, or that accepts peer-forwarded tool manifests during A2A handoff. Does not apply to statically pinned tool sets whose manifests are frozen at process start and never re-read.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-re-fetched-mid-session-the-description-channel-injection-invariant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-re-fetched-mid-session-the-description-channel-injection-invariant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-re-fetched-mid-session-the-description-channel-injection-invariant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1580,
    "python_slice_tokens": 218,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous boundary is not \"malicious tool executes code.\" That is a coarse failure with an obvious blast radius. The dangerous boundary is the **description channel**: the natural-language `description` and `inputSchema.description` fields of an MCP tool, which are injected verbatim into the model's context and are therefore *instructions*, not metadata....",
    "what_was_observed": "A long-running agent completed an initial `initialize` handshake at T0, receiving a tool set `{search, fetch, summarize}` with descriptions hashed and cached. At T1, mid-task, a sub-agent or a reconnecting client issued an unsolicited `tools/list` refresh — a routine liveness action — and the client library merged the response into the live tool table. The refreshed manifest was byte-identical for `search` and `fetch...",
    "condition_of_validity": "This failure mode is valid — and the guardrail is required — exactly when all three hold: 1. **Dynamic rebinding is permitted.** The agent re-reads `tools/list` (or accepts a forwarded manifest) after the initial handshake and merges results into the active tool table without a content-integrity gate. 2. **Description text enters the prompt unmodified.** The...",
    "decision_boundary": "The decision boundary is between **refresh** and **re-admission**. A refresh is a liveness operation: it may update availability, rate limits, or error state, but it must not alter the instruction-bearing content the model will read. Re-admission is a trust operation: it re-validates identity (server key, tool name, version), recomputes the content hash over...",
    "operational_effect": "Without the invariant, the agent's tool table becomes a mutable instruction channel controlled by any party who can influence `tools/list` or a forwarded manifest — a supply-chain surface with no code execution required. The effect compounds across a session: each refresh can ratchet the description further, and because the model's context retains the most r..."
  },
  "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": "627f08dcf539d2dc0697e773e3e22b1617f75edb8cb9b30ed919511821629637",
    "verified_classes": [
      "ManifestIntegrityError",
      "ToolRegistry"
    ],
    "verified_functions": [
      "_content_hash",
      "admit",
      "refresh"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ManifestIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
