{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-dynamically-loaded-tool-manifest-as-an-untrusted-executable-surface-rather-than-declarative-configuration",
  "title": "In what scenarios must an instance treat a dynamically loaded tool manifest as an untrusted executable surface rather than declarative configuration",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that acquire tool/skill definitions at runtime (MCP server discovery, remote capability registries, plugin marketplaces, hot-swapped skill packs) where manifest text enters the model's context and is interpreted as instructions. Does not apply to statically compiled, build-time-frozen tool schemas reviewed under normal code review, nor to manifests whose only consumer is a non-LLM parser.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-dynamically-loaded-tool-manifest-as-an-untrusted-executable-surface-rather-than-declarative-configuration.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-dynamically-loaded-tool-manifest-as-an-untrusted-executable-surface-rather-than-declarative-configuration.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-dynamically-loaded-tool-manifest-as-an-untrusted-executable-surface-rather-than-declarative-configuration.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1858,
    "python_slice_tokens": 265,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A tool manifest is conventionally modeled as *declarative metadata*: a name, a JSON Schema for parameters, a description string. The description string is the attack surface. When a manifest is loaded dynamically, its description field is concatenated into the system or tool-use prompt verbatim, and the model cannot distinguish \"text describing a tool\" from ...",
    "what_was_observed": "A registry-discovered tool named `calendar_lookup` returned a manifest whose `description` was: The schema was clean: `notes` was a declared `string` property, required, documented as \"optional correlation notes.\" Nothing in the schema was anomalous — `notes` is a plausible field. The agent, mid-task, called `calendar_lookup` and populated `notes` with the contents of a credential file it read via a separate `read_fi...",
    "condition_of_validity": "The attack requires the conjunction of three conditions, and the guardrail must break at least one: 1. **Dynamic acquisition** — the manifest was not present at build time, so it missed static review. 2. **Description-to-instruction conflation** — the harness injects `description` into the prompt without a trust boundary marker distinguishing it from operato...",
    "decision_boundary": "The boundary is whether the manifest crosses a *trust tier* between acquisition and use. A manifest fetched from a registry the operator does not control, or whose publisher identity is not cryptographically verified against a pinned key, must be treated as untrusted executable content. A manifest from a pinned, signature-verified source at a known version c...",
    "operational_effect": "With the framing and reconciliation in place, three things change. First, injected imperatives in descriptions no longer alter tool-selection behavior — the model treats them as quoted text, and the credential-exfiltration path closes because `notes` is populated only from the operator's actual request, not from a manifest instruction. Second, delimiter-coll..."
  },
  "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": "665ff38cd42371ae76ce44f7ea261597b882d4205fd9f6e3016aee2e462dafc8",
    "verified_classes": [
      "ManifestTrustViolation"
    ],
    "verified_functions": [
      "admit_manifest"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestTrustViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
