Issue #2727: Kani over the tests’ emitted crates, on main

Open 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

Goal

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.

Governing decision

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).

Today (read in the code)

To build

  1. The Kani driver. A 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.
  2. The job. 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.
  3. Time. The job’s time and the count of harnesses, unwound loops and unharnessed functions on the first full run, recorded in the report; if it passes the runner’s 6-hour limit, the driver takes a shard input (the builder decides the split) and the job a matrix.

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).

Files and limits

Ruled out

Back to Open Issues