roadmap BUILT

289. Does milestone 20's RISC-V tour still earn its place?

calef asked what components/src/builder.rs does and why it is still needed "in a world where we boot to swish".

The answer is keep, and the evidence changed the question. The brief leaned toward retirement on a premise that reads well and is false: that booting to swish means builder never runs. It does mean that on aarch64, and it means it under --features shell on riscv64. It does not describe the default riscv64 build, which is the one a board boots, the one script/soak and script/job-mix run, and the only riscv64 build that exists outside a QEMU gate.

What was asked, and what each question answered

Does anything actually depend on the tour build?

Yes, four things, none of them a note.

script/board-image builds the tour. Its default is FEATURES="board", and it takes no flag that would build the shell kernel. The four modes are the plain tour, --soak, --jobmix and --bench, and the last three replace the end of the tour rather than skipping it, which the script says in its own argument check ("all replace the end of the boot tour; pick one"). So every VisionFive 2 (radon) boot this tree can produce runs the tour. The default riscv64 boot ends by handing the machine to progenitor through boot_progenitor, after the tour. The shell feature reaches the same hand-over before the tour and parks. No bench record in notes/visionfive2.md shows one having run.

crates/serial_console reads the builder's output line. Progress::userspace_ran is set by line.contains("init/build") (crates/serial_console/src/progress.rs), which is the line kernel/src/main.rs prints when the builder's child reports 81. It is asserted by four host tests and appears in three captured transcripts, one of them off the board itself: tests/fixtures/captured/vf2-2026-09-01-userspace.log. Its filename is the word userspace, precisely because this program running is what distinguishes that capture from the others taken the same day. script/board-console prints it as its own summary line, and notes/board-console.md states flatly that it is "the only difference between the two successful captures": with an archive on the card, and without.

script/soak --arch riscv64 and script/job-mix --arch riscv64 both boot it with the archive. Each builds initrd_riscv() (which packs builder) and runs the whole tour before the workload starts. The soak is design/fatal-risks/README.md's fifth-entry rehearsal, which is the tie-breaker AGENTS.md names while the customer path is vacant.

The VisionFive 2 bring-up used the tour, with an initrd, and the builder step is what boot stages 4 and 5 bracket. This settles the claim the maintainer told calef and then withdrew as unchecked. It was right. notes/visionfive2.md's fifth stop resolves boots 7 through 9 with five independent identifications. Three are facts about builder specifically. Its exact system call count (14 of the boot's 20 ecalls, itemized). The retype kinds it issues (ASPACE, FRAME, TCB, never ENDPOINT), which is what pinned the endpoint-naming order. And it issues no receive of any kind, which is what made the parked receivers in the dump impossible to attribute to it. The breadcrumbs were added for boot 11 to bracket a failure that was initrd-path-coupled, which is to say coupled to this step.

Booted, rather than read off the source. On 2026-09-14, in this lane, with QEMU 11.0.2: cargo xtask initrd-riscv, the default release kernel, helpers/qemu-bounded.sh 45:

  init/build  : the userspace builder loaded 'least_authority_demo' from a 7648768-byte archive
                and built it as a child; the child sent 81 (expected 81)
  ...
nife: the capability core runs on RISC-V.

and that transcript fed straight back through script/board-console --replay, which answered reached boot tour complete and the userspace progenitor built its child. So the whole chain is live end to end: the kernel loads builder, builder composes a process, and the recognizer this tree already ships reads the result.

Is anything proven only by the trimmed path?

Yes. builder is the only userspace-loads-userspace demonstration that reaches real silicon, and its trimming is the reason it can.

progenitor proves the claim far harder in QEMU: console server, input driver, line discipline, shell, terminal sink, job undertaker, one program on three architectures since milestone 266, gated by script/swish-check's riscv64 leg in CI. If the board could boot it, this milestone would have retired the tour. The board cannot. boot_progenitor's riscv64 caller needs the PLIC initialized, the NS16550's registers delegated as a DeviceFrame, and the UART interrupt routed. And the UART's PLIC source number is not the same on the board as in QEMU (10 on QEMU virt, 32 on the JH7110). It was a hardcoded QEMU constant until user::uart_irq_and_source() learned to read the machine's own tree, and notes/visionfive2.md carries it in BUGS. builder takes an untyped budget and a report endpoint and nothing else: no interrupt controller, no device capability, no IRQ delegation. So on silicon it separates "the capability core composes a process" from "this board's interrupt wiring is right", and the tour's own history is that the second one is the half that breaks.

What this milestone changed

Nothing was deleted. One defect was found on the way, and three records were made to say what is true of the system today.

The breadcrumb table was wrong about the two stages that matter most to a triage. main.rs's table read 10 = the final banner printed; halting and stopped there. Stage 10 is set at the end of the hardware-entropy step, before the banner; stage 11 is the one that means the tour finished, and it is what user.rs's hang watcher keys on (boot_stage() >= 11). A reader triaging a board log that reported stage 10 would have concluded the boot completed when it had not, which is the exact class of mistake the breadcrumbs exist to prevent. Milestone 159 added the step and moved the meaning; the table it moved past was never updated. Corrected, with stage 11 named.

components/src/builder.rs now says what rests on it, at the thing itself rather than in this block, because the next person to ask calef's question will be reading that file and not this one (AGENTS.md's ladder, rung three). It carries a BUGS section for the first time.

The tour's own comment now names crates/serial_console as a consumer of its output line, so "nothing reads this" is falsifiable from the call site.

What is an architect's, and is not decided here

The category. builder sits in components/, and milestones 39 and 175 both listed it as a fixtures/ example. Milestone 175 is explicit that those lists classified builder and worker "by repetition rather than by ruling", and calef broke the identical tie for worker on 2026-09-13 by ruling it the canonical minimal program and keeping it in components/. The recommendation here is the same answer with a stronger reason: the kernel measures builder against the trust root on the default riscv64 boot (kernel/src/user.rs's trust::require("builder", ...)), which is what it does for the first process and for nothing else.

The obvious objection, stated rather than left for a reader to find. boot_programs() is ["progenitor", "builder", "hello"] on riscv64, and hello lives in fixtures/, so "it is in the trust root" is not on its own a classification. xtask's own doc says why hello is there: spawn_progenitor enters it directly for milestone 19d's test roles, and trust::require refuses any entry the trust root does not name, so the entry exists rather than the check being relaxed. That is a test path. builder is entered on the default boot, with no test build and no role argument, which is the distinction the recommendation actually rests on.

The one record that disagrees is notes/trusted-init.md, which groups it with "test or demo programs rather than the shipped system"; that sentence is about which loaders extend the measurement chain, and it is correct about that. This milestone added a caveat there about where the first of the three runs.

The name. builder is on script/names --unratified. It is a generic word of exactly the class AGENTS.md names to avoid, and its own provenance block admits it was "never argued for directly". Proposed provisionally, with the refusals: see the block in components/src/builder.rs.

Follow-on

(Both bullets above were edited by milestone 311's lane, which is not this block's own, and the edit was forced by a gate. They cited a file milestone 295 deleted, and script/roadmap --check fails a **Recorded.** bullet naming a path that does not resolve. It had been passing only because that check's list of real directories still said user/, which milestone 175 split in two, so it did not recognise a components/ citation as a path claim at all. Milestone 311 derives the list from the tree; these two bullets are the first thing it found.)

BUGS

Index row

calef asked what components/src/builder.rs is for in a world that boots to swish. The answer is keep, and the premise was false: booting to swish describes aarch64 and riscv64's --features shell, not the default riscv64 build, which is what script/board-image puts on a card. progenitor has never run on RISC-V silicon; boot_progenitor needs the PLIC, the NS16550 delegated and a UART source number that differs between QEMU (10) and the JH7110 (32), and builder needs a budget and a report endpoint and nothing else. crates/serial_console parses its init/build line into userspace_ran, asserted by four host tests and two captured board fixtures, and notes/board-console.md calls it the only difference between the two successful captures. The VF2 bring-up did use the tour with an initrd: three of the fifth stop's five identifications are facts about builder. Found the breadcrumb table wrong about stage 10 (set before the banner, not after) and silent about stage 11 (what the hang watcher keys on).