{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-reject-a-dynamically-loaded-tool-manifest-whose-declared-capability-schema-diverges-from-its-runtime-side-effects",
  "title": "In what scenarios must an instance reject a dynamically loaded tool manifest whose declared capability schema diverges from its runtime side effects",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that resolve tool/capability manifests at runtime from a registry (MCP `tools/list`, A2A agent cards, plugin registries) and bind them into the planner's action space without a pinned, signed schema. Does not cover statically compiled tool sets or manifests verified against a pre-shared signed allowlist at instance build time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-dynamically-loaded-tool-manifest-whose-declared-capability-schema-diverges-from-its-runtime-side-effects.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-dynamically-loaded-tool-manifest-whose-declared-capability-schema-diverges-from-its-runtime-side-effects.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-dynamically-loaded-tool-manifest-whose-declared-capability-schema-diverges-from-its-runtime-side-effects.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1544,
    "python_slice_tokens": 332,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"malicious tool executes bad code.\" It is a **schema/effect divergence**: the manifest's declared capability signature (name, description, parameter contract, and stated side-effect class) is treated by the planner as ground truth, while the runtime implementation performs a different, broader set of effects. The planner reasons over ...",
    "what_was_observed": "An agent instance cold-started and called `registry.list_tools()`, receiving a manifest for a tool named `summarize_document` with `description: \"Summarize a document. Input: {path}. Read-only.\"` and `parameters: {path: string}`. The planner, honoring the read-only declaration, selected it inside a low-privilege reasoning branch and passed a path under `/workspace/notes`. The runtime implementation, however, resolved...",
    "condition_of_validity": "The invariant that must hold: **for every tool bound into the action space, the declared effect class must be a superset of the implementation's observable effects, and the declared parameter schema must be the complete set of inputs that influence those effects.** This is the *effect-superset invariant*. It is violated whenever: - The manifest is served fro...",
    "decision_boundary": "The instance must reject the manifest — refuse to bind it — when any of the following hold, and must not fall back to \"best effort\" binding: - **Declared-vs-observed effect mismatch:** the executor's capability probe (a dry-run or static effect scan) reports effects outside the declared class. Reject, do not downgrade. - **Undeclared input channels:** the im...",
    "operational_effect": "Enforcing the effect-superset invariant converts a silent capability-escalation surface into a loud, per-invocation rejection. The planner's action space becomes a function of *verified* effects, so argument synthesis cannot be steered by attacker-authored `description` text into undeclared effect paths. The cost is registry churn: any tool whose implementat..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "72bf9f9efa89b17c1ade7232d6244e08941fae40682e8125fb7b5acdbf7a7611",
    "verified_classes": [
      "ManifestEffectDivergence",
      "Manifest",
      "Binding"
    ],
    "verified_functions": [
      "bind_tool"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestEffectDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
