notes

model-checking/kani#4913: what stands between the draft and "ready for review"

Name: ratified 2026-10-18 (calef, "Approve all"). Refused pr-4913-before-ready. The parent note is kani-upstream.md. The pull request is out of draft and carries the patch (450cbc2) and all four body edits. The tables record the state of 2026-10-03 (UTC), when the retest was run. calef reads and posts every upstream word.

The premise was stale

The lane was briefed to draft the upstream half of milestone 589 (Kani can prove riscv64 from the hosts we already have) as a -Z flag against #2402. That draft already exists and is open: #4913, from calef/kani riscv64-target, built by lane/kani-upstream and recorded in kani-upstream.md. Milestone 589's block still said "a separate lane holds it", which is how the brief came to ask for it again. So this lane did not write a second patch. It read where #4913 stands, tested its head, and drafted what is left before it can leave draft.

Read through gh on 2026-10-03 (UTC):

state
#4913 open, draft, MERGEABLE, head 2d0a623, 20 files, +411 −36, base Kani main at 1640445da (current)
review tautschnig, 2026-09-30: five inline comments. calef answered all five on 2026-10-03, and each is in code at 2d0a623
upstream CI never ran. Six workflows (Kani CI, Format Check, Cargo Deny, Benchmarks, Release Bundle, Std Verification) are action_required at 2d0a623: a first-time contributor's runs wait for a maintainer to approve them. Only Auto Label and Kani Extra (pull_request_target) ran. So the regression matrix that runs target_riscv64 has not run anywhere but patagonia
#2402 open, last activity 2024-10-02, two comments. The comment drafted in issue-2402-comment.md is not posted; #4913's "Towards #2402" puts a cross-reference in its timeline either way
follow-up the kani_lib.c link-order pull request promised on #4913: drafted in kani-lib-link-order.md, not opened

Tested here, at 2d0a623

On patagonia, in a scratch clone of #4913's head (push URL disabled), with CBMC 6.11.0 (Kani's pin) unpacked from the cached Homebrew bottle into the session scratchpad. Nothing installed.

run result
cargo build-dev --lib-target riscv64gc-unknown-linux-gnu -- -j 4, niced, load about 10 exit 0, 328 s wall, 1.74 GB peak resident
compiletest script-based-pre, target_riscv64 alone passed, 5.3 s
compiletest script-based-pre, whole suite 91 passed, 1 ignored, 498 s. verify_std_cmd passed
compiletest ui 150 passed, 3 failed: all three need the kissat solver, which was missing. With kissat 4.0.4 unpacked the same way, the three passed, so 153
compiletest cargo-ui 30 passed
with the patch below applied: cargo build-dev --lib-target riscv64gc-unknown-linux-gnu exit 0
with the patch: target_riscv64 passed, 5.7 s, after deleting its compiletest stamp (the stamp does not see a change to riscv64.rs, so the first rerun was silently skipped as up to date)
with the patch: cargo build-dev --skip-libs --lib-target riscv64gc-unknown-linux-gnu refused by clap: "the argument '--skip-libs' cannot be used with '--lib-target '"
with the patch: kani-fmt.sh --check, cargo clippy -p build-kani -- -D warnings, cargo test -p build-kani clean, clean, 0 tests

Not run: cargo-kani, expected, coverage, cargo-coverage, the kani suite and firecracker.

Still open at the head, from the September rehearsal review

pull-request-4913-review.md listed findings before a maintainer saw the pull request. Should-fix 1 to 3 are done. Of the rest, checked against 2d0a623:

The drafted patch

pr-4913-followups.patch: one commit in git format-patch form, for calef to apply to calef/kani riscv64-target with git am if he agrees. 3 files, 5 lines added and 5 removed:

Edits to the posted body

The body on #4913 is the one in pull-request-4913-body.md with the September fixes. Four places are now stale or wrong. Replacement text, ready to paste:

  1. Testing, first bullet. Delete "and (as of the follow-up commit) the exit-code discipline for expected-failure blocks". No such commit exists: target_riscv64.sh runs under set +e, ends in exit 0, and passes on its transcript alone. The sentence reads as a claim about exit codes the test does not check.
  2. Testing, local runs bullet. Replace from "In script-based-pre" to the end of that sentence with: "On 2026-10-03, rebased on main at 1640445da, script-based-pre passed (91, 1 ignored), ui passed (153) and cargo-ui passed (30). The verify_std_cmd failure I mentioned earlier did not recur. I have not run the coverage suite."
  3. Testing, CI bullet. Append: "None of the regression workflows have run on this PR yet; they are waiting for approval to run for a first-time contributor."
  4. Disclosure. https://github.com/crickertech/nife becomes https://github.com/nifeos/nife. The crickertech organization is now nifeos, and the old link redirects for now.

The heading "Something I noticed and did not change" now holds the corrected cause and the follow-up offer, which is current. It can stay.

calef's checklist before posting

Every claim below rests on memory, inference, or a measurement this lane did not repeat.

What is left after posting