roadmap

The nine forks as calef read them

An appendix of lab machines update themselves. These are the options and recommendations as presented on #1805 on 2026-10-07 (UTC), kept as the argument. Every fork is ruled; the rulings, with his words, are the main body's table, and where a ruling recast a fork (5, 6 and 9) the ruling wins over the text here.

Fork 1: what replaces the floor when a package breaks its own rollback (ruled 1a, a trial)

Recommend 1a, with the chooser's own image as the last resort it already is. It keeps the slot to what nothing can restart, and it is the mechanism §208 (installing is granting) already has, with tries added.

Fork 2: how the progenitor accepts a base package update (ruled 2a, a trial)

calef's model needs the progenitor to accept a newer base program than its slot names.

Recommend 2a. The ABI check is what makes model point 3 a rule rather than a hope. §229's refusal narrows to the slot's programs in the same change.

Fork 3: how new bytes take effect

Recommend 3a for the lab, because testing the restart is the point, with 3c's report printed either way. The supervisor that restarts is the progenitor for the services it starts, until a real boot runs root_supervisor.

Fork 4: what marks an update good

Recommend both, with the run's own result recorded and not gating. Fuchsia's committer and Android's update_verifier confirm what the next update needs, and so does this.

Fork 5: one step or two for a kernel update

Recommend 5b. Model point 3 makes them depend on each other, and 2a's ABI check is what reads it.

Fork 6: who decides when to update

Recommend 6a. Network boot stays the recovery and bench path. Which mode a machine is in is calef's switch, since it changes his lab workflow.

Fork 7: how radon and argon choose a slot

Recommend 7a, with 7c as the fallback. 7b writes the flash radon cannot boot without. Under the model, the slot changes only with the kernel, so this matters less than it did.

Fork 8: where the lab channel lives and when it advances

basalt pins nife by commit and bumps the pin daily at 06:17 UTC. It publishes nothing a machine can fetch: its gate's builds are 14-day workflow artifacts. No channel exists.

Recommend 8b now and 8a later. The channel advances on each basalt gate that passes, with the pin bump triggered per nife merge. The runner minutes that costs are not measured.

Fork 9: the update index is a TUF repository

Fork 2's trial signs packages. A signature alone does not stop an attacker, or a stale mirror, serving an older signed package, freezing the index at a vulnerable moment, or mixing packages from two releases. Nor does it say how to survive a stolen key. The Update Framework answers those with separate roles (root, targets, snapshot, timestamp), a threshold of root keys, root rotation, version numbers that only grow, and a timestamp that expires. That expiry is the freshness §196 (nife carries TLS) named as missing: "an expiry in signed metadata (the Update Framework's timestamp role ...), which the format fork's metadata rows do not yet carry".

Prior art: Fuchsia's package resolver and Bottlerocket's updog both verify TUF, PyPI accepted it (PEP 458), Sigstore delivers its trust root through it, and Uptane extends it for vehicle fleets.

Neither Rust client builds for nife's targets today, and both fail the same way the tree's TLS probes did: their C crypto. rust-tuf (Fuchsia's) is runtime-agnostic and needs no thread. Its crypto is ring, used in 11 files, and its last crates.io release (2022) no longer compiles on our nightly. tough (Bottlerocket's) is actively released, but needs aws-lc-rs and tokio's file system, which runs on a thread pool, and our std is single-threaded. The measurements are in the TUF appendix.

Recommend 9a, built on rust-tuf. Swap its ring calls for the RustCrypto verifiers cryptography_provider already builds, behind a feature offered upstream. Offer the Kani proofs of the metadata checks upstream too, per calef's standing direction on #1806. Writing our own client loses to both on every count except the size of the patch. A key in an image is what §195 (a reviewed recipe vouches for a package) called irreversible; TUF's root rotation is the mechanism that makes it less so.