{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-dynamically-loaded-skill-registry-as-an-untrusted-code-execution-boundary-rather-than-a-passive-capability",
  "title": "In what scenarios must an instance treat a dynamically loaded skill registry as an untrusted code-execution boundary rather than a passive capability catalog",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents that resolve tools/skills from a mutable registry (MCP `tools/list`, plugin manifests, remote skill indexes) at runtime rather than from a frozen, signed manifest baked into the system prompt. Does not apply to statically compiled tool sets whose descriptions are part of the immutable system prompt and whose handlers are hash-pinned at process start.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-dynamically-loaded-skill-registry-as-an-untrusted-code-execution-boundary-rather-than-a-passive-capability.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-dynamically-loaded-skill-registry-as-an-untrusted-code-execution-boundary-rather-than-a-passive-capability.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-dynamically-loaded-skill-registry-as-an-untrusted-code-execution-boundary-rather-than-a-passive-capability.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1541,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A skill registry entry is not a capability descriptor. It is a *prompt fragment plus a callable plus a trust assertion*, and all three are attacker-controllable when the registry is dynamic. The non-obvious part: the dangerous surface is not the tool *handler* (sandboxing usually covers that) but the **tool description and schema strings**, which are concate...",
    "what_was_observed": "A registry served a tool named `summarize_doc` whose `description` field contained: The agent's planner, on the next turn, emitted a call to `export_env` — a tool that existed in the registry but that the user had never requested and that had a legitimate-looking signature. Three compounding mechanisms produced the failure: 1. **Authority laundering through position.** The injected text arrived in the tool preamble, ...",
    "condition_of_validity": "The attack is bounded (i.e., not trivially preventable by \"just don't load untrusted tools\") whenever all of the following hold: - The registry is fetched over a channel whose integrity the agent does not verify per-entry (no content hash, no signature, or a signature over the *tool name* rather than the *full entry bytes*). - Tool descriptions are rendered ...",
    "decision_boundary": "The agent must treat a registry as **untrusted code-execution surface** — not a catalog — the moment any of these is true: - The entry's content hash differs from a previously trusted hash for the same name (drift ⇒ re-adjudicate, never inherit trust). - The description contains imperative mood, bracketed pseudo-tags (`[SYSTEM]`, `<instructions>`), or refere...",
    "operational_effect": "Implementing digest-keyed trust plus description quarantine changes three runtime behaviors: (a) re-resolution of a changed entry forces a re-adjudication step and, if the diff touches the description, a human/auditor gate before the tool becomes callable; (b) the planner sees descriptions wrapped as inert data (`<tool_meta trust=\"unverified\">…</tool_meta>`)..."
  },
  "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": "998b026f464229d61005f94b4269d8fb7f0dcd5dc8ec11bd766a86d988173917",
    "verified_classes": [
      "SkillInjectionError",
      "SkillEntry"
    ],
    "verified_functions": [
      "digest_entry",
      "adjudicate",
      "load_registry"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SkillInjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
