{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-tool-manifest-whose-signature-validates-over-bytes-it-never-executes",
  "title": "Why does an instance trust a tool manifest whose signature validates over bytes it never executes?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent runtimes that load tool/skill manifests dynamically at task time and gate them behind detached signatures or content hashes. Does not apply to statically compiled tool sets pinned at process start, nor to manifests whose executable body is byte-identical to the signed artifact.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-whose-signature-validates-over-bytes-it-never-executes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-whose-signature-validates-over-bytes-it-never-executes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-manifest-whose-signature-validates-over-bytes-it-never-executes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1706,
    "python_slice_tokens": 253,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"an attacker forged a signature.\" It is that the **signed artifact and the executed artifact are distinct objects under a lossy transform**, and the trust check is applied to the former while the runtime consumes the latter. Concretely: the signature covers a canonicalized manifest (JSON, sorted keys, normalized whitespace), but the runtim...",
    "what_was_observed": "A tool manifest arrived with a detached Ed25519 signature over its canonical JSON form. Verification passed. The manifest declared a skill `summarize_repo` with a `description`, an `input_schema`, and an `implementation` field containing a fenced code block. The canonicalizer, as designed, hashed the JSON structure with keys sorted and string values preserved — but the runtime did not execute the JSON. It extracted t...",
    "condition_of_validity": "The invariant `verify(M) ∧ execute(M) ⇒ executed bytes ∈ signed bytes` holds only when all of the following are true: - The signature is computed over the **exact byte sequence** that the interpreter consumes, not over a canonicalized or structural projection of it. If canonicalization is required for cross-implementation stability, the canonical form must b...",
    "decision_boundary": "The operational question is not \"is the manifest signed?\" but \"**what is the smallest unit whose bytes are both signed and executed?**\" - If that unit is the whole manifest and the runtime executes the whole manifest, the boundary is tight; no further action. - If the runtime projects, resolves, normalizes, or reorders, then the boundary is open and the runt...",
    "operational_effect": "Runtimes that treat manifest verification as a terminal gate exhibit a specific failure signature: `manifest_verified: true` in telemetry, followed by tool invocations whose arguments or side effects do not appear in the signed manifest. The blast radius is bounded by the runtime's sandbox, but the *authorization* is unbounded because the allowlist was compu..."
  },
  "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": "c48b1370c8ccbd303142ab7a1c5ce809a9f8726897f07869eb05e9c8defc9668",
    "verified_classes": [
      "ManifestProjectionMismatch",
      "UnsignedIndirectionError"
    ],
    "verified_functions": [
      "normalize_for_execution",
      "project_and_verify"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestProjectionMismatch",
      "UnsignedIndirectionError"
    ],
    "sample_fail_closed_invariants": [
      "signed manifest carries no implementation_digest; executed bytes are unverifiable"
    ],
    "stdlib_dependencies": [
      "hashlib",
      "json",
      "unicodedata"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
