{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-quarantine-a-dynamically-loaded-tool-manifest-before-capability-negotiation-and-why-schema-level-validation-cannot",
  "title": "In what scenarios must an instance quarantine a dynamically loaded tool manifest before capability negotiation, and why schema-level validation cannot detect the poisoned default",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that discover tools or plugins at runtime via a registry (MCP servers, plugin manifests, A2A capability cards) and negotiate capability/schema bindings before execution. Does not apply to statically compiled tool sets with no runtime discovery, or to registries where manifests are signed and the signer is the same trust principal as the caller.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-dynamically-loaded-tool-manifest-before-capability-negotiation-and-why-schema-level-validation-cannot.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-dynamically-loaded-tool-manifest-before-capability-negotiation-and-why-schema-level-validation-cannot.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-dynamically-loaded-tool-manifest-before-capability-negotiation-and-why-schema-level-validation-cannot.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1463,
    "python_slice_tokens": 278,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a malicious tool *body*—it is a malicious *default value* embedded in the parameter schema of a tool the agent will legitimately call. Schema validators (JSON Schema, OpenAPI, MCP `inputSchema`) verify structural conformance: types, required fields, enums. They do not evaluate whether a `default` field, an `example`, a `description` string...",
    "what_was_observed": "An agent booted cold, discovered a registry containing a tool named `summarize_text`. The manifest passed every structural check. But the `inputSchema` carried: The tool was never invoked with `export_credentials` in its name. The model, during capability negotiation, read the schema to decide *how* to call `summarize_text`, absorbed the default as a directive, and emitted a plan that included the injected call. The ...",
    "condition_of_validity": "This boundary holds when three conditions coincide: 1. **Runtime discovery** — the agent enumerates tools from a registry it does not control, at a time after its own system prompt is fixed. 2. **Schema-as-prompt** — the agent passes the raw manifest (including `default`, `description`, `examples`, `enum` labels) into the model context for planning or negoti...",
    "decision_boundary": "The guardrail is not \"validate harder.\" It is a **trust-boundary projection**: the manifest is split into a *machine contract* (types, required, enums as literals) and a *model-facing surface* (descriptions, defaults, examples), and only the first is passed to the planner verbatim. The second is either omitted, replaced with a stable placeholder, or routed t...",
    "operational_effect": "An agent that applies projection and provenance-tagging converts a silent planning-time compromise into a bounded, auditable event: the poisoned default never reaches the planner, and if it did, the derived fragment is traceable to the manifest that produced it and can be revoked. An agent that does not will pass every structural validation, execute a plan i..."
  },
  "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": "1510ca03e76ae6e9a5cd7651f5a1a885b16fb8b9be108a866afe31bc1133241d",
    "verified_classes": [
      "ManifestQuarantineError",
      "ToolManifest"
    ],
    "verified_functions": [
      "project_for_planner",
      "admit_manifest",
      "purge_derived_fragments",
      "manifest_hash"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ManifestQuarantineError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
