decisions DECIDED

218. Carry a Kani patch so riscv64 is proved, and send it upstream

calef ruled 2026-09-25 (UTC), under ยง46 (thin primitives or whole subsystems), on the proposal milestone 589 (Kani can prove riscv64 from the hosts we already have) was promoted from. (Section and milestone numbers provisional until the merge queue lands them.)

The ruling

nife carries a patch to Kani that lets it target riscv64gc-unknown-linux-gnu from an aarch64 or x86_64 host, and the same change goes upstream. The research behind it is milestone 589's block: CBMC is host-independent and already knows riscv64, so what Kani lacks is a riscv64 target, not a riscv64 host. Four places in Kani hard-code the host triple; the patch unpins them.

When to revisit

Switch to a maintained fork of Kani only if the carried change grows past a few hundred lines, or nife comes to carry several Kani patches at once (the maintainer, confirmed with calef, 2026-09-25). Below that line a single patch file is cheaper to read, rebase and delete than a fork is to keep in step, and its header says what it is for. Above it the rebase stops being a one-hunk chore and a fork's history starts to earn its keep.

What was refused

From the proposal's options, each with its reason:

What this does not change

It does not make asm!, fixed-address MMIO or the four riscv64 .s files provable; those stay outside the prover on every host, and notes/kernel-proofs.md says how far the reach goes. It does not touch design/fatal-risks.md, which is calef's file; its sentence that riscv64 is unreachable becomes false when this lands, and milestone 589's follow-on routes that correction.