P1: before the tag
An appendix to the milestone.
P1: before the tag
-
The crate names nife and nife programs. Finding:
helpers/lint_externalized_crates.pycounts six hits. The dry run's own nife-word check fails onREADME.md("written for the nife kernel"),src/lib.rsline 270 (a comment about "nife's standard library" generator),src/rendezvous.rsline 30 ("makes nife a capability system"), andsrc/virtio.rsline 33 to 35. These lines nameentropy,net_stack,gpu_driver,keyboard_driverandsystem_initializerwith their ring offsets. Fix: say "a capability kernel" and "the drivers that map the region"; the ring offsets belong in the drivers that own them, not in the constant that reserves the last eight bytes. Effort: S. Door: two-way. -
Twenty-eight references point into nife's internals, which a stranger cannot follow. Finding: after the move strips the
Name:blocks, the doc comments still citecap::CAPABILITY_TABLE_SLOTS(src/lib.rsline 95),capability_table::Rights::ALL,::BINDand::ENUMERATE(src/lib.rsline 210,src/rights.rsline 9, 14, 19). They citeuser_mode_runtime::cycle_reading,::receive_requestand::reply(src/lib.rsline 226,src/rendezvous.rsline 108),std_runtime_contract::SLOTS(src/memory_region.rsline 26). They citecurrent_cpu_contract::THREAD_PAGE_SLOTS(src/thread_control_block.rsline 8),file_system_contract(src/rights.rsline 9,src/reboot.rsline 7) andcrates/byte_sink_contract(src/rendezvous.rsline 10). They also citeentropy_contractandcredential_contract(src/lib.rsline 384),inter_process_communication::timer(src/timer.rsline 41),sched::last_cpus(src/survey.rsline 50),console::configure_from_dtb(src/uart.rsline 6), "AGENTS.md rule 7" (src/lib.rsline 227), "claim 11" (src/page_frame.rsline 6,src/address_space.rsline 8), "(19c)" (src/lib.rsline 184). The programspmapandpsappear insrc/memory_region.rsline 52,src/address_space.rsline 28 andsrc/survey.rsline 13. A raw HTML link into the kernel's rustdoc,../user/struct.Spawn.html(src/fault.rsline 3), does not resolve in the crate's own docs, and rustdoc does not check it.src/address_space.rsline 4 citesframe::MAP, a module that does not exist (it ispage_frame). Fix: restate each as a fact about the boundary ("the kernel asserts its own table size equal to this at compile time"; "a runtime wrapper testsx4, neverx1"); delete the HTML link; namepage_frame::MAP. The W^X claim gets its one sentence here instead of a claim number. Effort: M. Door: two-way. -
The virtio contract documents an error that does not exist. Finding:
src/virtio.rsline 19 saysSETUP_QUEUEanswersBadQueue/WrongObject.Errorhas noBadQueue; the kernel maps every transport refusal but a DMA escape toWrongObject(kernel/src/system_call/object_methods.rsline 234). A reader who matches onBadQueuefinds nothing to match. Fix: "WrongObjectwhenqueueis out of range, the block does not fit the region, or the queue was never set up". Effort: S. Door: two-way. -
The crate root understates the register convention. Finding:
src/lib.rsline 6 to 7 sayx0carries the slot,x1the method,x2tox4the arguments andx0the result. The runtime's trap moves six words in both directions (x0tox5,a0toa5).RECEIVEwritesx3andx4. A death delivers a sixth word (src/fault.rsline 26).CONFIGUREreads "argument register 6" (src/thread_control_block.rsline 9), a register the root never admits. The names are aarch64's throughout; the README says "or the architecture's equivalent" and the crate never says what that is beyondSTART(src/thread_control_block.rsline 29) andLIST(src/address_space.rsline 31). The x86_64 names of words 3 to 5 are not verified here. Fix: one table at the crate root: word, aarch64, riscv64, x86_64, meaning on entry, meaning on return; every module doc then says "word 3" or keepsx3with the table to read it by. Effort: S. Door: two-way (documentation of a wire that does not change). -
Three statements contradict the crate. Finding: (a)
src/lib.rsline 184 says of an address space that "nothing can run in it until TCBs arrive", whilethread_control_block::CONFIGUREbinds one and the same paragraph says a thread can take a binding. (b)src/lib.rsline 104 to 109 keepconsole::WRITE"so the ABI's history is legible", a method of an object no kernel serves, with no user in the tree; the tree's rule is that git holds history. (c)README.mdsays "BUGS: None known" while the crate carries five# BUGSsections (src/rendezvous.rsline 20, 46, 71;src/memory_region.rsline 56;src/lib.rsline 247). Two of them are real wire warts (a message word that reads as an error; a death read throughRECEIVE_CAPABILITYloses itspc). Fix: (a) delete the sentence; (b) keep theconsolemodule as reserved (ruled, decision B; done); (c) the README's BUGS section lists the five in one line each. Effort: S. Door: (b) is decision B; the rest two-way. -
Dates and rulings stand in doc comments as history. Finding: 23 dated phrases remain in
src/after the move strips theName:blocks, such assrc/lib.rsline 101 ("the size was set on"),:171("confirmed on"),:307("ruled on") and:357("were ratified on"). Others sit atsrc/memory_region.rsline 11 and:54,src/rendezvous.rsline 82 and:109,src/survey.rsline 19,src/notification.rsline 33,src/reboot.rsline 5,src/object_type.rsline 29,src/cycle_counter.rsline 31,src/timer.rsline 39,src/reply.rsline 7 andsrc/thread_control_block.rsline 43. There are also four "Index exception (date)" comments insrc/lib.rs. Section §267 (A comment states the constraint as it is now) and §298 (A document states what is in force now, and its history is in git) put these in commit messages. The template'shistory phrasesgate reads only markdown today, so nothing refuses them. A stranger reads them as noise. Fix: state each rule in the present tense; where the sentence is provenance, move it into the item'sName:block before the move strips it. Effort: S. Door: two-way. -
The README fails the template's prose gates, and has no badge row. Finding:
prose capsreports a 57-word sentence (the "Methods" bullet) and 28 bold spans per 1,000 words against a cap of 4.passive voicereports 6 passives in 459 words against 2 per 1,000.readme_badgeswants the scaffold's row under the title, with the repository's name. The section order passes. Fix: split the bullet into a table of modules; unbold; rewrite the six sentences; add the row at the move. Reading as a stranger, the README also needs the one sentence item 6's table gives (which register holds what on each architecture) and the linecargo testalready has. Effort: S. Door: two-way. -
The manifest's publish comment points out of the repository. Finding:
Cargo.tomlline 10 says "the allowlist lint holds the exception (crates/publish-allowlist.txt)", a file the new repository will not have. The same finding as milestone 1048 (what an outside maintainer would fix before 0.1.0)'s first item. Fix: "falseuntil the release that publishes; that release deletes the line". Effort: S. Door: two-way. -
The version gate stays behind. Finding:
helpers/format_values_check.py(ABI_CRATE = 'crates/moho_abi/') is the check that a changed or removed public number arrives with anABI_VERSIONbump. It reads nife's diff and will see nothing once the crate has left. The crate's own tests pin every value, and the test's doc claims the list is exhaustive, but nothing counts: 99pub constu64items today against 99 pinned lines, by hand. The template'ssemverjob watches API shape, not values. Fix: carry the rule into the crate. A test readssrc/**/*.rs, counts everypub const NAME: u64andpub const NAME: u32, and fails unless each appears in the pinned lists (the lists then cannot drift). The version half becomes ascript/check in the new repository, or a CHANGELOG rule the pull request template states: a pinned line changes only withABI_VERSION. Effort: M. Door: two-way. -
Two function names break rules a stranger reads as inconsistency. Finding:
futex::admitted(flags) -> bool(src/futex.rsline 16) is a bare participle.design/naming.md("Functions that answer yes or no") wantsis_admitted, and the template'squestion_shape.pyrefuses it at ceiling 0.Error::from_ret(src/lib.rsline 387) abbreviates "return"; the standard library's spelling of the same conversion isTryFrom<i64>, which also gives?and.try_into()for free. Both names are provisional;admittedhas one kernel caller,from_retsix. Fix:is_admitted;impl TryFrom<i64> for Errorwith the current body, andfrom_retdeleted or kept one release as a thin alias (the no-alias rule for old spellings applies before the first release, so delete). Effort: S. Door: two-way. -
The names are not ready for the runbook's first step, and no package exists. Finding:
helpers/name_release.py --draft abilists 148 names: 17 ratified, 24 provisional, 106 with noName:block at all (every method constant ofaddress_space,memory_region,notification,page_frame,timer,usage,rightsand more).notes/crate-move.mdstep 1 needs the architect's ratification before the move. Also,notes/crate-reviews/has no package for this crate to start from. This is the largest gap between the crate and the move. Fix: a lane writes the package (script/crate-review-packet abiplus the naming table, in the shape ofnotes/crate-reviews/socket-contract.md), and marks every unmarked public itemprovisionalso the worklist can see it. The rulings are the architect's, and this review does not list them one by one. The package asks them. Effort: M for the package. Door: each ratified name is one-way once published.