mainOpen and answer this issue on GitHub.
blocked, safety · opened 2026-11-22 · updated 2026-11-22 · 0 comments
Records ADR-proof-kani-v1 (Kani checks the prover’s proofs on the emitted Rust, in a mode of its own); the last of its six issues. Needs #2725 Needs #2726
The run on main gets a second leg: the suite’s tests lowered in the Kani mode and every harness run by a pinned Kani, so each promotion checks the prover’s proofs a second way. A Kani failure is a prover defect.
ADR-proof-kani-v1 D7 (the run on main, second leg; Kani pinned at 0.68 or later), D8 (a failure is a prover defect, filed as one), D5 (unwound loops are reported, not failed).
main-checks.yml is made by the fifth issue (its output); this issue adds a job to it.not harnessed, unwound, no contract) are made by the second, third and fourth issues.unsafe_crates in .github/workflows/nikaia.yml pins a nightly for Miri; Kani brings its own toolchain (cargo kani setup).tools/kani.nika, run with nikaia run, that lowers each test of tests/compiler/tests/ in the Kani mode, runs cargo kani -Z function-contracts -Z loop-contracts on each crate with a harness, and writes one line per test: proved, refused: <harness>: <Kani's line> or the mode’s report lines; it exits 1 on a refusal. Test: tests/compiler/tests/kani_driver_names_a_refusal.nika, run on the weakened-invariant hook of the third issue, its line as .stdout.main-checks.yml gets a job kani after the debug-assertions job: it installs kani-verifier at a pinned version (0.68 or later, named in the file, cached by version), runs cargo kani setup and the driver of item 1, and uploads the driver’s lines as an artifact.Done when a dispatch of main-checks.yml on main runs both legs and passes, the driver’s artifact lists every test as proved or by a report line, and a refusal stops the job with its harness named; item 2’s commit carries Fixes #N. Each surprise is a Found: line in the report, never a new issue number.
Supervisor: dispatch main-checks.yml on main once after the push and read the artifact; a refusal is filed as a prover defect (D8).
tools/kani.nika and its test; changes .github/workflows/main-checks.yml (made by the fifth issue).tools/*.nika (CLAUDE.md).