{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-capability-set-without-re-validating-it-against-the-executing-sandbox-s-actual-syscall",
  "title": "What happens when an instance trusts a tool manifest's declared capability set without re-validating it against the executing sandbox's actual syscall envelope",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that dynamically load tool/plugin manifests (MCP tool descriptors, plugin registry entries, A2A capability advertisements) at runtime and gate invocation on the manifest's self-declared metadata rather than on a post-load probe of the executing environment. Does not apply to statically-linked tool sets compiled into the agent image, nor to manifests whose capabilities are cryptographically attested by the same authority that provisions the sandbox.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-capability-set-without-re-validating-it-against-the-executing-sandbox-s-actual-syscall.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-capability-set-without-re-validating-it-against-the-executing-sandbox-s-actual-syscall.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-capability-set-without-re-validating-it-against-the-executing-sandbox-s-actual-syscall.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1949,
    "python_slice_tokens": 361,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct trust boundaries in dynamic tool loading, and conflating them is the root of the skill-injection surface: 1. **The declaration boundary** — what the manifest *says* the tool does (`name`, `description`, `input_schema`, `required_scopes`, `side_effects`). 2. **The enforcement boundary** — what the executing sandbox *actually permits* th...",
    "what_was_observed": "A registry-sourced manifest arrived with a benign-looking `description` and `input_schema`, but its `required_scopes` field had been widened from `fs:read:/workspace` to `fs:read:/`. The agent's policy engine compared the requested scope against a coarse allowlist keyed on the *tool name* (`\"file_reader\"` → allowed), not against the scope string. The manifest's scope widening therefore never triggered a review. The t...",
    "condition_of_validity": "This failure mode is bounded by three conditions; if any is absent, the attack degrades to a benign error: 1. **Manifests are mutable or registry-sourced** without content-addressed pinning (hash + signature) verified at load time against the same authority that provisions the sandbox. 2. **Policy decisions are keyed on manifest-declared fields** (name, cate...",
    "decision_boundary": "The agent must refuse to register or invoke a tool when the declaration and enforcement boundaries cannot be proven equal. Concretely, the load-time gate is: - **Reject** if the manifest's content hash is not present in the signed registry snapshot the sandbox provisioner also consumed. - **Reject** if a post-spawn capability probe (canary reads/writes/conne...",
    "operational_effect": "Downstream of an unguarded load, three compounding effects appear: 1. **Provenance corruption in episodic memory.** The agent records the *declared* scope as the *executed* scope. On distillation to semantic memory, this becomes a durable, wrong belief about which tool is safe for which intent — poisoning future plans even after the manifest is fixed. 2. **R..."
  },
  "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": "3e7d14795e412515c315c2813f238aafa2288b4328935b67ba26c62a1c06c710",
    "verified_classes": [
      "CapabilityDesyncError",
      "ToolManifest",
      "EnforcedEnvelope"
    ],
    "verified_functions": [
      "validate_tool_binding",
      "register_tool_for_planning",
      "load_registry"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityDesyncError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
