roadmap NOT-STARTED

967. Every pin has a watcher, and a dependency bump carries evidence for where it sits

(Title and slug provisional.)

Raised 2026-10-25 (UTC) by lane dependency-updates-measured, at calef's request for a mechanism that detects dependency updates and takes them in a measured way. The appendix inventory.md lists every pin in the tree, what watches it, and the measurements this file cites.

Reuse: Dependabot's directories, groups, group-by and cooldown; script/kani-bump and the propose-kani job in toolchain-bump.yml, whose shape the tool-pin watcher copies; script/vendor-watch for vendored upstreams; cargo tree for classification; cargo-vet's relative audit as the model for reading a dependency's own diff. This proposal does not take cargo-vet or cargo-crev themselves; "The alternatives" says why.

The claim

Detection has gaps, and incorporation has one rule for everything. A bump to uuid, which the x86_64 kernel links, and a bump to a fuzz harness's libfuzzer-sys meet the same gate today. The gate is already strong: every pull request runs Kani, the icount tripwire, the fuzz targets, the boot file budget and cargo-deny. What a bump lacks is anyone reading the dependency itself, a merge rule that knows where the crate sits, and a record when a bump fails.

What exists, verified on 2026-10-25

Detection, by pin:

Four findings changed the shape of this proposal:

  1. Closing a Dependabot pull request ignores that version, silently. calef closed #2 and #4 (tock-registers and aarch64-cpu majors) on 2026-07-23 because a hand commit had already taken both together, and Dependabot answered each with "OK, I won't notify you again about this release". GitHub's documentation says Dependabot "stores the preferences for the repository centrally". That closing was harmless, but the mechanism is general: a foreclosure under §81 (a dependency stays upgradable) can happen with no edit to .github/dependabot.yml, where the §81 lint cannot see it.
  2. Dependabot already waits. With no cooldown key, it applies "a default cooldown of 3 days" to version updates, and never to security updates (GitHub's options reference, read 2026-10-25).
  3. The kernel links one registry crate: uuid on x86_64, through globally_unique_identifier_partition_table and boot_slot (cargo tree -p kernel --target x86_64-unknown-none -e normal,build). The set moved three times in one week: uuid arrived on 2026-10-22, and spin, aarch64-cpu and tock-registers left on 2026-10-26. A hand list of kernel dependencies goes stale, so the classes below must come from the graph.
  4. The mutation gate runs cargo mutants --in-diff. A bump changes a lockfile and no first-party line, so it generates no mutants: a bump carries no mutation evidence at all.

Part 1: detect

Every pin gets a watcher, and a lint keeps that true, the same pair #2714 made for lockfiles.

Part 2: incorporate, by where the dependency sits

Five classes, computed

A script (provisional script/dependency-class) places each registry package in the highest class any edge puts it in, from cargo tree over each committed lockfile with target filters. A pull request touching a lockfile gets a comment naming the class of each package it moves.

Class A package is in it when Today (root workspace)
K, kernel the kernel links it on any of its three targets 4
V, verification a crate in script/verify's table depends on it uuid, plus K
N, untrusted input a crate with a fuzz target, a TLS workspace, or smoltcp depends on it measured by the script
S, shipped a program in an image or a package depends on it the rest of components' 27
D, development only dev, build, fuzz-harness or host-tool edges reach it everything else

The roots for N and S live in one file the lint reads, so a new fuzz target or TLS workspace joins N by a reviewed diff rather than by memory.

The evidence a bump carries

Every class keeps what CI already runs. Each class adds to the one below it.

Class Adds, before merge
D cargo-deny green (advisories, yanks, licenses, sources); the PR body names the versions and any new package
S the dependency's own diff summary: lines changed, unsafe tokens added and removed, new build.rs or proc-macro, from the two published .crate tarballs
N a fuzz replay of the full corpus for every target whose graph holds the package, not the 60-second run
V script/verify for every crate whose graph holds it (CI already runs it all), and cargo mutants over those crates' files, which the in-diff gate cannot do
K an agent reads the whole diff and writes a delta review in the pull request; the icount table and the boot file size against main; §46 (thin primitives or whole subsystems)'s kernel bar rechecked for the new version, items 2 and 4 by name

A new package in class K is a take, not a bump. §46 already asks an architect to rule on each one, so the comment adds needs-architect whatever the merge rule below says.

The diff summary is a stdlib Python script over two tarballs from static.crates.io, which is the sha-pinned source vendor-verify already trusts. Counting unsafe tokens is a tripwire, not an audit. It says where a reviewer should look, as the icount table does for speed.

Who merges

Decided 2026-10-25 (UTC). D and S merge on green, armed by whoever opened the pull request, as the Actions group does today. N and V merge on green once the added evidence sits in the pull request, by an agent. For K, an agent merges a minor or patch bump once the kernel-class evidence sits in the pull request, and a major bump carries needs-architect.

One registry crate runs in the kernel with full privilege. Since 2026-07-22 the kernel's registry crates have moved four times. spin moved twice through Dependabot (one of them a 0.x major), aarch64-cpu and tock-registers once together by hand (coupled majors), and uuid arrived on 2026-10-22 under a proved crate. spin, aarch64-cpu and tock-registers left the kernel on 2026-10-26. Two of those moves were majors, so the rule asks for about one architect ruling a month at most, and it puts that ruling where a kernel crate's API changes.

When to take a release

Decided 2026-10-25 (UTC). Dependabot's default cooldown of 3 days stands, and dependabot.yml carries no cooldown key. A security update ignores the cooldown, so an advisory fix may land the day Dependabot proposes it.

When a bump fails

Decided 2026-10-25 (UTC). Nobody closes a Dependabot pull request to block a version. Finding 1 says why: closing it is an ignore with no marker. A bump that cannot land leaves two records and keeps its pull request.

Still to build: a scheduled check that lists every Dependabot pull request closed without merge and every bump-blocked one, and fails when one has no BUGS entry citing it. That is the rung-two half §81's own BUGS section asks for. Open blocked pull requests count against open-pull-requests-limit, 5 per entry; blocked bumps are rare (one group, #151, in three months), and raising the limit is a change §81 leaves to us if it ever binds.

The alternatives

The seven questions

  1. The alternatives, with reasons: above.
  2. What the tree does in the analogous case: toolchain-bump.yml proposes daily, defaults to merge, and lists five compelling reasons to hold; this copies that rule and adds the dependency's own diff. The rsa pin's BUGS entry in notes/cryptography-provider.md is the tree's existing record of a blocked bump.
  3. Prior art, read on 2026-10-25: GitHub's Dependabot options reference (cooldown, directories, group-by), cargo-vet's book and its built-in criteria, cargo-semver-checks' README. I read Renovate's option page only as far as its headings, and recall the malicious-release window.
  4. Premise checks: findings 1 to 4 above; the tree commits 17 lockfiles, and 2 of them stay unwatched on purpose.
  5. Cost: the classes and diff summary are two stdlib scripts and a workflow step; the tool-pin watcher copies propose-kani (about 80 lines of workflow). The architect's cost under the merge rule is about one ruling a month. Only the class counts are measured; the rest waits on a build.
  6. Reversible throughout. Nothing outside this tree acts on a merge rule or a cooldown, and each is a one-line change.
  7. The three decisions put architect attention where semantics move and keep one number implicit in Dependabot's default; none of them rests on effort.

Index row

Detection has gaps and incorporation has one rule for everything: a bump to uuid, which the x86_64 kernel links, meets the same gate as a fuzz harness's libfuzzer-sys. The work puts a watcher on every pin, classes each package by where it sits, gives each class the evidence its position owes, and records a bump that fails, with the inventory in the appendix beside it.