roadmap BUILT

508. script/lint does not build the UEFI binary, so lint-clean code can fail script/test

(Promoted from the proposal lint-does-not-build-the-uefi-binary, filed 2026-09-19. Found by milestone 243 (a machine with no serial port has no way to say anything, and no gate can read it)'s lane. That lane re-applied its loader banner and watched script/lint pass. script/test's x86_64 leg then failed to compile the same code. The number is provisional until the merge queue lands it.)

The stage

script/lint now compiles uefi_loader's binary, which required-features = ["uefi"] kept out of every pass and every ordinary build. Four configurations, each printing its own ==> line, in the clippy half beside the other target passes:

target configuration what it becomes
x86_64-unknown-uefi --features uefi BOOTX64.EFI (PE/COFF)
x86_64-unknown-uefi --features uefi,screen_hold uefi-boot's screen-gate build
aarch64-unknown-uefi --features uefi BOOTAA64.EFI (PE/COFF)
riscv64imac-unknown-none-elf --features uefi BOOTRISCV64.EFI, a static PIE the stick converts with crates/portable_executable

Each pass needs a kernel to embed. The stage builds the three kernels the stick builds first, by the same invocations, so the artifacts are shared. Each pass gets its own architecture's kernel by absolute path. The archive variable stays unset. That is the loader's tour build, and it keeps the measured-boot seal out of a lint gate. riscv64 has no UEFI target in rustc at all. Its pass compiles the target the stick converts from, and takes none of the stick's link arguments.

The first run found three warnings the host passes cannot see: a nine-argument hand_over in each of the three arch arms, an explicit-counter loop in console.rs, and a broken doc-list indentation in placement.rs. That is the milestone's thesis confirmed on arrival. Code only script/test compiled was code no gate held.

The measurement

Both timed 2026-10-16 (UTC) on patagonia with other lanes working. The load average is recorded with each number rather than averaged away.

The cost is the three kernel builds. Warm, those are freshness checks. A lane that touched kernel code pays the incremental rebuild instead. At seconds, the plain always-build shape stands, beside the three kernel passes the script already runs. The proposal's cheaper shapes, a path-triggered stage and a move to script/ci-build, are not taken: nothing here needed them.

What lint compiles, what test compiles

Non-host binaries only. The host workspace (the crates, xtask, the RedoxFS tools, fuzz) is clippy'd, rustdoc'd and tested by both sides.

binary script/lint script/test
kernel, aarch64-unknown-none-softfloat (bin, features, test target) yes yes (suite, screen boot)
kernel, riscv64imac-unknown-none-elf (bin per feature) yes yes (suite, screen boot)
kernel, x86_64-unknown-none (bin per feature) yes yes (suite)
user programs, aarch64 and x86_64 (components, fixtures, user_mode_runtime) yes yes (the archives)
user programs, riscv64 no, and the pass is red today (see BUGS) yes (the riscv64 archive)
uefi_loader bin, the four configurations above yes, this milestone x86_64 only, through uefi-boot/uefi-test; aarch64 and riscv64 only in cargo xtask stick
redoxfs_server and mkfs for x86_64-unknown-none no (host lint only) yes (the x86_64 archive)
the std farm (targets/*-unknown-nife.json) no yes (std-exerciser)
system_tests aarch64 only all three, plus the UEFI test images

Exit

script/lint fails when any of the four loader configurations stops compiling clean for its target, before a lane needs an emulator boot to find out. Measured cost: 7 s warm, 12 s cold.

Reuse: the tree's own clippy-stage shape, the written-out feature loops above the new stanza; xtask's own kernel-build invocations, unchanged; and the loader build script's existing contract. No new dependency.

BUGS

Follow-on

Index row

script/lint compiles the three UEFI boot files and uefi-boot's screen-hold build with -D warnings, so lint-clean code can no longer fail script/test's x86_64 leg on the loader; the stage costs 7 s warm and 12 s cold, measured.