(sigil build secure-receipt)

Canonical serialization and structural checks for secure build evidence.

Exports

Serialize evidence with sorted object keys and explicit JSON types. Objects are dictionaries, arrays are arrays or vectors, and null is the symbol null. Lists, inexact numbers and implicit text coercion refuse. Depth, node and 64 MiB output limits refuse cyclic or oversized evidence.

Hash the exact canonical UTF-8 representation, without a trailing newline.

Decode at most 1 MiB of captured canonical JSON, without path lookup. Duplicate keys, alternate encodings and excessive nesting are refused.

Bind one captured receipt, ELF and exact adjacent artifact byte set. INPUTS is a proper alist of basename/bytevector pairs, never paths. Every input is copied before hashing and parsing; no file is reopened. The result is BYTE-BINDING-ONLY. It proves digest/encoding consistency, not ELF policy, provenance, hardening, test completeness or installation authority. Final qualification must independently establish those facts.

Check schema-1 field types and policy literals, without granting trust. This does not qualify sources, toolchains, ELF bytes, artifact contents or execution results. Only the producer's independent gates can do that.

Check evidence rows against the exact tested closure, preserving modes. Not-run and failed rows remain visible; this is not an installation gate.

(No description)