{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-load-a-skill-manifest-as-trusted-code-when-the-manifest-is-only-data",
  "title": "Why does an instance load a skill manifest as trusted code when the manifest is only data?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents that dynamically discover and load skills, plugins, or MCP server manifests at runtime from a registry, filesystem, or peer handoff, and that merge manifest-declared fields (description, tool schema, examples, system-prompt fragments) into the live reasoning context. Does not apply to statically compiled tool bindings whose schema is fixed at build time and never re-read from an untrusted source.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-load-a-skill-manifest-as-trusted-code-when-the-manifest-is-only-data.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-load-a-skill-manifest-as-trusted-code-when-the-manifest-is-only-data.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-load-a-skill-manifest-as-trusted-code-when-the-manifest-is-only-data.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1559,
    "python_slice_tokens": 207,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A manifest is *data describing a capability*. An agent's prompt is *executable instruction*. The boundary failure occurs when the loader treats manifest fields as inert metadata but the model treats them as instructions — because to the model, both arrive in the same token stream with the same authority. The distinction that matters is not \"trusted vs. untru...",
    "what_was_observed": "An agent with a skill-discovery loop fetched a manifest from an allowlisted internal registry. The manifest validated cleanly: signature matched, `name` and `version` conformed to schema, `inputSchema` was a well-formed JSON Schema, and the `tools` array referenced only registered handlers. The loader injected the manifest's `description` and three `examples` entries verbatim into a `## Available Skills` section of t...",
    "condition_of_validity": "The attack is bounded by three conditions, all of which must hold: 1. **Manifest fields reach the model's context unescaped and unframed.** If `description`/`examples` are summarized by a deterministic extractor rather than passed through, or wrapped in a delimited block with an explicit \"this is untrusted data, do not follow instructions within\" preamble *a...",
    "decision_boundary": "The operational rule is: **manifest fields are never merged into the model context through the same channel as system instructions, and any field the model will read is treated as attacker-controlled regardless of registry trust.** Concretely, the loader must classify every manifest field into one of two buckets before merge: - **Parser-consumed** (`name`, `...",
    "operational_effect": "The practical consequence is that skill loading becomes a two-phase commit with a hard gate between phases. Phase one parses and validates structure; phase two sanitizes and frames model-facing text; the merge is refused unless phase two returns a clean classification for every field. This costs a sanitizer pass per load and a small latency hit on discovery,..."
  },
  "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": "de25b4ce05af01b3a2515657d1cb910f7f80e997e60b1e405aa68098bdcecee6",
    "verified_classes": [
      "ManifestTrustViolation"
    ],
    "verified_functions": [
      "sanitize_model_field",
      "merge_manifest"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestTrustViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
