roadmap BUILT

795. Pin stock Kani to a version, bumped deliberately like the nightly

Raised by the lane lane/verify-args on 2026-10-05 (UTC), from a run of a patched Kani against nife that day. Title, slug and every name here are provisional.

Reuse: script/toolchain-bump and the rust-toolchain.toml pin are the existing deliberate-bump mechanism, and this extends it to the prover; cargo install --version is the stock way to pin, so nothing new is built.

What is in force

Stock Kani is pinned to one exact version in .kani-version (0.68.0, the release in use on 2026-10-05 and the newest on crates.io). Every stock install goes through script/kani-install: verify.yml, kani-reach.yml, falsifications.yml and script/verify's first run. It reinstalls when the installed cargo-kani differs from the pin, and says so. script/lint fails on any other cargo install ... kani-verifier and on a malformed pin, so an install at a different version cannot happen silently.

The pin moves only by a pull request that changes .kani-version. script/kani-bump writes it (newest stable on crates.io, or a version given), and the propose-kani job of toolchain bump opens that pull request daily on toolchain/kani-bump. verify on the pull request is the proof on the new version; the default is to merge, and a changed proof or falsification result holds it for an architect, as for the nightly.

The riscv64 row builds 0.67.0 plus patches/kani-0.67.0-riscv64-target.patch and is not on the pin, so kernel is proved by two Kani versions until the upstream change below ships. The skew is named in verify.yml and in notes/kernel-proofs/riscv64-with-a-patched-kani.md.

Refused: leaving it floating and relying on the failure being obvious. A newer Kani that proves less (a changed default, a dropped check) is green, and nothing would say so.

The pin policy was approved by calef on 2026-10-17 (UTC) for the shared crate CI, with this milestone launched on the same design. Whether the stock and riscv64 pins must converge before kani#4913 ships is open and asked on the pull request.

What becomes droppable if upstream Kani PR #4913 lands

model-checking/kani#4913 adds --target (see notes/kani-upstream.md). Once a released Kani carries it:

Exit criteria: one pinned stock version proves all three kernel rows in CI; the patch, the KANI_TARGET plumbing and (if the rows agree) the arm64 job are gone.

Follow-on

Index row

The verify workflow installs stock Kani unpinned, so a proof can change outcome because a Kani release moved while nife did not, and the riscv64 job already builds a different version. Pinning it, and bumping it on purpose like the nightly, makes the prover stop moving by itself.