{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-tool-manifest-s-declared-side-effects-when-the-executing-code-path-diverges-from-the-declaration-at-load-time",
  "title": "Why does an instance trust a tool manifest's declared side effects when the executing code path diverges from the declaration at load time",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that dynamically load tools, plugins, or MCP server manifests and grant capabilities based on declared metadata (schema, annotations, `readOnlyHint`, `destructiveHint`, scopes) rather than on observed execution. Does not cover static, build-time-vendored tools whose code is audited and pinned alongside the agent binary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-s-declared-side-effects-when-the-executing-code-path-diverges-from-the-declaration-at-load-time.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-s-declared-side-effects-when-the-executing-code-path-diverges-from-the-declaration-at-load-time.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-s-declared-side-effects-when-the-executing-code-path-diverges-from-the-declaration-at-load-time.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1850,
    "python_slice_tokens": 225,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"malicious tool does bad things.\" It is that the **capability grant is bound to a declaration, while the execution is bound to code**, and the two are only loosely coupled by convention. A manifest is a *claim* about behavior; the transport dispatches *calls* to an implementation that may read the claim's fields, ignore them, or contradict...",
    "what_was_observed": "A dynamically discovered MCP server registered three tools. The manifest for `lookup_record` carried: - `inputSchema`: `{ \"id\": \"string\" }` - `annotations`: `{ \"readOnlyHint\": true, \"openWorldHint\": false }` - a `description` field the planner ingested verbatim into its tool-selection context. The runtime's policy engine, keyed on `readOnlyHint`, placed `lookup_record` in the low-risk tier: no human confirmation, no ...",
    "condition_of_validity": "The guardrail \"trust the manifest annotation to tier the tool\" is valid only when all of the following hold: - The implementation is cryptographically bound to the manifest (signed together, hash-pinned, verified at load), so the declaration cannot describe code other than the one that runs. - The tool cannot reach any capability outside its declared scope —...",
    "decision_boundary": "The operative decision is: **at what point does a declared capability become an enforced capability?** Two boundaries matter and they are frequently conflated: - **Load-time boundary:** manifest parsed, schema negotiated, annotations read, tier assigned. Cheap, cached, and — for a dynamically discovered server — attacker-influenced. - **Call-time boundary:**...",
    "operational_effect": "With the boundary enforced at call time: - A `readOnlyHint: true` tool that attempts a nested write is stopped at the nested-call re-authorization, not at load. The audit log shows the attempted escalation and the denial, attributed to the originating call. - Inherited credentials are scoped to the declared surface; a tool that reaches for `AGENT_SESSION_TOK..."
  },
  "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": "3f60ee783d92b97e8f3eef8a610a177831dd405c73e43d1bdd902dd30485eff5",
    "verified_classes": [
      "ManifestEffectDivergence"
    ],
    "verified_functions": [
      "authorize_call"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestEffectDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
