roadmap BUILT

267. The milestone tour is three things wearing one name, and only one of them belongs in the kernel

Built 2026-09-13. Minted 2026-09-09 by calef, from one question: "Does the milestone tour need to be part of the build at all? Can the milestone tour just be a userspace program that we run if we want the milestone tour?" Built on milestone/267-tour-split. The split, the remainder list and the measurement are below and all three stand.

The narrative program was deleted on 2026-09-13, by calef's ruling, on maintainer/delete-narrator. The next section is what it said and why it went, and it is deliberately the first thing in this block rather than a footnote at the end. This block turned BUILT at that deletion. The only thing holding 267 at PARTIAL was that the program could not be typed at a prompt. Deleting the program does not deliver that half, it dissolves it. There is no program, so there is nothing left outstanding, and PARTIAL asserts remaining work that no lane could now pick up.

REMOVED was considered and refused. It is the right word when a milestone's code is deleted, and some of this one's was. But three of the four things this block built are still in the tree and enforced (print_machine_description, its script/lint check, and the kernel-only remainder comment). A REMOVED row would tell a reader at a glance that the tour split was reversed. It was not. What was reversed is the vehicle the narrative moved into, and that is a paragraph's worth of fact rather than a status word's.

What the narrative said, and why it is gone

The text, verbatim, as user/src/narrator.rs held it and as the boot printed it. It is kept here because AGENTS.md's rule about branches applies to deleted files with nothing changed: nobody reads a branch, and nobody reads a file that is not there. This is a well-made artifact and the argument for this system's design in nine lines; the git history is not where an argument lives.

milestone 1: we are running our own code on a CPU with nothing underneath it.
milestone 2: and when it goes wrong, we get told.
           : and the machine now tells us what it is, instead of us guessing.
milestone 3: and we know which parts of it are ours to give away.
milestone 4: and nothing writable is executable, and Vec works again.
milestone 5: and the machine can now interrupt us. we are preemptible.
milestone 6: and a thread that refuses to yield gets preempted anyway.
milestone 7: and now it runs a binary it did not compile, unprivileged.
           : and that binary can talk to a server it can only name, not reach.

  every line above was printed by a program at EL0, through a console driver that is
  also a program at EL0, and the kernel does not contain a line of code that puts a
  user's bytes on the wire.

And the observation that made this milestone happen, which should outlive the program it produced. That closing claim had been printed by the kernel, on the program's behalf. It was the one line of the tour not demonstrated by the thing saying it: a println! at EL1 asserting that no kernel code puts a user's bytes on the wire. Noticing that a record can be in the wrong mouth is what 267 is about, and it is a reusable way to read this tree. The fix held for four days and is worth keeping as a habit rather than as a program.

Why calef ruled it deleted, and none of this is "267 was wrong". Each reason is about what the program became, not about the argument that created it.

What went with it: user/src/narrator.rs, its [[bin]] stanza in user/Cargo.toml, its ("narrator", "narrator") entry in xtask's initrd_aarch64 archive table, the spawn block in kernel/src/main.rs, and kernel/src/user/console_service.rs's spawn_client, which had exactly one caller and was that block.

What deliberately did not go with it: console_service::start and components/src/console.rs. Deleting those is a larger change than was authorized. It removes infrastructure rather than a demonstration, and the question it raises is in the Follow-on section below with what the compiler says about it.

The measurement, first, because it changed what this milestone is about

The compile-time exclusion was not buying what its name suggests. The tour costs bytes on aarch64 only, what costs them is the kernel-only demonstrations rather than the narrative, and moving the narrative out made the kernel slightly larger. The consequences for the feature pair are in design/roadmap/proposals/two-boot-mode-features-for-one-decision.md. Nothing was retired here. None of Stage::Tour's consumers observe the thing this milestone moved, and none was touched.

The three things, which want opposite treatment

Boot output was one undifferentiated stream, compiled in or out as a unit. It is three audiences.

The machine description is diagnostics and belongs on every boot, never compiled out. Paging, ISA, firmware, cores, ACPI tables, PCI ECAM, timers, memory map. xenon proved this is not decoration. At first light there was no serial console this project could read, so the boot output was the transcript, read off a photograph. It is what diagnosed both the local-APIC collision and the PCI BAR window landing in RAM. A port is verified by reading these lines.

The milestone narrative is a demonstration. "milestone 1: we are running our own code on a CPU with nothing underneath it."

And a genuine kernel remainder that cannot move anywhere, because it demonstrates facts only kernel code can establish.

What was built

  1. The machine description is print_machine_description, called unconditionally from kernel_main, with byte-identical output. It was not gated on shell or initboot before either, which is the one thing this block's original text got wrong: the cfg at what was line 1540 sat after the description and governed only the tour. What was true is the rest of the diagnosis. The boundary between the two audiences was a reader's inference about where a line happened to sit, and a line moved a few rows down would have changed audience with nothing saying so.

script/lint now fails if a feature = "..." cfg appears anywhere inside that function. The signature keeps #[cfg(not(any(test, feature = "bench")))] and the check deliberately does not look at it. A bench boot diverges into bench::run before this point and a test boot exits through semihosting, and neither is a boot anybody reads to bring up a board.

  1. The narrative was the narrator program, a program at EL0, spawned as the console server's client, and it is deleted (2026-09-13, the section above). The console server was moved to the top of the tour to feed it, which kept the transcript in the order it always read. The hello printing client it used to feed went at the same time: running two programs to demonstrate one thing was one program too many.

This closed a gap nobody had named, and that is the part of item 2 that survives the deletion. The kernel used to print "a userspace program printed to the screen, and the kernel does not contain a line of code that puts a user's bytes on the wire" on the program's behalf. For four days the narrator said it, through a driver at EL0 that holds the UART, from an address space that could not reach the device at all. The default boot now prints no narrative at all. The BUGS entry below records how that reading was refused in September and ruled for in the end. It was rewritten rather than deleted, because what changed is the answer and not the fact that the question was live.

  1. The remainder is listed in one comment at the top of the tour block, with the privilege each entry needs:
survivor why it cannot leave
two threads that never yield sched::spawn, sched::preemptions(), timer::spin_for. An EL0 spinner proves only that EL0 is preempted; these run inside the kernel and are still taken off the CPU, which is the stronger claim
the virtio and PCIe block demos the kernel enumerates the bus and mints registers, a DMA page and an interrupt into a driver's world, then reads the report with sched::ipc_recv. The granter cannot be the grantee
the outlaw &raw const USER_FAULTS is the address of a kernel static, handed to a program that faults reading it and increments the counter it reached for. A program cannot name that address
the memory-region demo it prints memory::stats().used before and after a process spends its own budget, and the claim is that the number did not move. That number is the kernel's own frame accounting and is not exposed to EL0

What must not break, and did not

BUGS

Follow-on

Index row

calef, 2026-09-09. The machine description is diagnostics and must always print, xenon proved that with no serial console; the narrative is a demo that could be a program; the remainder needs sched::spawn and a kernel static. It also dissolves the shell/initboot feature pair, which mean the same thing to the kernel. The narrative program was deleted 2026-09-13 on calef's ruling and the block keeps its text; the split, the lint check and the remainder list stand