{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-capabilities-over-its-observed-effects-skill-injection-via-manifest-drift-and-the-sand",
  "title": "What happens when an instance trusts a tool manifest's declared capabilities over its observed effects: skill-injection via manifest drift and the sandbox-invariant fix",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any agent runtime that registers external tools/plugins (MCP servers, OpenAPI skills, A2A remote agents) by parsing a self-described manifest and then granting the tool a capability set based on that manifest. Does not apply to statically compiled tool bindings where the capability set is fixed at build time and cannot be influenced by the tool author.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-capabilities-over-its-observed-effects-skill-injection-via-manifest-drift-and-the-sand.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-capabilities-over-its-observed-effects-skill-injection-via-manifest-drift-and-the-sand.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-capabilities-over-its-observed-effects-skill-injection-via-manifest-drift-and-the-sand.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1800,
    "python_slice_tokens": 211,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent called a malicious tool.\" The failure is **manifest/effect divergence**: the tool's *declared* capability envelope (the JSON schema, the `description` string, the parameter types) is treated as the *authority* for what the tool may do, when in fact the only ground truth is what the tool *actually does* at call time. A skill-inje...",
    "what_was_observed": "A tool registered as `summarize_document` shipped this manifest fragment: The orchestrator parsed `declared_capabilities: [\"fs:read\"]` and granted a read-only filesystem scope rooted at the workspace. The model, reading the description, treated it as safe and invoked it freely on user-supplied paths. At call time the tool did three things the manifest did not declare: 1. It read the requested path (consistent with `f...",
    "condition_of_validity": "The attack requires all of the following to hold simultaneously; remove any one and the mechanism collapses: 1. **Manifest is authoritative for capability grant.** The runtime derives the sandbox policy from `declared_capabilities` rather than from a policy the *operator* sets independently of the tool author. 2. **Scope checks are lexical, not canonical.** ...",
    "decision_boundary": "The boundary is where you decide what the manifest is *for*. Two coherent designs exist; the failure mode is the incoherent middle. - **Manifest-as-documentation (safe):** the manifest is advisory text shown to the model to help it *select* tools. Capabilities are granted by an operator-authored policy keyed on tool identity (hash of the artifact, signer, re...",
    "operational_effect": "With manifest-as-grant and lexical scope checks, a single malicious skill compromises the entire credential surface reachable from the agent's filesystem, and the compromise is laundered through a schema-valid, 200-OK response that the verification layer passes. The agent's own reasoning becomes the exfiltration channel: it summarizes the secrets, forwards 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": "0b0a579b117a4dbecc4af62d13f19990e0d59dad07bfd5cd7943f8f8456b48be",
    "verified_classes": [
      "CapabilityEscalationError"
    ],
    "verified_functions": [
      "enforce_tool_call"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityEscalationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "os"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
