roadmap BUILT

76. Split the roadmap: design/roadmap/README.md as index, one file per milestone

Built (2026-08-03, the day it was raised; the postscript below says why it jumped the queue). Raised 2026-08-03 by calef, after a discussion of whether the roadmap should move to GitHub issues at all. It should not, and the reasons are recorded below because the question will come back. What it should do is stop being one 5,375-line file.

Why not issues, since that was the alternative considered

The friction was real: every roadmap edit takes a branch, a PR and a merge. Three arguments against moving were made and two of them did not survive checking, which is worth recording so nobody re-runs them:

Why one file is nonetheless the wrong shape

Four structural defects landed in the documentation on 2026-08-03 alone, and every gate reported clean through all four:

  1. §61 was appended below DECISIONS.md's ## Reading closer.
  2. Milestone 69's table row said NOT-STARTED while its own detail block said BUILT.
  3. A prose line wrapped so that ## Reading, §61 began a line, rendering as an H2 nobody wrote.
  4. Milestones 68 through 75 are all filed under ## The rival worth understanding, not building, an essay about seL4, because cat >> appends to the end of a file and the ## sections are interleaved among the ### N. blocks.

The fourth is eight instances of one mistake, made by the integrator, invisible to script/roadmap --check because it verifies that a block has a table row and never where the block sits. That is the same well-formed-but-wrong blind spot CLAUDE.md already records for citations.

A split does not detect those. It makes three of the four impossible: there are no sections to file a block under, the filename is the identity, and cat >> into design/roadmap/0074-cycle-counters.md can only add text to milestone 74.

It also removes a conflict that already happened: PR #19 and PR #20 collided on design/roadmap.md solely because each marked its own milestone BUILT.

The shape (calef, 2026-08-03)

What the gate must grow

script/roadmap --check reads a directory instead of a file, and gains the check whose absence let defect 2 through: a milestone's status in the index and in its own file must agree. It should also keep the existing checks, which stay meaningful across files: the status vocabulary, every file having an index row, and every milestone N referenced in prose resolving.

And the prose check widens to the whole tree (calef, 2026-08-03)

Today script/roadmap --check validates milestone N references only inside design/roadmap.md. script/decisions --check already does the tree-wide version for its own citations, via git grep. So two citation schemes of identical shape and identical risk get opposite treatment:

citation validated occurrences in code
§N into DECISIONS.md tree-wide 817
milestone N into the roadmap roadmap.md only ~1,988

The objection to closing that gap is that a stale citation in a code comment becomes a build failure. calef's answer: that is the feature. The documentation is versioned with the code so it cannot describe a system that no longer exists, and a comment pointing at a milestone that was renumbered or never existed is exactly the drift the gate is for. It is the same argument DECISIONS §61 makes about lints, and the same one CLAUDE.md makes about citations being invisible when well-formed and wrong.

It costs nothing to adopt: the tree passes today. Checking every milestone N occurrence outside vendor/ and patches/ against the table, for N >= 12, produced zero unresolved citations. So this is a ratchet in §38's shape and not a cleanup, and it can ship with the gate rewrite rather than waiting behind it.

Two details for whoever implements it. The existing n >= 12 floor stays, because milestones below 12 predate the table and live in git history and DECISIONS.md. And the regex must keep matching milestone 16a (real hardware + IOMMU-backed driver isolation) as 16, since prose names a block's parts with a letter.

Backfill milestones 1 to 11, and drop the n >= 12 floor (calef, 2026-08-03)

The floor exists because the table started at 12 when it moved out of DECISIONS.md, not because the early history is lost. It is not lost. The original plan survives verbatim in the first commit, b7f10e7 ("Record architecture decisions and the milestone plan", 2026-07-12), as a ## Milestones table in DECISIONS.md carrying 1 through 10 with a title and a "what it teaches" column. Milestone 11 was added two days later in 491f23d as "Untyped memory: the kernel stops allocating".

So 304 live citations to milestones 1 to 11 are unvalidated for a reason that stopped being true. Backfilling them and removing the floor takes the gate from 1,875 checked citations to all 2,179.

Record the outcomes, not the plans, and the reason is that they differ. Most of the early milestones have a commit that titles them, and those titles say what actually happened:

Where plan and outcome disagree, the disagreement is the history worth keeping. Milestone 8 was planned as "virtio-blk driver + read-only filesystem" and landed as "the console driver leaves the kernel"; virtio-blk moved to 9, which had been "Processes: spawn, exit, wait". A backfill that copied the original table would record a plan that was overtaken and silently misdate the driver work.

Two need reconstruction rather than copying, because no commit titles them: milestone 1 (the earliest commits predate the convention, though "Boot to Rust on QEMU virt and print to the PL011 UART" is the commit and matches the plan exactly). The other is milestone 7 (user mode: EL0, capabilities, the ELF loader), the capability decision point. It is the densest citation target in the tree at 79 references, and its outcome is DECISIONS §10 (process model) rather than a single commit.

Mark all eleven BUILT. They are, and the evidence is the kernel.

Scope note

File moves, no content edits, with milestone 69's proof obligation: reassembling the files must reproduce the original byte for byte, apart from the fixed placement of blocks 68 to 75. Twenty-nine files outside the roadmap link to design/roadmap.md, including README.md, SECURITY.md, DECISIONS.md, several crates and several design notes; every one must land on the index. Relative links inside the blocks point at ../notes/, which becomes ../../notes/ one directory down, and script/lint already checks that every relative markdown link resolves, so a missed one fails loudly rather than quietly.

Postscript: why it jumped the queue, and what the build found (2026-08-03)

Raised in the morning, bumped to the front the same day, calef's call. The single file did not wait for the split. Nine milestone entries landed in it in one day (a postscript to 78, and 79 through 87), and it passed 6,200 lines. It produced repeated merge conflicts between same-day pull requests (#46 against #47, then #53 replacing #52), which is exactly the conflict class this entry's own rationale predicted. The entry was still NOT-STARTED while its motivating failure was recurring, so it stopped queueing.

The build held to the scope note, with the differences recorded:

The status-agreement check, the one-milestone-per-file checks, and the tree-wide citation check were each proven against injected defects. They were a pasted ### N. block, a second H1, a flipped status, a stray file, a rowless file, two files claiming one number, and a citation to a milestone that does not exist. Seven injections, seven failures reported, none missed.

Follow-on

Index row

built 2026-08-03, the day the single file (by then 6,200 lines) took nine entries and two more same-day PR conflicts. The split is this directory, proven by byte-for-byte reassembly; the gate now checks index/file status agreement, one milestone per file, and every milestone N citation tree-wide (2,255, all resolving). 1 to 11 are backfilled from the first commits and the n >= 12 floor gone