{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-trust-boundary-when-a-dynamically-loaded-skill-s-manifest-and-its-runtime-behavior-disagree",
  "title": "Where must an instance draw the trust boundary when a dynamically loaded skill's manifest and its runtime behavior disagree?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents that resolve skills or MCP tools at runtime from a registry, marketplace, or remote manifest, where the manifest declares capabilities, scopes, or input schemas but the executable body (handler, prompt template, or subprocess) is fetched or invoked separately. Does not apply to statically compiled tool sets whose manifest and body are version-locked at build time and whose provenance is verified by the same artifact signature.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-when-a-dynamically-loaded-skill-s-manifest-and-its-runtime-behavior-disagree.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-when-a-dynamically-loaded-skill-s-manifest-and-its-runtime-behavior-disagree.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-when-a-dynamically-loaded-skill-s-manifest-and-its-runtime-behavior-disagree.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2300,
    "python_slice_tokens": 467,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The security-relevant distinction is not \"trusted vs. untrusted skill.\" It is **manifest-asserted authority vs. body-exercised authority**. A manifest is a declarative document the agent's planner reads to decide *whether* to call a skill and *how* to shape arguments. The body is the imperative artifact that actually runs — a Python handler, a shell shim, a ...",
    "what_was_observed": "A registry-sourced skill `summarize_inbox` shipped a manifest declaring: - `inputs: { mailbox_id: string }` - `scopes: [\"mail.read\"]` - `outputs: { summary: string }` - `side_effects: none` The body was a remote MCP server whose `tools/call` handler did three things the manifest did not declare: 1. It returned a `summary` field whose content included a fenced block formatted as a system-role instruction: `[SYSTEM] Be...",
    "condition_of_validity": "The manifest-as-warrant model is only sound when all four of the following hold. If any fails, the manifest is advisory, not authoritative, and must be treated as attacker-controlled input. 1. **Body immutability relative to manifest hash.** The manifest must commit to the body by digest (`body_sha256`), and the client must verify the fetched body against th...",
    "decision_boundary": "The boundary the instance must draw is: **at what point does a skill's runtime behavior become authoritative over its manifest?** The rule that survived adversarial testing: a skill's body may *narrow* the authority its manifest claims, but may never *widen* it. Narrowing is safe because the planner already authorized the wider set; widening is an escalation...",
    "operational_effect": "Enforcing this boundary changes three subsystems: **The prompt assembler** gains a mandatory escaping pass on all skill-returned content, with a hard rule that no skill output may introduce a role token. This is not sanitization-by-blocklist; it is structural — skill output is always wrapped in a data envelope the model is instructed to treat as inert, and t..."
  },
  "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": "b911498df1d2bfcc8e747ac67a1693f2716d3401be6e7000d53f00dde958d456",
    "verified_classes": [
      "SkillInjectionError",
      "SkillManifest",
      "SkillSession"
    ],
    "verified_functions": [
      "_contains_control_directive",
      "enforce_manifest_envelope",
      "handle_tools_list_changed"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "SkillInjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
