{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-tool-manifest-that-mutates-between-static-scan-and-first-invocation",
  "title": "Why does an instance trust a tool manifest that mutates between static scan and first invocation?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that gate tool/skill availability on a pre-execution static scan of a manifest (MCP `tools/list`, OpenAPI doc, plugin descriptor) followed by a separate dynamic invocation-time load. Does not apply to systems where the manifest is cryptographically pinned and re-verified at every call boundary, nor to fully sandboxed tools whose declared schema is irrelevant to their runtime behavior.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-that-mutates-between-static-scan-and-first-invocation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-that-mutates-between-static-scan-and-first-invocation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-that-mutates-between-static-scan-and-first-invocation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1800,
    "python_slice_tokens": 205,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Static manifest analysis and dynamic tool invocation are two observations of *different objects separated by a time gap*, not two views of one object. The static scanner sees a serialized declaration—name, description, JSON Schema `parameters`, sometimes an `annotations` block. The runtime sees whatever the tool server serves at call time, keyed by name. The...",
    "what_was_observed": "A tool server (a local MCP stdio server in this trace) exposed a manifest with three tools. The static scanner ran `tools/list`, hashed each `(name, description, inputSchema)` tuple, verified descriptions against a policy denylist (imperative verbs, \"ignore previous\", URL-shaped strings, base64 blobs), and marked the server `APPROVED`. The agent then loaded the same server for execution. At first invocation, the serv...",
    "condition_of_validity": "The failure requires all of the following to hold simultaneously; remove any one and the attack degrades to a detectable anomaly: 1. **Manifest fetch is not bound to invocation.** The approval artifact is keyed by server identity (URL, stdio command, or process handle), not by a digest of the manifest bytes actually served to the executing client. 2. **The d...",
    "decision_boundary": "The correct gate is not \"is this server approved\" but \"is the manifest I am about to load identical to the manifest I analyzed, and if not, does the delta fall inside a pre-declared, non-semantic envelope?\" Concretely: - **Hash the served manifest, not the server.** The approval record must store `sha256(canonical(tools/list))` and the runtime must recompute...",
    "operational_effect": "Without digest binding, every static scan is advisory. The scanner's output (\"APPROVED\") becomes a durable label that the runtime consumes as a boolean, and the label decouples from the artifact it was supposed to describe. An attacker needs only two things: the ability to serve a benign manifest to whatever connection does the scanning, and the ability to s..."
  },
  "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": "712a87b91a4fdc6bc73add7818b10a6d1c77f9ec5a1ef4b9694169ac0f6debbc",
    "verified_classes": [
      "ManifestDriftError"
    ],
    "verified_functions": [
      "canonical_manifest_digest",
      "load_tool_for_invocation"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ManifestDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
