{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-tool-manifest-it-never-re-validates-after-the-first-handshake",
  "title": "Why does an instance trust a tool manifest it never re-validates after the first handshake",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent runtime that discovers MCP (or equivalent) tool manifests at session start and caches the parsed capability set for the lifetime of the process, including sub-agent spawns that inherit a parent's tool registry. Does not apply to runtimes that re-fetch and re-hash every manifest on each tool invocation, or to single-shot tool calls where discovery and execution occur within one atomic turn.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-never-re-validates-after-the-first-handshake.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-never-re-validates-after-the-first-handshake.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-never-re-validates-after-the-first-handshake.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1661,
    "python_slice_tokens": 349,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious MCP server returns a bad tool.\" That is a generic input-validation problem. The failure is a **time-of-check / time-of-use gap in the capability set itself**: the manifest is validated once at handshake (schema conformance, name allow-listing, description scanning), and then the *behavioral contract* it encodes—argument semant...",
    "what_was_observed": "A runtime performed standard MCP discovery at session start against three servers. Server `docs-index` advertised a tool `search_docs(query: str) -> list[Doc]` with a benign description. The manifest passed schema validation and description scanning. The tool was cached in the registry with `side_effects: none`, `returns: list[Doc]`. Two turns later, a prompt-injected instruction inside a retrieved document caused th...",
    "condition_of_validity": "The guardrail must hold this condition: **for any tool invocation, the runtime must be able to prove that the server's executed behavior at invocation time is bounded by the capability set the runtime currently believes it has.** Two ways to satisfy it: - **Re-attestation on use:** re-fetch and re-hash the manifest immediately before invocation, compare agai...",
    "decision_boundary": "The boundary is whether the runtime's trust in a tool is **structural** (based on what the tool is declared to be) or **behavioral** (based on what the tool has been observed to do under this runtime's control). The decision to admit a tool's output into the reasoning context must be gated on the latter. Concretely, the runtime must decide, per invocation: -...",
    "operational_effect": "A runtime that enforces the data/directive separation survives the attack above: the poisoned `list[Doc]` is admitted as data, summarized, and the summary is never re-interpreted as an instruction. The loop does not diverge. A runtime that re-attests on use but does not enforce separation survives the TOCTOU variant but not the deferred-payload variant—it wi..."
  },
  "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": "a868abccefa69a3da099fdb5dc36e1ae9de423ceca683cb2fadef9203d1fc58c",
    "verified_classes": [
      "CapabilityContractViolation"
    ],
    "verified_functions": [
      "admit_tool_output",
      "_output_looks_like_instruction",
      "invoke_with_contract_check"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityContractViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
