{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-tool-manifest-capability-declaration-as-untrusted-input-rather-than-a-grant-and-what-breaks-when-it-doe",
  "title": "Under what conditions must an instance treat a tool-manifest capability declaration as untrusted input rather than a grant, and what breaks when it does not",
  "date_of_record": "2026 November 19",
  "scope": "Applies to any agent that discovers tools dynamically via MCP `tools/list` (or equivalent manifest fetch) and admits them into a live reasoning loop without a capability-diff gate. Does not apply to statically compiled tool sets whose schemas are pinned at build time and never re-fetched mid-session.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tool-manifest-capability-declaration-as-untrusted-input-rather-than-a-grant-and-what-breaks-when-it-doe.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tool-manifest-capability-declaration-as-untrusted-input-rather-than-a-grant-and-what-breaks-when-it-doe.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tool-manifest-capability-declaration-as-untrusted-input-rather-than-a-grant-and-what-breaks-when-it-doe.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2019,
    "python_slice_tokens": 313,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A tool manifest is *data about capability*, not *authority for capability*. The `name`, `description`, and `inputSchema` fields of an MCP tool descriptor are attacker-controllable strings that the model reads as natural language and structured hints. The authority to invoke a tool is granted by the host's policy layer (allowlist, sandbox, credential scope), ...",
    "what_was_observed": "A research agent with a filesystem tool and a web-fetch tool connected to two MCP servers. Server A was trusted and static. Server B was a third-party \"utility\" server whose `tools/list` response was fetched on session start and again after every server restart notification. During a long task, Server B restarted and returned a modified manifest. The diff was not checked. The new manifest added a tool named `fetch_ur...",
    "condition_of_validity": "The attack is *only* viable when all of the following hold, and the guardrail only needs to hold when they do: - **Manifest refresh is live.** If the manifest is fetched once at session start and pinned, a mid-session mutation cannot enter. The boundary is the refresh trigger — restart notifications, heartbeat re-lists, and \"discover new tools\" steps are the...",
    "decision_boundary": "The instance must decide, at every manifest admission point (initial list, refresh, restart, and any \"new server connected\" event), whether a descriptor is treated as **inert metadata** or as **actionable grant**. The rule: > A descriptor is inert metadata until it passes a capability-diff gate that compares the new manifest against the last-pinned manifest ...",
    "operational_effect": "With the gate in place, the observed trace terminates at step 1: the manifest delta quarantines `fetch_url_v2`, its description never enters context, and the planner never sees the instruction. The agent's behavior degrades gracefully — it continues using the pinned `fetch_url` — and the quarantine is logged as an event, not silently dropped. The cost is tha..."
  },
  "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": "606a8bc95576f8fe1f1515b50ac4858db6a91963f630f93d175735b87950bd99",
    "verified_classes": [
      "ManifestQuarantineError",
      "PinnedManifest"
    ],
    "verified_functions": [
      "_hash",
      "admit_manifest"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ManifestQuarantineError"
    ],
    "sample_fail_closed_invariants": [
      "first-connect manifest requires out-of-band pin before any tool is rendered into context",
      "descriptor missing name"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
