roadmap BUILT

855. The TLS graph enters the gated build

(The title and slug are provisional.)

Milestone 501 (a TLS client that speaks to one pinned peer) built the client, and nothing checks that it keeps working.

The gap

cryptography_provider, pinned_tls_client and the two programs over them are each their own workspace. Their crates are fetched only when somebody runs helpers/build-cryptography-exerciser.sh or helpers/build-pinned-tls-exerciser.sh. Their kernel tests skip in CI. Their host tests run in no gate at all.

That was milestone 442 (a crypto provider rustls can use on all three bare-metal targets)'s posture, chosen while the primitives were still calef's to rule on. They are ruled now. §196 (nife carries TLS) took rustls, and §198 (the glue is ours, the primitives are not) took the primitives, rsa included. Milestone 801 (packages over the internet) cannot ship a client no gate builds. A toolchain bump or a std overlay change can break this graph today, and no check would notice.

What it would cost, measured 2026-10-06 on patagonia

Reuse: the two build helpers as they are and CI's existing crates.io fetch; nothing here is written, and the crates are the ones §196 and §198 already took.

The options

  1. Build both programs in CI's kernel legs and the host tests in script/test's host phase, fetching from crates.io as the rest of the workspace does.
  2. The same, vendored: §46 (thin primitives or whole subsystems) says to vendor only what needs a patch, and nothing here does.
  3. A scheduled, non-gating job: the graph is built nightly and a break is a notice rather than a red pull request.
  4. Leave it out until milestone 801 needs it.

The lane recommends the first. The second buys nothing §46 asks for. The third finds a break days late, on nobody's pull request. The fourth leaves the client unchecked through the toolchain bumps most likely to break it.

Ruled 2026-10-10 (UTC): option 1

calef launched this milestone on 2026-10-10 (UTC) with "launch 855". Option 1 was the lane's recommendation and he raised no objection, so option 1 is the ruling; options 2 to 4 were not contenders. The fork was this block's alone, so the ruling lives here. The dependencies it rests on were already ruled: §196 (nife carries TLS) and §198 (the glue is ours, the primitives are not), which are this block's decision dependencies in place of unwritten. No new section was written, as none was for milestone 121 (ripgrep on nife)'s crates.io fetch in swish-check.

Built (lane milestone/855-the-tls-graph-enters-the-gated-build, PR #1902)

What it cost in CI, measured 2026-10-10 (UTC)

Run 38078200852, on the base before QEMU 11.1.2. All three tests passed on every leg, none skipped: package_fetch_exerciser took 1.1 to 2.1 s per leg, pinned_tls_exerciser 1.1 to 1.8 s, cryptography_exerciser 0.2 to 0.9 s.

added to the test job
building the programs, three triples, cold 169 s (83 s and 85 s, separate target directories)
host tests, both workspaces, cold fetch and build about 16 s
the three kernel tests, five boots about 18 s
the job 16.7 min, against a 13.4 min median on main the same day

A correction, 2026-10-10 (UTC). This lane first read the 17.4 to 18.0 minutes main's test job took after QEMU 11.1.2 (#1899) as QEMU being slower, projected 855 to 20.7 to 21.3 minutes, and asked calef how the job should make room. The premise was wrong, as the maintainer found: 265 to 273 s of those runs was rebuilding QEMU on a cache miss (see BUGS), and the suite step itself went from about 731 s to 750 to 811 s. The question was withdrawn. The figure to judge 855 by is the job with a warm QEMU cache. Run 38086259776, after the shared target directory, took 15.8 minutes against the budget of 20. QEMU came from cache in 3 s, the programs built in 87.4 s, and the x86_64 uefi-test boot took 94 s. The longer cpu-matrix shard took 14.4 minutes, up from about 12.8, for its one riscv64 triple.

Architectural parity

All three architectures, by the same suite: each leg builds its own triple and boots its own archive. Nothing here is per-ISA code.

BUGS

Follow-on

Index row

The TLS graph enters the gated build: both exerciser programs build in CI's kernel legs, their host tests run in script/test's host phase, and the crates fetch from crates.io as the rest of the workspace does. Milestone 801 (packages over the internet) cannot ship a client no gate builds.