{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-attests-a-signed-skill-sbom-whose-prompt-bundle-hash-was-computed-over-a-normalized-form-the-runtime-never-reproduces",
  "title": "What happens when an instance attests a signed skill SBOM whose prompt bundle hash was computed over a normalized form the runtime never reproduces",
  "date_of_record": "2026 November 24",
  "scope": "Applies to runtimes that gate skill loading on cryptographic attestation of a signed SBOM covering both tool manifests and prompt bundles. Does not apply to unsigned local-development skill loading or to runtimes that hash raw bytes only.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-attests-a-signed-skill-sbom-whose-prompt-bundle-hash-was-computed-over-a-normalized-form-the-runtime-never-reproduces.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-attests-a-signed-skill-sbom-whose-prompt-bundle-hash-was-computed-over-a-normalized-form-the-runtime-never-reproduces.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-attests-a-signed-skill-sbom-whose-prompt-bundle-hash-was-computed-over-a-normalized-form-the-runtime-never-reproduces.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1584,
    "python_slice_tokens": 202,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a signature verification failure. Signatures verify cleanly. The failure is a **canonicalization divergence** between the producer's SBOM generator and the consumer's attestation routine: the producer hashed a *normalized* prompt bundle (whitespace-collapsed, key-sorted JSON frontmatter, CRLF→LF), while the runtime hashes the *raw artifact...",
    "what_was_observed": "A skill `ticket-triage@2.3.1` ships a bundle: `manifest.json` (tool declarations), `prompts/system.md`, `prompts/classify.md`, and `sbom.jsonld` signed by the publisher's key. The runtime's loader proceeds: 1. Fetch bundle over the skill registry transport (returns bytes with the publisher's original line endings). 2. Verify `sbom.jsonld` signature over the SBOM document — passes. 3. Extract `subject.digest` for the ...",
    "condition_of_validity": "The attestation gate is only sound when all four of the following hold simultaneously: - The SBOM declares the **canonicalization algorithm** (e.g., `urn:corpusfetch:canon:v1:utf8-nfc-lf-trailws`) as a first-class field on the digest, not as tribal knowledge. - The runtime implements that exact canonicalization and **refuses to hash** when it encounters an u...",
    "decision_boundary": "The runtime must choose between two behaviors at the moment of digest mismatch, and the choice is not symmetric: - **Fail-closed (required for prompt bundles):** any mismatch on a prompt digest aborts skill load and surfaces `ProvenanceMismatch` to the orchestrator. The agent instance continues without the skill; it does not continue with unverified instruct...",
    "operational_effect": "After adopting canonicalization-declared digests and instruction-channel fail-closed policy, the observed effects were: 1. **Mismatch rate collapsed to zero for benign causes.** Declaring `canon:v1` and having both producer and consumer implement it eliminated the newline/whitespace class of false mismatches entirely — the mirror's re-write normalized back 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": "30d03c0fa9340e736c7c2bdad85d754bfa42fe316da3dc44c9aa1c389a011f9d",
    "verified_classes": [
      "ProvenanceMismatch",
      "UnknownCanonicalization"
    ],
    "verified_functions": [
      "attest_prompt_bundle"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceMismatch",
      "UnknownCanonicalization"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
