-
Notifications
You must be signed in to change notification settings - Fork 0
Deterministic Builds
Simon B.Stirling edited this page Mar 2, 2026
·
1 revision
I use this document as the frozen deterministic build contract for the current bootstrap toolchain.
Contract version: detbuild.v1
For a fixed input module and fixed CLI flags, I freeze byte-for-byte determinism for these emitted artifacts:
-
.l0imgimage outputs frombuild - debug-map side artifacts from
build --debug-map - trace-schema side artifacts from
build --trace-schema - ELF object outputs from
build-elf
I also freeze deterministic decode behavior for stable artifacts:
-
imgmetaoutput -
mapcatoutput -
schemacatoutput
I enforce this contract in:
tests/deterministic_builds.sh
That harness runs repeated builds and requires identical bytes across paired outputs for a fixed fixture corpus.
-
tests/valid_min.l0(baseline image determinism) -
tests/valid_trace_noop.l0(image + debug-map + trace-schema determinism) -
tests/valid_spill_stress_lowered.l0(generalized lowering image determinism) -
tests/valid_sysv_abi_sum6_lowered.l0(ELF object determinism)
- Cross-machine bit-for-bit guarantees outside the pinned Linux x86-64 bootstrap environment.
- Performance-based determinism constraints.
- How-To-Write-L0
- Language-Reference
- Instruction-Set
- CLI-and-Compiler-Spec
- Implementable-Spec
- Command-Reference
- Examples-Catalog
- LLM-Quick-Reference
- Opcode-Examples
- LLM-Doc-Index