roadmap NOT-STARTED

345. Five crates whose doctests the host gate never runs

Premise re-checked 2026-09-19 and it holds. xtask/src/main.rs's host test invocation still excludes user_mode_runtime, hot_swap_contract, virtio, supervision_contract and system_initializer by name (alongside kernel, components and fixtures). The comment above it still carries the whole account. The exclusions are user_mode_runtime and everything that depends on it, because --exclude removes a package from the test selection and not from the dependency graph. No crate has been split.

No decision is owed and nothing is missing. The split is ordinary refactoring inside crates this tree owns, and the gate that would prove it is the one already running.

In brief. hot_swap_contract, virtio, supervision_contract and system_initializer each take an unconditional dependency on user_mode_runtime, which is EL0 system call asm! and cannot compile for the host. --exclude removes a package from the test selection but not from the dependency graph, so all four are excluded by name in xtask, along with user_mode_runtime itself. Split each one so the pure logic lives where the host can build it and the system call half is what depends on user_mode_runtime. Then the host pass runs their tests and their doctests instead of skipping them.

Why this matters

Milestone 68 exists to be the gate that keeps documented examples honest. Inside that gate sit five crates whose examples nothing ever compiles, so an example there can go stale and no check will say so. That is the exact failure the milestone was built against, living in the milestone's own blind spot.

The tree has already paid for this class of gap once, and the block records the bill. When five crates went missing from the host selection by milestone 51 (wall-clock time, the date command, and an NTP service), file_system_contract, compositor, video_terminal, bitmap_font and grant_plan carried 82 host tests the gate never ran. All 82 passed when they were finally run, which is the point: nothing failed, so nobody noticed, and a gate that quietly covers less than it claims is worse than no gate because it is trusted.

There is a second reason, and it is the reason the exclusion list exists at all. On 2026-08-03 those unconditional dependencies broke the host build on x86_64 and nobody saw it, because CI had moved to ubuntu-24.04-arm the same day and an aarch64 host builds user_mode_runtime by accident. A stranger with a clean x86_64 checkout found it eleven days later, on milestone 117's first run, which is principle 3 failing in the only way it can be observed. script/lint now derives the exclusion set from cargo metadata so the next crate to take a user_mode_runtime dependency breaks the gate rather than the host build. That is a tripwire on the growth of the problem, not a fix for it.

What it would take

Five crates, each a separate piece of work, and they are not equal. hot_swap_contract and supervision_contract are protocol crates whose pure half is message layout and whose system call half is the CALL, which is the cleanest shape. virtio and system_initializer carry more. The measure of success is mechanical and already automated: a crate leaves the --exclude list in xtask/src/main.rs, script/lint's derived-set check agrees, and the host pass runs its doctests.

Index row

hot_swap_contract, virtio, supervision_contract and system_initializer each depend unconditionally on user_mode_runtime, which is EL0 system call asm! and cannot compile for the host. So the host pass excludes all four by name, along with user_mode_runtime itself. Nothing runs their tests or doctests. Splitting each ends the skipping. The pure logic builds on the host, and only the system call half depends on user_mode_runtime. Milestone 68 (code-quality gates: one lint policy, and the lints that lost) is the gate that keeps documented examples honest, and five crates sit in its blind spot. The class has cost before: five crates once missing from the host selection carried 82 tests the gate never ran, and all passed when run. Success is mechanical: a crate leaves the --exclude list, script/lint's derived-set check agrees, and the host pass runs its doctests. The exclusion is commented at the host-test invocation in xtask/src/main.rs.