Repository navigation
Build Options
The build-time options of ringzero: Makefile variables (MODEL, QUANT, EMBED, GUEST_MEM, MANUAL_VECTORS, CONF_ASK, ROUNDS, DISK_MB and the run targets' limits) and the RINGZERO_* environment variables the kernel build reads, with their accepted values and defaults.
MODEL SHALL accept 2b, 4b or a path to an .asmbin file, default 2b; for 2b and 4b, QUANT SHALL accept q8 (every matrix Q8_0), q4 (MLP Q4_0, the rest Q8_0) or q4all (every projection Q4_0, embed and lm_head Q8_0), default q8, and any other QUANT SHALL stop the build with QUANT must be q8, q4 or q4all.
Source: Makefile MODEL, QUANT, MODEL_FILE
-
WHEN the user runs
make iso QUANT=q2 - THEN make stops with the QUANT error
-
WHEN the user runs
make iso MODEL=models/x.asmbin -
THEN that file is the boot model and the edition is
ringzero (custom model)
The build SHALL pass the edition name to the kernel in RINGZERO_EDITION: ringzero Qwen35@<size>-Qwen3@0.6b (QweQwe) for q8, with .q4 or .q4all after the size for the Q4 builds; a kernel built without it SHALL use ringzero Qwen35@2b-Qwen3@0.6b (QweQwe).
Source: Makefile EDITION, target kernel; kernel/src/main.rs EDITION; kernel/build.rs main
-
WHEN the user runs
make iso MODEL=4b QUANT=q4 -
THEN the boot banner names
ringzero Qwen35@4b.q4-Qwen3@0.6b (QweQwe)
EMBED SHALL name the embedder file, default models/qwen3-embed-0.6b-q8_0-v3.asmbin, copied into the ISO as boot/embed.asmbin.
Source: Makefile EMBED, target iso
-
WHEN the user runs
make isowithout EMBED - THEN the ISO holds the Qwen3-Embedding-0.6B Q8_0 file
GUEST_MEM SHALL default to 6G, and to 8G for every 4b build; run-remote and run-local SHALL refuse to start when the build box has less available memory than MIN_AVAIL_MB (8192 by default, 10240 for 4b, 11264 for 4b q8).
Source: Makefile GUEST_MEM, MIN_AVAIL_MB, target run-remote, target run-local
-
WHEN the box has 6000 MiB available and the user runs
make run-remote -
THEN make prints
refusing: only 6000 MiB available (want > 8192 for a 6G guest)and no guest starts
MANUAL_VECTORS SHALL default to 1, which builds a first ISO without vectors, boots it headless to write build/manvec.bin, and links that file into the kernel through RINGZERO_MANVEC; 0 SHALL build without vectors (the manual is embedded at the first boot).
Source: Makefile target model, target kernel; kernel/build.rs main
-
WHEN the user runs
make iso MANUAL_VECTORS=0 -
THEN no headless pass runs and
/man checkreportsnot built in (MANUAL_VECTORS=0)
CONF_ASK SHALL set, through RINGZERO_CONF_ASK, the percent below which a low-confidence call of a tool that writes asks first: an integer clamped to 0..100, 80 when unset or empty; a value with a character that is not a digit SHALL fail the kernel build. A change of the value SHALL rebuild the kernel.
Source: Makefile target kernel; kernel/src/agent.rs CONF_LO, env_num; kernel/build.rs main
-
WHEN the user runs
make iso - THEN CONF_LO is 0.80
-
WHEN the user runs
make iso CONF_ASK=2500 - THEN CONF_LO is 1.00
-
WHEN the user runs
make iso CONF_ASK=0.8 -
THEN the kernel build fails with
RINGZERO_CONF_ASK / RINGZERO_ROUNDS: an integer (percent 0..100 / rounds 1..20)
make disk SHALL create build/disk.img as a whole-volume FAT32 of DISK_MB MiB (512 by default) labelled RINGZERO, and SHALL never overwrite an existing image.
Source: Makefile DISK_MB, LOCAL_DISK, target iso, target disk
-
WHEN build/disk.img exists and the user runs
make disk -
THEN make prints
build/disk.img exists, not touching it
make wasm-apps SHALL refuse while a guest has the disk open, and otherwise copy the built programs to /bin, CPython's library to /lib/python3.15 and tools/demo to /demo, replacing same-name files and keeping every other file.
Source: Makefile target disk, target wasm-apps
- WHEN a guest has build/disk.img open
-
THEN make prints
refusing: a guest has build/disk.img open
The kernel build SHALL use an FP16 KV cache by default and an FP32 cache when RINGZERO_KV=f32, and the KV choice SHALL be part of the engine hash that keys the boot snapshot cache. Source: kernel/build.rs main
- WHEN the kernel is built with RINGZERO_KV=f32
- THEN nasm runs without -DKV_F16 and the boot snapshot cache is rebuilt
The kernel SHALL read RINGZERO_HEAP_MIB (kernel heap, default 192 MiB), RINGZERO_WASM_MIB (WASI program memory, default 256, clamped to 16..2048) and RINGZERO_UPY_HEAP_MIB (MicroPython heap, default 8, clamped to 1..256) at build time. Source: kernel/src/mem.rs init, HEAP_BYTES; kernel/src/wasm.rs init; kernel/src/upy.rs init; kernel/build.rs upy
- WHEN the kernel is built without RINGZERO_HEAP_MIB
- THEN the heap is 192 MiB
make beta SHALL build ringzero-beta-2b-q8.iso, then ringzero-beta-4b-q4.iso, both with the goal judge JUDGE, then a fresh data disk with the apps in build/beta, and write SHA256SUMS; SOURCE_DATE_EPOCH SHALL default to the last commit time so two runs on the same tree give the same bytes.
Source: Makefile target beta
-
WHEN
make betafinishes - THEN build/beta/SHA256SUMS lists the two ISOs and disk.img
make beta SHALL take the 2B edition's agent from BETA_2B (default models/systemist-2b-q8_0-v3.asmbin) and the 4B edition's from BETA_4B (default models/systemist-4b-q4_0mlp-v4.asmbin), and SHALL refuse to start, building nothing, when BETA_2B, BETA_4B or JUDGE does not exist.
Source: Makefile target beta, BETA_2B, BETA_4B
-
WHEN the user runs
make betawithout models/systemist-2b-q8_0-v3.asmbin -
THEN it prints
beta: missing models/systemist-2b-q8_0-v3.asmbinand stops before building
make run-remote SHALL protect its VNC framebuffer with the password VNC_PASS, default ringzero.
Source: Makefile VNC_PASS, target run-remote
-
WHEN the user runs
make run-remotewithout VNC_PASS and connects a VNC client to port 5901 -
THEN the client asks for a password and
ringzeroopens the framebuffer
kernel/build.rs SHALL declare rerun-if-env-changed for every RINGZERO_* variable the kernel reads at build time (KV, EDITION, MANVEC, CONF_ASK, ROUNDS, HEAP_MIB, WASM_MIB, UPY_HEAP_MIB), so changing one of them alone rebuilds the kernel. Source: kernel/build.rs main, upy
- WHEN only RINGZERO_HEAP_MIB changes between two builds
- THEN cargo reruns the build script and compiles the kernel again
ROUNDS SHALL set, through RINGZERO_ROUNDS, the default tool rounds per question: an integer clamped to 1..20, 10 when unset or empty; a value with a character that is not a digit SHALL fail the kernel build. A change of the value SHALL rebuild the kernel. !set rounds changes it at run time.
Source: Makefile target kernel; kernel/src/agent.rs ROUNDS, env_num; kernel/build.rs main
-
WHEN the user runs
make iso - THEN the agent allows 10 tool rounds per question
-
WHEN the user runs
make iso ROUNDS=0 - THEN the agent allows 1 tool round per question
LAYOUT_STOP SHALL set, through RINGZERO_LAYOUT_STOP, a crash test build: the migration of an old disk halts the machine after its Nth step (a verified copy, the commit marker, a removal), logging layout: crash test build: halting after migration step N; unset or empty means never. A change of the value SHALL rebuild the kernel.
Source: Makefile target kernel; kernel/src/layout.rs STOP, halt_at; kernel/build.rs main
-
WHEN an ISO built with
make iso LAYOUT_STOP=5boots a 0.1 disk with four stores - THEN it copies the four stores, writes the commit marker and halts before removing any source
JUDGE SHALL name the goal judge file, default models/decider-0.8b-judge-q8_0-v3.asmbin (the T103 tune of decider-0.8b exported with tools/export_weights.py, not in the repository); when the file exists make iso SHALL copy it into the ISO as boot/judge.asmbin and add it as a third module (module_string judge) to the ISO's limine.conf; when it does not exist the ISO has no judge.
Source: Makefile JUDGE, target iso; kernel/src/main.rs
-
WHEN the user runs
make isowithout models/decider-0.8b-judge-q8_0-v3.asmbin -
THEN the ISO boots with the agent model and the embedder only, and
!set judge onsays no judge model is loaded
FAULTTEST=1 SHALL build a test kernel (RINGZERO_FAULTTEST) whose shell takes !fault KIND with KIND one of pf, de, ud, gp, panic, stack, runstack or locks, each triggering that fault; without it the command SHALL not exist (unknown command).
Source: Makefile FAULTTEST, target kernel; kernel/src/fault.rs TEST; kernel/src/shell.rs
-
WHEN the user types
!fault pfon an ISO built without FAULTTEST - THEN the shell answers that the command is unknown
Source of this page: openspec/specs/build-options/spec.md
Generated from openspec/specs at 0221909 by tools/wiki_gen.py. Do not edit here: change the spec and regenerate.