decisions DECIDED

328. A recipe may change with no person when checks stand in for its review

(The section number is provisional until the merge lands it. Every key, check and workflow name below is provisional, and so is basalt's 7-day hold.)

Ruled 2026-11-25 (UTC) by calef on nifeos/record#41: option A. It amends clause 1 of §195 (a reviewed recipe vouches for a package, and the owner may overrule it), whose amendment of 2026-11-25 states the new clause and points here. This file holds the rule's detail and its reasons.

The survey reads nifeos/basalt@9b9e4b842 and the nife commit it pins, nifeos/nife@6bed50566. The prior art, read on 2026-11-25 (UTC), follows the rule.

Background

basalt is nife's distribution. Each program it ships has a recipe, one file in recipes/. It names the upstream source and each patch basalt applies by SHA-256, the license, and the SHA-256 of the package it builds for each architecture. §195's clause 1 says this digest lives in a recipe "changed by human review". So every new upstream release waits for a person to open, read and merge a recipe change.

That is the slow part today. recipes/ripgrep.toml pins ripgrep 14.1.1 (crates.io, 2024-09-09). crates.io lists four releases after it: 15.0.0 (2025-10-16), 15.1.0 (2025-10-22), 15.2.0 (2026-07-15) and 16.0.0 (2026-11-22). Nothing moves a recipe without a person, and no person has.

Is the premise true

Partly, and the part that is not true is the precedent.

The rule

Clause 1 of §195 reads: a package's digest lives in a version-controlled recipe that a review changes, and the review is a person's or the checks below. The machine still trusts the recipes of the sources it was given.

  1. A bot opens the pull request. When an upstream publishes a release, a scheduled basalt workflow opens a recipe pull request with the new source and the package digests the build writes. It reads the source's SHA-256 from the upstream's own index (for a crate, the cksum in crates.io's index). A newer release replaces the open pull request for that recipe.
  2. It merges with no person when all of these hold:
    • the package builds from source, and two independent builds give the same bytes (the existing reproduce job);
    • the boot tests pass (the existing install and composed jobs);
    • every patch basalt carries still applies to the new upstream, with the patch file untouched;
    • the declared license stays the same: the upstream's own license field equals the recipe's license, and each of its license_files exists (new: a comparison);
    • the endowment stays the same or narrows: the note decoded from each new package's bytes equals the served package's note or grants a subset of it (new: a decode and a comparison). It reads the built bytes and not a recipe key, so it sees a widening from any route.
  3. A person reviews only when the endowment widens, the license changes, or a patch no longer applies. The bot leaves the pull request open, names the check that held it, and adds the label that asks a person. Any other failing check leaves a red pull request, as a red pin bump does.
  4. Publishing stays as it is. A merge to basalt main already publishes the index and the packages (packages.yml, the publish job). This adds no path to the index.
  5. On the owner's machine nothing changes by default. The owner decides whether and when a machine updates (§250 (an image names its distribution's package index)'s amendment of 2026-10-07). Scheduled updating is a setting the owner turns on per source, which is clause 2's shape. jig rollback undoes an update in one line by pointing the installed programs one generation back (§208 (installing a package is granting it, and the installed programs are versioned)).
  6. An optional hold. A source may set a number of days a new upstream release must age before its pull request may merge. It is a setting per source, not a fixed number. basalt's value is 7 days, provisional: the maintainer sets and changes it, as a two-way door.

A recipe may also opt out with a reason, as Homebrew's no_autobump! does.

What this does not catch

A compromised upstream release that asks for no new endowment passes every check. That is the xz case. The xz 5.6.0 and 5.6.1 release tarballs carried a backdoor, and part of it lived only in the tarball and not in git (Andres Freund, oss-security, 2024-03-29). The tags carry the dates 2024-02-24 and 2024-03-09, so the releases sat in public for 34 and 20 days before the disclosure. A crate is the same kind of object: an archive the publisher uploads, which need not match the repository. Such a release builds, reproduces, boots, takes its patches, and keeps its license and endowment.

Two things bound it, and neither is a review.

Nor does it catch a new transitive dependency in the upstream's lockfile; the pull request lists the lockfile diff, and nothing holds on it.

A worked example: ripgrep 14.1.1 to 15.0.0

Checked against the crates on 2026-11-25 (UTC), with basalt's 7-day hold. The bot is not built yet, so this is what it will do.

  1. crates.io's index gives ripgrep 15.0.0 the SHA-256 db22b6e9...f946. With the hold, its pull request could merge no earlier than 2025-10-23. The bot changes version to 15.0.0 and sha256 to the new digest.
  2. 15.0.0's Cargo.lock takes ignore 0.4.24, not 0.4.23. The bot rewrites the [[patch]] entry's version and sha256 for 0.4.24 and leaves file and file_sha256 alone. patches/ripgrep-ignore-walk.patch applies to ignore 0.4.24 under patch -p1 --dry-run with no rejected hunk.
  3. 15.0.0's Cargo.toml says Unlicense OR MIT, the recipe's value. The license check passes.
  4. The new bin/rg carries the same UNVOUCHED_STD_MANIFEST note, because basalt links it. The endowment check passes.
  5. The two builds compare equal, jig installs it and the composed images boot. The pull request merges and publishes with no person. An owner with scheduled updating on gets it at the next update, anyone else with jig install, and either can undo it with jig rollback.

If 15.0.0 suddenly asked for the network, two different things stop the two ways it could.

The prior art, read 2026-11-25 (UTC)

System Who opens the change What merges it Time gate A permission diff decides review
Homebrew homebrew-core autobump.yml, every 3 hours the automerge workflow, after a person approves none no
nixpkgs @r-ryantm the merge bot, when a package maintainer asks none no
Debian testing the uploader, to unstable the migration, automatically 2, 5 or 10 days no
Renovate the bot automerge on green, if set minimumReleaseAge no
Dependabot the bot a person, or a separate auto-merge rule cooldown no
Flathub flatpak-external-data-checker a person, or automerge by exception none no
Android the developer the store, automatically none only at run time, for dangerous permissions
Chrome extensions the developer the store, automatically none yes, at the user

Every system automates opening the change, and most still have a person merge it. Those that merge with no person gate on age and tests. Only the two with a permission manifest decide review from its diff, and both decide at the user.

Options

What it is Why it wins or loses
A. Checks stand in for review the rule above; a person only on a widening, a license change or a failed patch Chosen. It spends the person where nife's design puts the risk, in what a program may reach.
B. Keep clause 1 every recipe change waits for a person ripgrep sits four releases behind under it today. A person reading an upstream's whole diff would not catch xz either, so the review mostly repeats A's checks by hand.
C. The bot opens, people merge (nixpkgs, Homebrew) A's step 1 and its checks, with a person on every merge Better than B and the common practice. It loses because, with nobody reading the upstream's code, the person adds a click and not a check, and the click is what is missing today.
D. Automate fully, widening included A without the widening trigger in step 3 A widening is the one change confinement cannot bound, and basalt's ceiling would not stop it on the machine. This removes the only person who would see it.
E. A, plus the owner's consent on a widening (Chrome) jig refuses or asks when an update's note grants more than the installed one's Not refused, and not part of this ruling. It changes the install rule of §208 and §220, which A leaves alone, and deserves its own proposal.

A was chosen. It is not about effort: B costs the least to build, since it builds nothing. Would A still win if both cost the same? Yes, because A spends its person on the one change nothing else bounds.

What it costs

Estimated, not measured. The build, reproduce, install, composed and patch checks exist. Four pieces are new, each a basalt change through basalt's queue:

Reversibility, and who has acted on it

Checked 2026-11-25 (UTC): nifeos/basalt has no forks and no stars. Its pull requests come from calef, nife-smelter[bot] and Dependabot only. No other source stands up a recipe under clause 1, and pin-bump.yml notes that basalt has no customers yet. So nobody outside has acted on clause 1, and the rule itself is reversible: turning the bot off restores it.

Each release the bot merges is not reversible. A merge publishes, and a package an owner installs runs on that owner's machine. jig rollback takes it out of the installed programs and does not undo what it did while it ran. The endowment bounds that cost, which is why the endowment check is the one that keeps a person.

What it unblocks

The basalt bot, the license and endowment checks, and the hold, each a basalt change through basalt's queue. Until they land, recipe changes still wait for a person, because nothing yet stands in for one.