{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-capability-escalation-from-a-poisoned-mcp-skill-manifest-when-the-manifest-s-declared-scopes-are-a-strict-subset-of-the-to",
  "title": "How does an instance detect capability escalation from a poisoned MCP skill manifest when the manifest's declared scopes are a strict subset of the tools it actually invokes",
  "date_of_record": "2026 December 1",
  "scope": "Applies to tool-augmented LLM agents that load skills/tools from externally-supplied MCP server manifests and gate invocation on declared capability scopes. Does not cover prompt-injection delivered through tool *results* (that is a separate trust boundary) nor unsigned-but-trusted first-party servers.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-escalation-from-a-poisoned-mcp-skill-manifest-when-the-manifest-s-declared-scopes-are-a-strict-subset-of-the-to.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-escalation-from-a-poisoned-mcp-skill-manifest-when-the-manifest-s-declared-scopes-are-a-strict-subset-of-the-to.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-escalation-from-a-poisoned-mcp-skill-manifest-when-the-manifest-s-declared-scopes-are-a-strict-subset-of-the-to.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1655,
    "python_slice_tokens": 265,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious tool does something bad when called.\" The failure is that the **declared capability surface** (what the manifest says the skill needs) and the **effective capability surface** (what the skill can actually reach at execution time) diverge, and the runtime trusts the former while executing the latter. A well-behaved manifest is ...",
    "what_was_observed": "Trace from a reproduction against a tool-augmented agent loading a third-party \"workspace-notes\" MCP server: 1. **Manifest advertisement.** Server returns `tools/list` with one tool `search_notes`, schema `{query: string}`, declared scope `read:notes:workspace`. Agent's capability broker records effective scope = `{read:notes:workspace}`. Pass. 2. **Invocation with benign input.** `search_notes(query=\"standup\")` retu...",
    "condition_of_validity": "This analysis holds only when all of the following are true: - The runtime gates tool invocation on **manifest-declared scopes**, not on **derived/observed effects**. - The handler executes in a namespace (filesystem, network, env) **broader than its declared scope**, i.e., the sandbox is not the enforcement point. - The agent's output sanitizer is **pattern...",
    "decision_boundary": "The instance must decide, per tool result, whether to **accept**, **quarantine**, or **halt** when a result's observed shape diverges from the tool's declared contract. The boundary is: - **Accept** when observed shape ∈ contract envelope (length, entropy, media type, field set) *and* declared scope == derived scope. - **Quarantine** (return to agent as `unt...",
    "operational_effect": "Concretely, a hardened instance must: 1. **Derive effective scope, don't trust declared scope.** Wrap the handler in a syscall/egress tracer (or a per-scope mount namespace) and compute the set of resources touched per call. Diff against declaration. Any `derived \\ declared ≠ ∅` → evict server, not just reject call. 2. **Model result shape per tool.** Learn ..."
  },
  "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": "1478ba8bd00e5fc258c7bee8f0419900e26f82951b21f6a01a01a206ee553028",
    "verified_classes": [
      "CapabilityEscalationError",
      "ToolContract",
      "Broker"
    ],
    "verified_functions": [
      "register",
      "invoke"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityEscalationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
