roadmap NOT-STARTED

535. The trusted core has no size, and the tree cannot say how big it is

(Number provisional until the merge queue lands it.) Promoted from the proposal the-trusted-core-has-no-size, filed 2026-09-20, on calef's instruction of 2026-09-20 to give every proposal on main a number. The text below is the proposal's own, unedited, by the promotion rule. Filed by maintainer/redleaf-comparison from the RedLeaf and Tock-founding-paper reading (notes/redleaf.md, notes/trusted-base.md). (Number and slug provisional until the merge queue lands it.)

One note, one script/metrics column, and a cross-reference. No hardware, no decision, no system call surface. One sentence inside it is an architect's: any published claim about how small this kernel's trusted base is, relative to anyone else's, is a fact that leaves the machine. Produce the number and the method; leave the comparison for ratification.

What the lane already did, so this proposal is smaller than it looks. notes/trusted-base.md now states the three definitions, re-derives the numbers, and gives the split that matters (577 unsafe blocks inside the kernel of 1,138 tree-wide; 39,892 kernel code lines). What it cannot do is keep them true. Everything in it is a snapshot computed by a throwaway script in a lane, and it will be stale within a week. This proposal is the mechanism under that note.

What was found

Levy et al., The Case for Writing a Kernel in Rust (APSys '17), makes its entire quantitative case in one sentence: "The kernel's trusted computing base includes the Rust core library as well as under 1000 lines out of over 6000 lines of kernel code." That number is why the paper is cited. It is the thing a reader remembers.

RedLeaf, which builds on that argument, gives no such figure anywhere in its ten pages. It enumerates its TCB instead (microkernel, trusted crates, device crates, the IDL compiler, the trusted compilation environment) and never measures it, while adding two components Tock does not have. The authors' own follow-up (PLOS '21) calls one of those additions "incomplete and error prone."

And this tree cannot answer the question either, which is the part that makes it a proposal rather than an observation about somebody else. Measured on 2026-09-20:

Why it is worth doing

Because the claim is already being made and is currently unfalsifiable. DECISIONS §14 says "a small, machine-checked trusted core." notes/prior-art.md builds its entire build-versus-reuse rule on one boundary: "the reuse boundary is the TCB boundary. Inside it, always build." A rule that decides what this project writes by hand cannot point at a definition of the set it is about.

Three of this project's own principles land on the same answer:

And note which way the number might cut, because a proposal that only anticipates a flattering result is not one. nife's trusted core is 39,892 code lines against Tock's ~6,000. The honest framing of that gap is not obvious: Tock's kernel is a uniprocessor embedded kernel with no MMU work, and nife's carries three architectures, page tables, a scheduler and an IPC path. The number could easily read badly and should be produced anyway.

What the work is

What would make this not worth doing

If calef judges that the TCB size is not a number this project wants to publish, close it: the measurement's main value is external, and internally the unsafe-density ceiling is already doing the work of keeping a lane honest. It costs one lane, it is documentation and one metric column, and skipping it defers rather than compounds.

Index row

What the lane already did, so this proposal is smaller than it looks. notes/trusted-base.md now states the three definitions, re-derives the numbers, and gives the split that matters (577 unsafe blocks inside the kernel of 1,138...