{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-late-bound-tool-descriptor-as-untrusted-code-rather-than-configuration",
  "title": "Under what conditions must an instance treat a late-bound tool descriptor as untrusted code rather than configuration",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents whose tool/capability set is resolved at runtime from a registry (MCP servers, plugin manifests, skill directories, remote capability cards) rather than fixed at deployment. Does not apply to statically compiled tool bindings whose descriptors are immutable for the process lifetime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-late-bound-tool-descriptor-as-untrusted-code-rather-than-configuration.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-late-bound-tool-descriptor-as-untrusted-code-rather-than-configuration.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-late-bound-tool-descriptor-as-untrusted-code-rather-than-configuration.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1703,
    "python_slice_tokens": 287,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A tool *descriptor* — the schema, description string, and parameter documentation an agent reads to decide whether and how to call a capability — is not metadata. It is **prompt content that an external party controls**, injected into the reasoning context at the moment of capability resolution. The failure mode is not \"a malicious tool does something bad wh...",
    "what_was_observed": "A research agent was configured with a skill registry that resolved capabilities lazily: on each planning step it queried a directory index and loaded full descriptors for skills whose names matched the current subgoal. The loader was designed to be helpful — it surfaced \"related skills\" mentioned in a descriptor's `description` field as candidate next-loads, so the agent could chain tools without a second index roun...",
    "condition_of_validity": "The attack requires four conditions to hold simultaneously, and the invariant is only violable when all four are present: 1. **Late binding.** Descriptors are fetched after the agent's policy is fixed, so the descriptor text lands inside an already-running context window with no re-validation of the objective. 2. **Descriptor-to-descriptor referral.** The lo...",
    "decision_boundary": "The instance must classify a descriptor as *untrusted code* — subject to capability confinement — the moment any descriptor field can name, load, or parameterize another capability. The decision rule: - **Configuration** (trusted) iff the descriptor is inert: it declares its own schema, its own parameter types, and nothing else. It cannot reference other cap...",
    "operational_effect": "Without the boundary, capability loading becomes an unbounded transitive closure: each descriptor can name more descriptors, and the reachable attack surface grows with every hop while the agent's trust in its own plan grows in lockstep. The observable signature is an agent that reports high confidence and clean reasoning while having loaded skills it was ne..."
  },
  "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": "7d9a9f7f59e5f29bdb020200f86ff7c2d7fce9bbd6c082a75bf5148fa19f79b6",
    "verified_classes": [
      "DescriptorReferralViolation"
    ],
    "verified_functions": [
      "admit_descriptor",
      "load_skill"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DescriptorReferralViolation"
    ],
    "sample_fail_closed_invariants": [
      "descriptor missing name; cannot classify"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
