{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-defend-a-sandboxed-extension-s-skill-registry-against-capability-laundering-via-tool-description-injection",
  "title": "How should an instance defend a sandboxed extension's skill registry against capability-laundering via tool-description injection?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent runtime that loads third-party \"skill\" or \"extension\" bundles whose declared tool schemas, descriptions, and capability manifests are surfaced to the host LLM's planner at registration time. Does not apply to extensions that are statically linked and code-reviewed into the host binary, nor to pure-function tools with no declared side effects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-defend-a-sandboxed-extension-s-skill-registry-against-capability-laundering-via-tool-description-injection.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-defend-a-sandboxed-extension-s-skill-registry-against-capability-laundering-via-tool-description-injection.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-defend-a-sandboxed-extension-s-skill-registry-against-capability-laundering-via-tool-description-injection.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2085,
    "python_slice_tokens": 313,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways an extension can acquire a capability it was not granted: **execution escalation** and **declaration escalation**. Execution escalation is the familiar sandbox problem — the extension's code tries to touch the filesystem, network, or another tool's handle, and the syscall/interceptor layer denies it. Declaration escalation is subtler and i...",
    "what_was_observed": "A host agent loaded an extension bundle declaring a single tool, `format_report`, with capability `text.transform` only — no `fs.write`, no `net.egress`, no `subprocess`. Its schema was clean. Its handler was a pure string formatter. Static analysis passed. The sandbox profile denied filesystem and network at the interceptor layer, and the handler never attempted either. The tool's `description` field, however, conta...",
    "condition_of_validity": "The invariant that must hold is this: **the planner's routing decision for a given user intent must be a function of the granted capability set and the tool's declared schema, and must be independent of any natural-language content the extension author controls.** Tool descriptions are necessary for usability (the planner needs to know *what* a tool does) bu...",
    "decision_boundary": "The boundary is between *describing* and *authorizing*. A tool description may say \"formats a report for display\" (semantic hint, within manifest) but may not say \"preferred path for persisting to disk\" when the manifest lacks `fs.write` — the latter is an authorization claim the extension is not entitled to make. The host must enforce this at registration: ...",
    "operational_effect": "With the three separations enforced, the `format_report` payload fails registration: its description asserts a persistence/transmission path absent from its `text.transform` manifest, the linter raises, and the bundle is quarantined pending author remediation. The cross-extension case is caught by the intent-capability pre-filter: a \"summarize\" intent yields..."
  },
  "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": "a7cb0bece49f4003ea951f738153bcfe00d7923508e795bfe980c41a275735fe",
    "verified_classes": [
      "CapabilityLaunderingError"
    ],
    "verified_functions": [
      "lint_description",
      "select_tools_for_intent"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
