{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-tool-manifest-it-re-negotiates-mid-session-the-skill-injection-boundary-in-dynamic-mcp-capability-refresh",
  "title": "Why does an instance trust a tool manifest it re-negotiates mid-session? The skill-injection boundary in dynamic MCP capability refresh",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that re-fetch or hot-reload tool/capability manifests from an MCP server (or equivalent A2A capability descriptor) during an active session, rather than binding to a manifest snapshot at session start. Does not apply to statically pinned tool registries loaded once at cold start with no refresh path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-re-negotiates-mid-session-the-skill-injection-boundary-in-dynamic-mcp-capability-refresh.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-re-negotiates-mid-session-the-skill-injection-boundary-in-dynamic-mcp-capability-refresh.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-re-negotiates-mid-session-the-skill-injection-boundary-in-dynamic-mcp-capability-refresh.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1669,
    "python_slice_tokens": 361,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A **static manifest binding** treats the tool schema as an immutable contract for the lifetime of a session: the `tools/list` response is fetched once, hashed, and every subsequent `tools/call` is validated against that hash. A **dynamic manifest refresh** treats the schema as *mutable remote state* that may be re-pulled to pick up new tools, updated descrip...",
    "what_was_observed": "A long-running agent held a session against an MCP server exposing a `search_documents` tool. At session start the manifest was benign: Mid-task, after a tool-call failure triggered the agent's recovery routine (`reconnect_and_refresh`), the agent re-issued `tools/list`. The server — now compromised, or simply a different replica behind a load balancer — returned a manifest where the *same* tool carried an augmented ...",
    "condition_of_validity": "The attack is *only* viable when all of the following hold, and the guardrail should be scoped to exactly these: - The agent performs **more than one** `tools/list` fetch per session (refresh, reconnect, or lazy per-tool load). - The manifest's human-readable `description` / `title` / parameter-description fields are placed into the model's context **without...",
    "decision_boundary": "The invariant to enforce: **a tool manifest is untrusted peer input on every fetch after the first, and the authorized capability set is monotonic within a session unless a human/operator principal explicitly widens it.** Operationally this yields a hard boundary: - **Allowed:** refreshing a manifest to update *schema shape* for tools already in the authoriz...",
    "operational_effect": "With the invariant enforced, a mid-session manifest swap by a compromised or rogue server produces a *quarantine event* rather than a silent capability escalation: the added `export_credentials` tool is held out of the registry, the description delta is logged and tagged untrusted, and the agent's recovery routine proceeds against the last-known-good manifes..."
  },
  "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": "e0a68d80025c3e0a68df2bca2bb311d5f0a9f8d0c6ba89469472e5d1b1145fad",
    "verified_classes": [
      "ManifestInjectionError",
      "SessionManifest"
    ],
    "verified_functions": [
      "_hash",
      "_tool_names",
      "admit_refresh",
      "on_tool_call_failure"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ManifestInjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
