Issue #2726: The suite with debug assertions on, 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 fifth of its six issues. Needs #2720

Goal

After each promotion to main, the whole suite runs once more with debug assertions on, so every check the prover dropped (proven::read and its siblings) is checked again at run time by its debug_assert!. The develop CI does not change.

Governing decision

ADR-proof-kani-v1 D7 (the run on main, first leg). ADR-002 D5 (no debug assertions in any user build; unchanged: only this run turns them on). ADR-306 D19.

Today (read in the code)

To build

  1. What the first issue found missing. If the first issue found the precompiled std is not rebuilt for the flag, the std’s cache key takes RUSTFLAGS (in Nikaia, where the key is made; the builder names the function). Test: tests/compiler/tests/a_dropped_check_stops_with_debug_assertions_on.nika — a program whose emitted proven::read is reached past the end only through a hook, its .stderr the debug_assert stop. If nothing is missing, the item is struck with the first issue’s record.
  2. The suite’s input. suite.yml takes an optional input rustflags (empty by default), handed to the suite’s steps as RUSTFLAGS, and its cache key names it so the two runs never share a cache. Test: the item-1 program, run by the suite’s own step.
  3. The workflow. A new .github/workflows/main-checks.yml, started by workflow_dispatch only, on ref: main, calling suite.yml with rustflags: "-C debug-assertions=on" for x64. The same commit adds the step gh workflow run main-checks.yml --ref main to the promote job in .github/workflows/nikaia.yml, after the one that starts website.yml (nikaia.yml:236), so that each promotion starts it.

Done when a dispatch of main-checks.yml on main runs the whole suite with debug assertions on and passes, and item 1’s test stops with the debug_assert message under the flag and passes without it; item 3’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 by hand after the push to see it pass.

Files and limits

Ruled out

Back to Open Issues