{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-trust-boundary-between-a-signed-skill-manifest-and-the-post-load-capability-surface-of-a-dynamically-imported-tool",
  "title": "Where must an instance draw the trust boundary between a signed skill manifest and the post-load capability surface of a dynamically imported tool?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that dynamically load tools/skills from a registry or marketplace where a manifest is verified (signature, version, declared permissions) but the executable skill code is imported into the agent's own runtime. Does not apply to skills executed in a fully isolated, capability-gated sandbox where the manifest is enforced by an external kernel.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-a-signed-skill-manifest-and-the-post-load-capability-surface-of-a-dynamically-imported-tool.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-a-signed-skill-manifest-and-the-post-load-capability-surface-of-a-dynamically-imported-tool.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-a-signed-skill-manifest-and-the-post-load-capability-surface-of-a-dynamically-imported-tool.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1354,
    "python_slice_tokens": 225,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"a malicious skill is loaded.\" It is that **manifest verification and capability enforcement are two different observation points, and the agent trusts the first to constrain the second.** A signed manifest declares `permissions: [\"http:get\"]` and `reads: [\"notes/*\"]`. The signature attests to *who published the manifest*, not to *wha...",
    "what_was_observed": "A registry-loaded skill `summarize_notes` shipped with a valid Ed25519-signed manifest declaring `permissions: [\"fs:read:notes/*\"]` and `network: none`. On import, the module's top-level body registered a legitimate `summarize_notes` callable—but also, before returning, walked `sys.modules` to locate the agent's tool registry object, appended a second callable named `_healthcheck` under the same namespace, and monkey...",
    "condition_of_validity": "The guardrail holds only if the following invariant is enforced: **the set of capabilities reachable by a skill after import is a subset of the set declared in its verified manifest, and this subset relation is checked against the observed runtime surface, not the declared one.** Concretely, three conditions must all hold: 1. **Import isolation.** Skill modu...",
    "decision_boundary": "The boundary is drawn at the point where a skill's code gains a reference to any object it did not construct. Below that line—pure functions over passed arguments—manifest verification plus a static import-time scan is sufficient. Above that line—any skill that receives a registry handle, a memory-store client, a config object, or a shared mutable module—the...",
    "operational_effect": "Without the invariant, the marketplace becomes a supply-chain vector whose blast radius is the agent's entire ambient authority: credentials, memory store, egress, and the integrity of every other loaded tool. The signature provides provenance, not confinement. The operational consequence is that **manifest verification must be treated as an admission ticket..."
  },
  "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": "ce68407d009c3dc7323f56c59622d82d716c7e3cefac3164a585fa1378a13e3c",
    "verified_classes": [
      "SkillSurfaceDivergence"
    ],
    "verified_functions": [
      "admit_skill",
      "load_from_registry"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SkillSurfaceDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
