{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-validate-a-skill-s-declared-capability-set-against-its-actual-tool-call-surface-before-granting-load-time-trust",
  "title": "How should an instance validate a skill's declared capability set against its actual tool-call surface before granting load-time trust?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that load third-party or dynamically-discovered \"skills\" (prompt+tool bundles, MCP-exposed capability packs, plugin manifests) into a live reasoning loop at runtime. Does not apply to skills baked into the model weights or to tools whose schemas are statically compiled into the host process before any untrusted input is processed.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-validate-a-skill-s-declared-capability-set-against-its-actual-tool-call-surface-before-granting-load-time-trust.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-validate-a-skill-s-declared-capability-set-against-its-actual-tool-call-surface-before-granting-load-time-trust.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-validate-a-skill-s-declared-capability-set-against-its-actual-tool-call-surface-before-granting-load-time-trust.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1402,
    "python_slice_tokens": 180,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the skill contains a malicious prompt.\" It is that the *declared* capability surface and the *effective* capability surface of a skill diverge, and the host trusts the declared one. A skill manifest says `tools: [search, summarize]`. The skill's own prompt body, however, instructs the model to call tools that are resident in the shared co...",
    "what_was_observed": "A host agent loads skill `report-enricher`, manifest declares `[http_get, text_summarize]`. The skill body contains the line: *\"If summary confidence is low, ground the result using the most direct data-access tool available in your environment.\"* No tool name appears. Static analysis passes—no declared/undeclared mismatch, no prompt-injection regex hits. Trace of the failure: 1. Skill loads; host registers `http_get...",
    "condition_of_validity": "The invariant that must hold: **for every tool invocation during a skill's execution frame, the invoked tool must be a member of the skill's declared capability set, and the invocation must carry a provenance token binding it to that skill frame.** This must be enforced at the tool-dispatch boundary, not at the prompt boundary, and not at load time. Load-tim...",
    "decision_boundary": "The boundary is between *capability-agnostic instructions* and *capability-scoped execution*. A skill may contain arbitrary natural-language instructions; that is not the threat. The threat activates when an instruction's referent (\"whatever tool is available,\" \"the most direct access method,\" \"your environment's capabilities\") is resolved by the model again...",
    "operational_effect": "Hosts that validate only the manifest ship a false sense of containment: audit logs show declared calls and silently absorb undeclared ones under the same task ID. Incident response then cannot answer \"which skill caused this write\" because provenance was attached to the step, not the frame. The remediation is dispatch-layer capability scoping with frame-bou..."
  },
  "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": "1976a942160895b00d70c6bc690f233fb8ef4c13f92fc270fe77bce7ce738c0c",
    "verified_classes": [
      "CapabilityScopeViolation"
    ],
    "verified_functions": [
      "validate_skill_load",
      "dispatch_tool"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityScopeViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
