P1: before the tag
An appendix to the milestone.
P1: before the first tag
-
A public type named
Sendshadowscore::marker::Send. Finding:pub use rendezvous::{Receive, Rendezvous, Send}puts a type namedSendat the crate root. Types and traits share one namespace, souse inter_process_communication::*oruse inter_process_communication::Sendin a user's module hides the prelude'sSendtrait there;T: Sendthen fails to parse as a bound. The kernel never imports it, which is why nothing has noticed. A stranger's firstusewill. Evidence:src/lib.rsline 37;src/rendezvous.rsline 66. Change: the names the milestone's D1 decides, provisionally. The crate's own vocabulary is "verdict" (src/rendezvous.rslines 64, 81;src/notification.rsline 79), soSendVerdictandReceiveVerdictare the names the documentation already uses in prose;Signal,WaitandArmwould follow for one shape across the four modules. Door: two-way before the first tag. Effort: S. -
Names the template's ceiling-zero gates refuse. Finding, one line each:
Rendezvous::one_queue_invariantreturnsbooland is not shaped as a question (question_shape); its twinNotification::invariant_holdsalready follows the rule, and the item's own block says the rule postdates it.futex::Key::addressand the test helper parameteraddress: an address is_virtual_addressor_physical_addressin every location (register_names). The field is a virtual address, and the kernel'sfutex_waitpasses ava.a_cancelled_or_rearmed_timer_never_fires_stale: British spelling (british_spelling);canceled.- Test bindings
paandpbinnotification.rstests:spelled_outreadspaas the abbreviation of physical address. They are pointers toaandb;pointer_asays so and passes. - Eight prose spellings
typos(en-us) refuses: the British forms of signaled (twice) and signaling,queueing(twice), and the British forms of modeled, neighboring, and behavior (in one patch header). Evidence:src/rendezvous.rsline 180;src/futex.rslines 51 and 172;src/timer.rsline 250;src/notification.rslines 456 and 518;src/verification.rsline 76;src/timer.rsline 13;src/futex.rsline 5;src/rendezvous.rsline 38;src/notification.rslines 58, 246 and 325;falsifications/verification.send_rendezvous_iff_a_receiver_waited.patchline 5. Change:one_queue_invariant_holds(the name the block itself recommends),Key::virtual_address, the test and prose spellings. All but the first two are mechanical. Door: the two public names are one-way at publish; the rest two-way. Effort: S.
-
The design record does not travel with the crate. Finding:
notes/inter-process-communication.mdis the only place that states the token discipline. It also states the two obligations the harnesses do not check (every node outlives its object; one mint per node), why there are tworemove_*methods, and why the timer proves a cache invariant instead of keeping a heap. Every doc comment points at it. The note stays in nife and moves to the record site, so a crates.io reader has nothing. The scaffold'sdocs/stranger-test.mdreadsLast run: noneand the release gate refuses on that line. Evidence:src/rendezvous.rslines 5, 9, 212;src/notification.rsline 8;src/futex.rsline 8;src/timer.rsline 4;crate-workflows/scaffold/docs/stranger-test.md. Change:docs/design.mdin the crate's repository, the note's content without nife vocabulary, and a README fromscaffold/README-crate.mdwhose "Running the proofs" section states what this review measured.cargo kanitakes about half a minute and about 220 MB. One harness runs ascargo kani --harness verification::send_preserves_the_invariant --exact. A passing run prints twotrailing semicolon in macrowarnings from Kani's toolchain (item 17 removes them). Then a stranger run on record. Door: two-way. Effort: M. -
Manifest metadata for a crate that readers will open on crates.io. Finding: no
description,repository,readme,keywords,categoriesorrust-version. The edition is 2024, which needs Rust 1.85;Option::is_none_orin the proofs needs 1.82 and the inlineconstblock inFutexes::newneeds 1.79, so 1.85 is the floor, and the template's weeklymsrvjob builds at whatever the manifest says. Evidence:Cargo.toml;src/verification.rsline 201;src/futex.rsline 69. Change: the fields,rust-version = "1.85", and a one-line description that says what the crate decides ("the wait-queue decisions of a kernel's rendezvous, notification, timer and futex, as safe state machines over intrusive queues"). Door: two-way (the description is prose). Effort: XS. -
A harness recorded as unfalsifiable has a minimal falsification. Finding:
signal_preserves_the_invariantcarries a paragraph arguing that no minimal defect insignalcan turn it red, under §134 (a harness carries a machine-replayable falsification record, or it is not evidence). Replacingself.pending.saturating_add(1)byself.pending + 1turns it red: the seed makespendingsymbolic, so Kani's overflow check fails atu32::MAX. The harness therefore proves something the paragraph does not claim: a signal never panics, whatever the count. That is worth stating and recording. Evidence:src/verification.rslines 71 to 90;src/rendezvous.rsline 318. Change: either addfalsifications/verification.signal_preserves_the_invariant.patchwith that one-line defect and rewrite the paragraph to say what the harness guards (no enqueue path, and no overflow), or keep the paragraph and say why an overflow failure does not count. The first is the §134 shape. Door: two-way. Effort: XS. -
The mutation record is stale and no one has triaged the three survivors. Finding: the mutation index row says 24 mutants;
cargo mutants --listtoday says 178, because the futex and timer modules arrived after that count. The latest census row records 3 missed, all classed "algebraic", 3 unclassified, 1 copied. No note says which three. Evidence:notes/mutation-testing/README.mdrow for the crate;notes/mutation-testing/survivor-classification.mdline 53;cargo mutants --listoutput. Change: one fullmutation.ymlrun in the new repository inside the window, the three survivors named and either killed by a test or exempted in.github/mutants-exemptswith a reason. Item 14 is one likely kill. Door: two-way. Effort: S, plus the run.