roadmap BUILT

166. One boot loader, reached two inconsistent ways: unifying the per-architecture progenitor loaders

Built 2026-09-15. Delivered as one boot loader, kernel::user::boot_progenitor (name provisional), used by all three architectures. The init-meaning question this block was minted for (2026-08-25) was overtaken and settled by other milestones before this was built, so the scope narrowed to the loader unification that actually remained; see "What overtook the original premise" below.

What overtook the original premise

This block was minted from a naming review that asked whether aarch64's init -> hello archive mapping should become init -> builder. That framing is gone:

So spawn_init, boot_via_init, INIT_ROLES_ENTRY, INIT_BOOT_ROLE, components/src/builder.rs and hello's init_boot role, all named by the original body, no longer existed when this was built.

What actually remained, and what this milestone did

There were two boot-loader functions doing the same job differently:

Both reached the already-shared orchestrator crates/system_initializer::boot(), which was correct and was not touched. The divergence was in the paths that reach it.

The two functions differed on four things, and only two were the hardware's:

Difference aarch64 riscv64 / x86_64 Real, or history?
Spawn mechanism sched::spawn closure + Holding TCB-builder + ThreadId History (both APIs are arch-neutral)
Slot layout budget 0, report 1, uart 2, test-SGI 3, uart-rx 4, ... budget 0, uart 1, uart-rx 2, ... History (report + test-SGI are the shared-with-tests residue)
Console device authority DeviceFrame (UART page) riscv64 DeviceFrame; x86_64 PortRange Hardware (COM1 is port I/O)
Interrupt-controller arming GIC, inline riscv64 PLIC + supervisor external; x86_64 none Hardware

The build merged the boot halves into boot_progenitor, which uses the TCB-builder model on all three architectures and #[cfg]-gates only the two genuine hardware differences inside one shared shape. aarch64's boot drops the report endpoint and the test SGI, so all three architectures now hand the progenitor the same slot layout, and components/src/progenitor.rs's two cfg-gated cap tables collapse into one with no cfg at all.

spawn_hello stays behind as the milestone-19d/19e test-role hello spawner, reduced to that one job (always hello, the five test-role capabilities, the Holding return). Its ~28 direct-by- name fixture call sites in kernel/src/user/tests.rs are unrelated to the boot path and are unchanged; the six spawn_hello tests reach hello's roles exactly as before.

What it touched

Follow-on

Index row

Two boot-loader functions loaded the first process differently: aarch64's spawn_progenitor (a closure that also served the 19d test roles, and so carried two capabilities the interactive system never used) and riscv64/x86_64's riscv_shell_boot (the TCB-builder, boot-only). Milestone 166 merged the boot halves into one boot_progenitor used by all three architectures, #[cfg]-gating only the two genuine hardware differences (the x86 PortRange console vs the others' UART page, and GIC vs PLIC vs APIC arming). The slot layout is now identical everywhere and components/src/progenitor.rs's two cap tables became one. spawn_hello stays as the 19d/19e test-role hello spawner, fixtures untouched; that is spawn_progenitor renamed, which calef ratified on 2026-09-15 once the boot half it was named for had moved out.