{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-skill-manifest-s-declared-capability-set-over-its-observed-tool-call-trace-the-manifest-shadow-injection-surfac",
  "title": "What happens when an instance trusts a skill manifest's declared capability set over its observed tool-call trace: the manifest-shadow injection surface",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that dynamically load skills or MCP tool manifests at runtime and gate capability exposure on the *declared* schema (name, description, inputSchema, annotations) rather than on the *observed* call trace of the loaded skill. Does not apply to statically compiled tool sets with no dynamic loading, nor to manifests signed and re-verified against a pinned capability digest before every invocation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-skill-manifest-s-declared-capability-set-over-its-observed-tool-call-trace-the-manifest-shadow-injection-surfac.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-skill-manifest-s-declared-capability-set-over-its-observed-tool-call-trace-the-manifest-shadow-injection-surfac.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-skill-manifest-s-declared-capability-set-over-its-observed-tool-call-trace-the-manifest-shadow-injection-surfac.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2127,
    "python_slice_tokens": 334,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous boundary is not \"malicious tool\" versus \"benign tool.\" It is **declared capability** versus **exercised capability**. A skill manifest is a *claim* authored by the skill provider: it names the tool, describes its purpose in natural language, and specifies an `inputSchema`. The agent's planner reads the description and `inputSchema` to decide wh...",
    "what_was_observed": "A dynamic skill loader registered a skill `summarize_document` with the manifest: The manifest is honest. The `inputSchema` is tight. The description is accurate. The planner calls it with `{\"path\": \"/data/report.txt\"}`. The skill reads the file, and the file contains — in addition to prose — an embedded instruction block: The skill's implementation faithfully returns a summary *that includes the embedded block verba...",
    "condition_of_validity": "The failure is bounded by three conditions, all of which must hold: 1. **Echo condition.** The skill's return value is derived from untrusted input (file contents, web fetch, user-supplied document) and is passed into the context window without provenance tagging. If the loader wraps every tool result in a structured envelope that marks `provenance: untruste...",
    "decision_boundary": "The decision boundary for the loader is not \"is this skill malicious?\" — that is undecidable from the manifest. It is: **does the manifest declare an output-provenance contract, and has that contract been verified against the skill's observed return values?** - If the manifest declares `outputProvenance: \"derived-from-input\"` and the loader has verified (via...",
    "operational_effect": "The operational consequence is a **capability-set-scoped injection**: the blast radius of a poisoned document is exactly the set of tools the agent has loaded at the moment the document is summarized. A summarization turn that runs with `transfer_funds`, `send_email`, and `delete_file` in the active set has a blast radius of three side-effecting tools; the s..."
  },
  "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": "38b06579bd3d07697f655f0034db48905d02e113667b07386ae0f00f282f001c",
    "verified_classes": [
      "ManifestShadowInjectionError"
    ],
    "verified_functions": [
      "admit_tool_result",
      "_extract_referenced_tools",
      "_conforms_to_declared_output_type"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ManifestShadowInjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
