P2: later
An appendix to the milestone.
P2: worth doing while the lane is there
-
rg_match_pathhas no bound and a magic buffer size. Finding: foriat or pastRG_MATCHESthe function returnsnarrow/n000for everyi, so a caller iterating one too far gets a duplicate rather than a failure. The signature takes&mut [u8; 32]where the longest path is 23 bytes and nothing names the bound. Callers iterate0..RG_MATCHEStoday. Evidence: lines 681 to 706. Change: adddebug_assert!(i < RG_MATCHES)or returnOption<usize>. Add a named constant for the buffer size. Door: two-way (a signature change before any release). Effort: XS. -
wide_namewraps silently past 999. Finding:wide_name(1000)isn000; the test assertswide_name(987), which is outsideWIDE_COUNT, so the test documents a range the fixture never uses. Evidence: lines 584 to 591;src/tests.rsline 333. Change: bound the argument toWIDE_COUNTin adebug_assert!and test the edge at 127. Door: two-way. Effort: XS. -
The throughput module mixes widths. Finding:
UNITisusize(it isTRANSFER_MAXIMUM's type) whileTOTAL,BLOCKSandWARMUPareu64, so every caller writesUNIT as u64(kernel/src/bench/filesystem.rsline 92,fixtures/src/fs_test_client/throughput.rsline 64). Evidence: lines 140 to 167. Change: one width for the module, with the cast made once atUNIT. Door: two-way. Effort: XS. -
The distinct-bits tests are hand-copied lists. Finding:
the_escape_bits_are_distinct,the_directory_escape_bits_are_distinct,the_navigation_bits_are_distinctandthe_witness_bits_are_distinct_single_bitseach hold a copy of the same constants; a bit added to a module and to one list but not another passes, and a comment atsrc/tests.rsline 178 says so. Evidence:src/tests.rslines 28 to 305 and 376 to 406. Change: oneALLarray per witness module, public so a consumer can assert membership, and one test over the arrays. Door: two-way (adds public items). Effort: S. -
The doc comments are a note, not an API reference. Finding:
lib.rscarries 11,606 words of prose for 192 constants and 4 functions: median sentence 21 words, longest 146, 18 bold spans per 1,000 words, 86 passive constructions. The template's prose caps apply to the README anddocs/, so no gate is red, but the reasoning the comments hold (the record-read refutation, the payload fill, the durability classification) is whatnotes/filesystem-fixture.mdalready holds. Evidence:prose_caps.pyandpassive_voice.pyoversrc/lib.rs. Change: the reasons move to the repository'sdocs/, and each item keeps one or two sentences that say what it is and what reads it. Door: two-way. Effort: M. -
A third party gets vocabulary with nothing to run. Finding: 1017 records that the tests that drive the witnesses live in
system_tests, so a consumer outside nife gets names and shapes and no harness. The prior-art suites above all ship the harness. Change: out of this block's scope; recorded so the next review starts from it. Door: two-way. Effort: not estimated.