notes

The chain continues past the progenitor (milestone 104)

Name: provisional.

An appendix to notes/trusted-init.md, which summarizes it. It is the record of milestone 104 (the measurement continues past init).

Everything in the parent note and its other appendices measures one program: the one the kernel loads itself. Every other program in the archive is loaded by the progenitor, and until this increment those bytes were unchecked, so the chain of trust stopped at the progenitor's entry, before the whole interactive system.

The fix is the one this note predicted: The progenitor measures what the progenitor loads, in userspace, against a table of its own. Only the mechanism's reach changed: still SHA-256, still no keys.

Where the table lives, and why it is not compiled into the progenitor

The kernel's trust root works because the kernel is not in the archive it measures. The progenitor is. A table of the progenitor's siblings generated into the progenitor's own binary would mean building userspace, measuring it, and building userspace again, with "and nothing else changed on the second pass" holding the whole chain up. That invariant is not checkable cheaply and its failure is a boot that refuses correct bytes.

So the build packs the table as an ordinary archive entry, program_measurements (name provisional), and the kernel's trust root names it:

$ cat target/init-measure-aarch64.txt
# generated by cargo xtask; the boot programs this aarch64 kernel image is built against
init                 97199d465ab79fed823287e0986b87eca8bd229b4762b47b2b59f89f41ba69c9
program_measurements 4faa76a9ad01ee027137b1a0e99b89a32d1c5677d73f992922d9aefc9c5e7f0e

The kernel gains one digest and no policy at all. It never parses the table; it hashes the entry beside the progenitor and halts if either is not what this image was built against. That is what makes the progenitor's refusals worth exactly what the progenitor is worth. And it stays on the near side of the line the parent note draws when it rejects hashing the whole 14 MB archive in the kernel. The table is 4 KB, and what to do about a mismatch is decided in userspace, the same split DECISIONS §26 (the fault endpoint) makes for faults.

The table itself is every entry in the archive except the table (an entry cannot carry its own digest), sorted, in the same name <sha256> format the kernel's manifest uses. One format, one parser: measured_boot::manifest_entries, which kernel/build.rs also reads through.

The policy: the progenitor grants nothing of its own to what it cannot vouch for

Restated 2026-09-26 (UTC) by §219 (how the shell names an installed program to the spawner), from "runs nothing it cannot vouch for". A session holding §219's D2 capability may send unvouched bytes, which run with the caller's grants and the clock and configuration pages only. Option D is unbuilt, so every program comes from the archive, where the rule means refusal.

Refusing to spawn, spawning and recording, and halting are all defensible, and only the first is a policy. The other two are what a refusal costs, and what it costs is decided by what the program was for.

That was already answered by what the progenitor does when an archive entry is simply missing, so a refused program is treated as a missing one:

Program Missing, before this Refused, now
console, input, line_editor, swish, job_undertaker The progenitor traps; the system does not come up The progenitor names it, then traps
terminal_sink_caretaker the boot comes up without a second stream the same, and the progenitor names it
the spawnable programs (program_table::Program) the prompt answers "could not spawn" the same, and the progenitor names it at boot

Halting the machine for a leaf program was rejected: it turns a build defect in wc into an unbootable machine and buys nothing, because not spawning an archive program is the guarantee.

Recording and loading anyway was rejected harder. With no audit log, it would change nothing about what runs. A chain whose second link is advisory is not a chain, and milestone 22 (trusted init) already refused that direction for the kernel.

And a name the table does not mention is a refusal, not a pass, for the same reason VerifyError::Unmeasured halts the kernel: a table that failed to generate must not wave everything through. A table that is missing, or arrives as bytes that are not UTF-8, becomes the empty table, which vouches for nothing, so the console is refused and the boot stops.

Boots that replace the hand-over

The kernel itself loads one program, progenitor, on every architecture, and its trust root names that program and the table, nothing else. The six ELF child builders that spawn_elf_child_builder enters for the tests of milestone 19d (run a real workload) and 19e are measured the way the progenitor measures what it loads, through the table (trust::require_program_in). So a test kernel carries the production kernel's trust root, and tests have no second trust mechanism (ruled 2026-11-01 UTC, milestone 697 (the trust root leaves the kernel binary) part 1).

A soak, job-mix, bench or disk-throughput boot replaces the hand-over with its own workload, so nothing calls trust::require and the progenitor measures nothing. trust::require_program runs the chain an ordinary boot runs, two links long. require_program_measurements vouches for the archive's table against this kernel image, and the table vouches for the program's bytes through measured_boot::verify_in_manifest, the check the progenitor runs on every load.

Using the trust root this way is also what keeps a release build from dropping TRUST_ROOT as dead code. Without a use, uefi_loader's build reported every soak kernel as NOT SEALED. A #[used] would seal a check nobody makes, which is the inverse case crates/sealed_pair's BUGS warns about.

None means the archive does not have the program, or the boot has no archive at all (x86_64's QEMU bench leg attaches none). That is measured_boot::verdict's split: an absent program is a packaging fact the caller reports in its own words, while bytes the table will not vouch for are a substitution, and those halt with MEASURED BOOT REFUSED.

EXAMPLES

A healthy boot says so, which matters as much as the refusals. The natural bug in a measured boot is for the check to evaporate when the build step does not run. A boot that says nothing looks exactly like a boot that measured everything.

nife: handing the system to userspace init.
init: construction budget dropped; retype answers NoSuchSlot
init: every program measured against the archive table

nife capability shell. naming a resource in a command IS granting it.
$

script/swish-check reads that sentence, so a boot that stopped measuring fails the gate.

Flip one bit of a spawnable program. The prompt still comes up; the program does not run:

$ cargo run -p xtask -- image
$ python3 - <<'EOF'          # flip one bit inside the archive's `wc` entry
import struct
d = bytearray(open('target/initial-ramdisk.img','rb').read())
n = struct.unpack_from('<I', d, 8)[0]
for i in range(n):
    o = 12 + i*40
    if d[o:o+32].split(b'\0')[0] == b'wc':
        d[struct.unpack_from('<I', d, o+32)[0]*512 + 0x40] ^= 1
open('target/initial-ramdisk.img','wb').write(d)
EOF
$ cargo build -p kernel --target aarch64-unknown-none-softfloat
$ NIFE_INITIAL_RAMDISK=target/initial-ramdisk.img NIFE_DISK=target/nifefs.img \
      helpers/qemu-bounded.sh 20 helpers/qemu-runner-aarch64.sh \
      target/aarch64-unknown-none-softfloat/debug/kernel
init: construction budget dropped; retype answers NoSuchSlot
init: measurement refused wc; they cannot be spawned

nife capability shell. naming a resource in a command IS granting it.
$ date
Tue Aug  4 2026 21:14:03 UTC

Flip one bit of swish. There is no system to come up, so the progenitor says which component and stops:

nife: handing the system to userspace init.
init: cannot vouch for swish; halting rather than building an unmeasured system

  user thread 9 killed: BRK instruction
    pc 0x000000000040e6f0   far 0x0000000000000000   user sp 0x00000000004ff960   esr 0xf2000000
  the kernel is fine.

Flip one bit of the table. The progenitor never runs at all; the kernel refuses first:

nife: handing the system to userspace init.

  MEASURED BOOT REFUSED: 'program_measurements' is not what this kernel image was built against
    expected sha256 fd0b1815b5ff5a49910975fa644c1d2a4ee65c6836d10e52e27363639dcea29e
    measured sha256 27edf8e8125afd8ac5369c36bd40e8181109185af37237fdfdcc03f9ea6ddc41
  halting rather than handing the archive to init.

What is proven

BUGS

Still not covered

The chain now reaches everything the interactive progenitor loads. Two other userspace loaders still load unmeasured bytes, and both are test or demo programs rather than the shipped system:

Both run through supervision_contract::build_child, the tree's only loader since milestone 96 (one init: the spawn service written twice), and both could read the same table; neither does today. The table already carries their programs' digests, so the remaining work is the call, not the data.

There were three, and the third was the one that mattered (milestone 295, 2026-09-14). builder loaded least_authority_demo out of the archive without consulting measured_boot::PROGRAM_MEASUREMENTS. Milestone 289 (does the RISC-V tour still earn its place?) had added a caveat here saying why that was worse than the other two read. It was not a demo somebody runs in QEMU; it was the default riscv64 build, which is what script/board-image writes to a card. The chain reached the first process there and stopped one link short of the only child it built.

calef retired builder on 2026-09-14, so that gap is closed by the program going away rather than by the call being added. What closed it is worth being exact about, because "the gap is gone" and "the gap was fixed" are different facts. The default riscv64 boot now ends in boot_progenitor, which measures progenitor against the trust root and hands it the measurement table. crates/system_initializer is the same code aarch64's progenitor runs. So that boot's userspace is now covered by the interactive chain on this page, rather than by an exception to it. Nothing was added to the kernel; a link that stopped short was removed from the shipped path. The two loaders left really are QEMU-only.