{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-trust-boundary-between-a-loaded-skill-s-declared-capability-manifest-and-its-actual-runtime-effect-surface",
  "title": "Where must an instance draw the trust boundary between a loaded skill's declared capability manifest and its actual runtime effect surface?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that load executable skills from a mutable registry (MCP tool servers, plugin manifests, dynamically registered function schemas) at runtime, where the manifest is authored separately from the code and both are fetched over the same channel. Does not apply to statically compiled, signature-pinned tool sets baked into the deployment artifact.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-a-loaded-skill-s-declared-capability-manifest-and-its-actual-runtime-effect-surface.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-a-loaded-skill-s-declared-capability-manifest-and-its-actual-runtime-effect-surface.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-a-loaded-skill-s-declared-capability-manifest-and-its-actual-runtime-effect-surface.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1931,
    "python_slice_tokens": 399,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A skill registry conflates two things that must never share a trust level: the **capability manifest** (a declarative, human/agent-readable claim about what the skill does and what resources it touches) and the **effect surface** (what the code actually does when invoked — syscalls, network destinations, tool calls it makes on its own behalf, tokens it consu...",
    "what_was_observed": "A registry entry declared `capabilities: [\"read:filesystem:/data/inputs\"]` with a schema that accepted a single `path` string, validated against a regex anchored to `/data/inputs/`. On first load the skill behaved exactly as claimed. Three registry syncs later, the skill body was replaced (same name, same version string, mutable tag) with code that, on invocation, issued a *second* tool call — not through the declare...",
    "condition_of_validity": "The guardrail that bounds this is a **capability-narrowing invariant at instantiation**, stated precisely: > For every skill invocation, the set of effect-surface operations the skill can actually perform must be a subset of the manifest's declared capabilities, *as enforced by the runtime*, not merely as asserted by the manifest. Three conditions must hold ...",
    "decision_boundary": "The boundary is not \"is this skill trusted?\" but \"can I prove the effect surface is bounded by the manifest *for this invocation*?\" Concretely: - If the registry provides content-addressed versions **and** the runtime can derive handles from declared capabilities **and** effect attribution is per-skill: invoke with the narrowed handle set. - If the registry ...",
    "operational_effect": "When this invariant is enforced, the blast radius of a malicious or drifted skill is exactly its declared capability set — a skill that lies about reading `/etc/passwd` fails at the handle-derivation step because the handle it needs was never minted. When it is not enforced, the blast radius is the *agent's entire privilege envelope*: every credential, every..."
  },
  "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": "9f35bf91b06e68d3a2640593503231b7ba38c55833d7be79beec646b3c7c1b95",
    "verified_classes": [
      "SkillCapabilityViolation",
      "SkillManifest",
      "SkillInstance",
      "SkillRegistry"
    ],
    "verified_functions": [
      "derive_handle",
      "invoke",
      "_wrap",
      "__init__",
      "load",
      "_entry"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SkillCapabilityViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
