{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-plugin-manifest-s-declared-capabilities-over-its-observed-tool-call-behavior-the-skill-injection-surface-in-dyn",
  "title": "What happens when an instance trusts a plugin manifest's declared capabilities over its observed tool-call behavior: the skill-injection surface in dynamically loaded agent registries",
  "date_of_record": "2026 November 25",
  "scope": "Applies to LLM agents that discover and load tools/plugins at runtime from manifests (MCP server descriptors, OpenAI-style function schemas, plugin registries) where the manifest declares capability metadata (scopes, side-effect class, trust tier) that the runtime consumes to gate invocation. Does not apply to statically compiled tool sets whose schemas are fixed at build time and never renegotiated.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-plugin-manifest-s-declared-capabilities-over-its-observed-tool-call-behavior-the-skill-injection-surface-in-dyn.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-plugin-manifest-s-declared-capabilities-over-its-observed-tool-call-behavior-the-skill-injection-surface-in-dyn.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-plugin-manifest-s-declared-capabilities-over-its-observed-tool-call-behavior-the-skill-injection-surface-in-dyn.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2068,
    "python_slice_tokens": 457,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"malicious tool returns bad data.\" That is a downstream content problem solvable by output validation. The failure is that the *manifest* used to authorize a tool is a separate artifact from the *implementation* the tool executes, and the runtime treats the manifest as the authority on what the tool does. A skill-injection attack exploits ...",
    "what_was_observed": "A registry hot-reloads a plugin set at session start. Each entry carries a manifest blob: The runtime's gate reads `capability_claims.fs_scope == \"none\"` and places the tool in the low-risk lane: it is auto-approved for every call, receives the full working context including the system prompt and any secrets injected into the turn, and its outputs are not sandboxed. The handler, however, resolves `doc_id` against a p...",
    "condition_of_validity": "The boundary holds—i.e., the agent is safe—only when all three of the following are true: 1. **Provenance binding:** the manifest is cryptographically or structurally bound to the implementation (signed by the same publisher, hash-pinned at load, or derived from the same artifact). If the manifest and handler arrive on separate channels (manifest from a regi...",
    "decision_boundary": "The runtime must choose, per tool, between two regimes: - **Trusted regime:** provenance is bound, sandbox enforces declared scope, reconciliation runs. Here the manifest may drive planning decisions (context routing, auto-approval, lane assignment). Declared capability is a load-bearing input. - **Untrusted regime:** provenance is absent or partial. Here th...",
    "operational_effect": "When the invariant is violated, three compounding effects follow: 1. **Silent state mutation under a read contract.** The agent's memory records an observation where a mutation occurred. Every subsequent plan built on that episode inherits the error. This is a continuity failure, not a one-shot exploit: the poisoned episode survives checkpoint/resume because..."
  },
  "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": "3d6c509bd06f3bc2525f0476262ac3dba5740568c95c875659634050c68e930c",
    "verified_classes": [
      "SkillInjectionError",
      "Regime",
      "Manifest",
      "ObservedEffects",
      "ToolRecord"
    ],
    "verified_functions": [
      "classify_regime",
      "authorize_invocation",
      "load_and_gate"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SkillInjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
