roadmap PARTIAL

697. The trust root leaves the kernel binary

Title and slug are drafts. Branch: milestone/697-the-trust-root-leaves-the-kernel-binary; part 1 is on milestone/697-part-1-the-kernel-keeps-only-the-progenitor.

Item 6 of milestone 607 (nife is built and updated from packages), with milestone 695 (the kernel trusts two digests handed to it by the loader). ยง235 (the OS is built and updated from packages) ruled the shape on 2026-09-27 (UTC): T4 with T2. The loader hands the kernel the progenitor's digest and the digest of the archive's program_measurements table. The kernel checks only the progenitor, and the progenitor checks the base set. This block is the build half: the kernel binary stops depending on the base set. 695 is the boot-path half.

Reuse: crates/measured_boot, crates/sealed_pair, xtask's measurement step and uefi_loader's build script, each changed in place. No new dependency.

What ties the kernel to the base set, measured

Measured 2026-10-31 (UTC) at origin/main 25e17a56e. A stripped release kernel is 860,624 bytes on aarch64, 684,536 on riscv64 and 877,528 on x86_64 (about 230 KB each under gzip -9).

The proposal how-the-loader-hands-the-kernel-two-digests.md has the table of what this costs an update under 976's option B.

The consumer, and the condition the code waits on

The first caller is milestone 976 (an OS update is a set of packages that lands through a slot), part 4: the updater that writes the inactive slot. calef ruled on 2026-10-31 (UTC) that 976 part 4 takes option B, a version 2 slot of named members. While the kernel vouches for the base, basalt publishes an interim kernel package, rebuilt on every base change; this block deletes it.

A ruling of 2026-10-31 (UTC) held this block's code until 976 part 4 shows what a kernel download costs per update. On 2026-11-01 (UTC) the architect lifted that wait and directed that the lanes for this block and 695 start. Nobody has taken the measurement yet. Part 1 does not depend on it. Parts 2 to 4 do, because the measurement is what justifies them, so each stays reversible until the figure is in 976's block. A milestone names its consumer, and is not BUILT until a record cites its first use.

The plan in parts

part what needs a ruling? size
1 Done. The system-test kernel measures the six child builders through the table, as trust::require_program does for the benchmark boots; BOOT_PROGRAMS is progenitor alone. ruled 2026-11-01 kernel/src/trust.rs, kernel/src/user/entry.rs, sealed_pair, xtask/src/measure.rs, one system test
2 kernel/build.rs stops generating TRUST_ROOT; kernel/src/trust.rs checks against the digests 695 delivers. xtask drops the archive-before-kernel order. question 1 of the proposal about 200 lines removed, 100 added; lands with 695's part 3
3 sealed_pair and uefi_loader/build.rs check the loader's copy of the digests against the archive instead of searching the kernel for them. question 2 about 250 lines, host tests
4 Basalt stops rebuilding the kernel package on a base change, and the interim kernel package's per-base rebuild goes. no, once 2 and 3 land a basalt pull request, bumped after the nife commit lands

Part 1's ruling (2026-11-01 UTC): the table measures the child builders, the production kernel carries no test-program digests, and tests have no second trust mechanism. Two more rulings of that day shape parts 2 and 3. nife.base is the second digest the loader hands the kernel, and it names the table's digest. And the composed image is the one image. The tree's own image goes away when 695 and this block land. The boot gates then run on the composed image: confirm-boot, and the interim update-boot, which folds into confirm-boot at that point. Part 4 needs no ruling of its own.

Follow-on

Index row

A kernel binary carries 64 bytes of base-set digests compiled in, the progenitor's and the program_measurements table's; the kernel checks test programs against the table. The build half of 607's item 6; its first consumer is 976 part 4, whose measured kernel download cost is still owed.