roadmap PARTIAL

976. An OS update is a set of packages that lands through a slot

Raised 2026-10-28 (UTC) by the lane proposal/607-item-5-an-os-update-through-a-slot. This is item 5 of milestone 607 (its source divides by purpose): "An OS update is a set of packages that lands through a slot (U4 ruled; waits on item 1)." Item 1 is milestone 909 (basalt composes the bootable image from its packages), which landed 2026-10-28 (UTC). This proposal names what the update writes, what it leaves alone, and the order the pieces land.

Reuse: the build side is milestone 909's own composer and helpers/packages.py, which already read the image's membership and write each package's digest; basalt publishes what they produce. The boot side is milestone 525 (a bad upgrade cannot brick the machine: two boot slots, tries and priority)'s crates/boot_slot and uefi_loader's chooser, unchanged. The device side reuses jig's fetch-and-verify path (§220 (design/decisions/0220-signed-builds-and-scoped-key-trust.md) and §208 (design/decisions/0208-installing-is-granting.md, its activation table)). No new dependency; the system manifest is a file, not a crate.

What is already ruled

§235 (design/decisions/0235-packages-build-the-os-and-the-tree-divides-by-release.md) ruled the shape on 2026-09-27 (UTC), and this proposal executes it rather than reopening it.

Programs outside the base still install through jig under §208 and §220, and an installed package fills a service's role without changing the base list. This proposal touches the base path only.

What it proposes

An update is one manifest and the packages it names, copied into the inactive slot, then a confirmation that keeps it or a failure that reverts to the running one.

  1. The manifest gets its own name and file. Today "manifest" means two things: a program's ask in its ELF note (milestone 597 (a program carries its manifest in an ELF note)) and the list of packages an image holds (U4). This proposal gives the second its own name, provisionally the system manifest, and a file basalt writes beside the packages. It lists each package with its digest and names the progenitor, the same three facts that §235's T4 makes the trust root read.
  2. The updater fetches and stages. A program, provisionally update, reads a system manifest, checks each package's digest against it, and copies each into the inactive slot. U4 allows a shortcut: for a package whose digest matches the running slot's copy, the updater copies the local file instead of fetching it. It wipes the staging slot whole first, so no stale file survives.
  3. The kernel reads the new manifest through the loader. The updater verifies the system manifest when it writes the slot, and a manifest the packages do not match draws a refusal naming the package, the same check the composed image already runs at build time. The loader passes the inactive slot's program_measurements table digest, and the progenitor checks the base set against it before anything runs.
  4. The chooser tries the slot and the update confirms. boot_slot marks the staged slot with one try. A boot that reaches the shell confirms it; a boot that exhausts its tries reverts to the other slot, as 525 already does.
  5. The first update is the base nife ships. Basalt publishes the system manifest with the packages, so a machine updates from any pinned release to any later one without rebuilding the tree. This is what 607 promised.

What it does not propose

Dependencies and order

Steps 1 and 2 depend on item 1, which landed, and on 525's slots, which exist. They are host and device code that can land before the handoff, because they write and stage files the handoff later reads. Step 3 depends on the loader's handoff, §235's T4 with T2, which milestone 525 records as one initrd slot on the device-tree path; the x86_64 path already has the loader's own file. Steps 4 and 5 depend on step 3.

Where it stands

Partial. The lane milestone/976-an-os-update-through-a-slot broke the work into the parts below, each landable and checkable alone, re-derived from the tree on 2026-10-31 (UTC) rather than from the steps above. Two facts of the tree shape the order. A slot holds one UEFI program that embeds the kernel and the archive, behind the header §244 (the installed disk has four partitions, and a boot slot is 64 MiB) ratified. And the kernel compiles every base program's digest into its trust root, so until milestone 607 item 6 lands, only a host that builds the kernel can make a bootable slot. Every new name here is provisional.

Follow-on

Index row

Item 5 of milestone 607 (its source divides by purpose) waited on item 1, which landed. The update path now has a producer: basalt composes the bootable image from its packages. The block names what the update writes, what it leaves alone, and the order the pieces land. It builds on §235 (the OS is built and updated from packages, and its source divides by purpose)'s U4 slot layout and T4 trust handoff.