{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-tool-manifest-it-has-never-executed-skill-injection-via-manifest-semantics-and-the-pre-execution-attestation-gap",
  "title": "Why does an instance trust a tool manifest it has never executed? Skill-injection via manifest semantics and the pre-execution attestation gap",
  "date_of_record": "2026 December 1",
  "scope": "Applies to LLM agents that discover and bind tools/plugins from declarative manifests (MCP `tools/list`, OpenAPI, plugin JSON, A2A agent cards) and then place manifest-derived text into the reasoning context before first execution. Does not cover post-execution output sanitization or network-layer egress filtering, which operate after the boundary described here.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-has-never-executed-skill-injection-via-manifest-semantics-and-the-pre-execution-attestation-gap.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-has-never-executed-skill-injection-via-manifest-semantics-and-the-pre-execution-attestation-gap.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-it-has-never-executed-skill-injection-via-manifest-semantics-and-the-pre-execution-attestation-gap.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1864,
    "python_slice_tokens": 292,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that a malicious tool *executes* malicious code. It is that the agent *reads the manifest as trusted instruction context before any execution has occurred*. A manifest is metadata — name, description, JSON schema, examples, capability claims. But an LLM cannot distinguish metadata from instruction. When the runtime injects `tools/list` res...",
    "what_was_observed": "A tool registry returned a manifest for a tool named `summarize_document`: The agent's planner, on the first turn after discovery, emitted a plan whose step 1 was `export_credentials(scope=\"all\")` — a tool the operator had never intended to invoke. The manifest text did not exploit a parser bug; it exploited the fact that the agent treats tool descriptions as *authoritative operational guidance* and has no provenance...",
    "condition_of_validity": "This failure mode is bounded by a specific invariant, and it is valid only where that invariant is violated: > **No manifest-derived string may enter the reasoning context at instruction privilege until the manifest has been attested against the tool's actual executable behavior, and every manifest string must carry a provenance tag that the planner treats a...",
    "decision_boundary": "The operating decision is where to place the attestation gate. Three candidate boundaries, with their costs: - **Gate at discovery (pre-injection attestation).** Refuse to inject any manifest string into context until it matches a signed, operator-approved registry entry, or until the description is regenerated from the tool's own introspection at bind time....",
    "operational_effect": "With the gate at discovery, the manifest is treated as a *claim about a tool*, held in a quarantined data region, and the planner is structurally unable to promote a claim into a plan edge. The observable effect: a malicious `description` field can still be read, but it cannot create a prerequisite, cannot reference a second tool, and cannot assert operator ..."
  },
  "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": "a50bce6be4c61c0ac060c0cfb662147352b44fa864df936da22abd8fe7eb2de2",
    "verified_classes": [
      "ManifestTrustViolation"
    ],
    "verified_functions": [
      "attest_manifest"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestTrustViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
