roadmap NOT-STARTED

278. Two modules are fenced out of the prover by a Cargo.toml, not by what they do

A packaging change. Nothing here is a design fork, and it is reversible: the modules move back by moving the files back.

In brief. crates/user_rt is excluded from the host pass, from coverage, from mutation and from Kani, and correctly so. It is the EL0 system call floor, and svc on a machine with no nife kernel under it is a fault rather than a system call. The exclusion is crate-level. Two of the crate's modules make no system call at all, and they inherit the exclusion because of the file they are declared in.

What is actually in there

Measured 2026-09-12, on 4306c8c1.

Module Lines System calls Consumers Excluded for a real reason?
mapped_window 176 0 29 files No. Pointer arithmetic with bounds checks
initial_ramdisk 60 0 9 files No. A 'static slice over a fixed VA
heap 220 yes (memory_region::MAP) 7 files Yes
virtio 53 yes (5 sites) 4 files Yes
core (invoke and its wrappers) ~500 yes, it is the system call all Yes

mapped_window is the most-used thing in the crate and the least entitled to the exclusion.

Why this matters, and it is the verification thesis rather than tidiness

MappedWindow::check is one line:

assert!(off.checked_add(size).is_some_and(|end| end <= self.len), ...);

A bounds check with an overflow guard, standing between 29 call sites and a write past a mapped page. It is exactly what a bounded model checker is good at, and crates/user_rt has zero Kani harnesses today because nothing in it can be reached.

That is milestone 191's finding in miniature. 191 found that no harness in this tree had ever caught a defect after the day it was written, because one line of script/verify's own header meant cargo kani never compiled the kernel, putting 64,818 lines out of reach by construction. Milestones 193 and 197 fixed that for kernel/src and for user/. This is the same shape one scale down: a safety-relevant abstraction, used at 29 sites, unreachable because of where it is declared rather than because of what it does.

The same boundary also costs coverage and mutation on 236 lines that both tools could read.

The work

Move mapped_window and initial_ramdisk into a crate that compiles for the host. Leave heap, virtio and the core where they are, and leave the exclusion on user_rt exactly as it stands. Then let the three tools that were always able to read this code read it: a harness on the bounds check, coverage, and mutants.

The new crate's name is an architect's. A lane ships a provisional one and says so.

What makes this more than a file move

Four exclusion lists, and milestone 244 already found them drifting. script/lint's two clippy invocations, xtask's test, script/coverage's exclusions, and .cargo/mutants.toml's, the last two being the ones that report a number. .cargo/mutants.toml says in its own head comment that its list "deliberately mirrors script/coverage's exclusions"; a mirror maintained by asking the next person to keep two files in step is rung four.

script/lint's own gate cuts the right way here and must keep cutting. It asks cargo which workspace members reach user_rt and fails any new consumer, after a breakage that lived from 2026-08-03 to 2026-08-14 invisible because CI had moved to an aarch64 runner where the EL0 assembly compiles by accident. The new crate must not depend on user_rt, which is the whole point, and the gate is what proves it did not.

29 files change an import path, from user_rt::mapped_window to the new crate. Mechanical, and this tree has a scar about mechanical renames: a blind sed once rewrote the very row recording that a name had been refused. Read before sweeping.

The refusals, which are the valuable half

BUGS

Follow-on

Index row

crates/user_rt is excluded from the host pass, coverage, mutation and Kani because it is the EL0 system call floor. The exclusion is crate-level: mapped_window (176 lines, 29 consumers) and initial_ramdisk (60 lines) make no system call at all and inherit it from the file they are declared in. MappedWindow's one-line bounds check with an overflow guard stands behind 29 call sites and cannot be reached by a prover; the crate has zero harnesses. Milestone 191's finding one scale down. Touches the four exclusion lists milestone 244 found drifting. Does not settle whether user_rt keeps its name.