P1: before the tag
An appendix to the milestone.
P1: before the first tag
-
Public names the naming rules refuse, in the engine that leaves. Finding:
LineDiscabbreviates "line discipline", the term the crate name ruling refused as an overclaim, andDiscreads as a disk to a stranger.HISTis not a word and is the one public constant with noName:block, so the worklist cannot see it.pop8carries a digit where the siblingOPERATION_READRAWcarries its eight in prose.Event::Eofkeeps the standard library's spelling (UnexpectedEof) and stays here on that ground. The unit rule (above) reopens the three limits. Evidence:src/line_disc.rslines 16, 21, 23, 27 and 142;src/raw_queue.rslines 15 and 65. Change:LineDiscbecomesLineEditor(a crate that holds a component's logic takes the component's name;rustylineandnolineboth call theirsEditor).HISTbecomesHISTORY_LINES(a count of things names the things).LINE_MAXIMUM,PROMPT_MAXIMUMandRAW_QUEUE_MAXIMUMbecomeMAXIMUM_LINE_BYTES,MAXIMUM_PROMPT_BYTESandMAXIMUM_RAW_QUEUE_BYTES.pop8becomespop_up_to_eightor takes a[u8; 8]return that says it. Nodoc(alias)for the old spellings before the first release, per the rule in force. Door: two-way before the first tag; the milestone's decision 2 decidesLineEditorandHISTORY_LINES, provisionally, and decision 3 decides the limits, provisionally. Effort: S. -
Names the template's day-one gates refuse, in
protoandcomponent, and in parameters. Finding:spelled_out.pyfails at a ceiling of 0 onHANDOFF_VA,ELF_VA(vaabbreviatesvirtual_address) and the parameterdirofcsi_move. The address rule (_VIRTUAL_ADDRESSin every location) also reachesOWN_IMAGE_ADDRESSandDISPLAY_IMAGE_ADDRESS.protoitself is on the spelled-out list (protocol), and the template's word list does not carry it, so the two disagree (unverified why the lint that holds them equal does not fire).OPERATION_INTRCOUNTabbreviates where its twinOPERATION_SUSPEND_COUNTdoes not;CTL_RESUME,CTL_QUITandCTL_HANDOFFabbreviatecontrol;reqabbreviatesrequest;OPERATION_READLINE,OPERATION_READRAWandOPERATION_RAWMODEjoin words thatOPERATION_READ_LINE_BYTESseparates. The private fieldsbuf,cur,hist,escandparams, and the localselen,slen,scur, failabbreviations.py. Evidence:src/component.rslines 7, 143, 148 and 160;src/line_disc.rslines 88, 129 to 145, 480, 605, 615 and 652;src/proto.rslines 23, 171 to 184 and 218. Change: theprotoandcomponentrenames belong to the new contract crate's own worklist after item 2. Listing them here lets the cut lane carry them. The engine's parameter and field spellings (direction,buffer,cursor,history,escape,parameters) land in the same pull request as item 3. Addprototo the template's word list or record why not. Door: two-way (values do not change). Effort: S. -
A stranger cannot read the bindings or the limits without nife's notes, and two limits lack a record. Finding: the crate documentation sends the reader to
notes/line-discipline.mdandnotes/terminal-contract.mdfor the key bindings, and there is no README. TheBUGSsection records the one-row redraw and nothing else. Verified by probe: the editor drops a byte at or above 0x80 without echo, so UTF-8 input vanishes silently.ESC ESC [ A(a Meta-prefixed arrow, or a double Escape) drops the first escape and inserts[Ainto the line. An X10 mouse reportESC [ M b x ydrops the introducer and inserts its three payload bytes, where the comment says mouse noise is harmless. A prompt pastPROMPT_MAXIMUMtruncates silently, as the doc says. Evidence:src/lib.rslines 1 to 20;src/line_disc.rslines 351, 369 and 384 to 385. Change: a README and a crate-documentation section. They carry the bindings table fromnotes/line-discipline.md("What the engine does and leaves out"), the limits with their numbers and aSinkexample with aVec. They also carry aBUGSlist that states ASCII-only input, the one-row redraw, the eight-line history, the Meta prefix and the mouse-report payload. Either swallowESC ESCas one escape and the X10 payload with its introducer, or state the gap. Door: two-way. Effort: S. -
Nothing shows the parser is total: no fuzz target, no proof, no
forbid(unsafe_code). Finding:feedis a byte-at-a-time state machine over input the editor does not trust, with five fixed buffers and an index arithmetic the tests exercise at a few dozen points. The tree's fuzz workspace has 18 targets and none for this crate; the crate has no Kani harness; the crate's roots carry no#![forbid(unsafe_code)]although nounsafeexists, which is the one line the template'sunsafe_scan.pyreads as a promise. Evidence:fuzz/fuzz_targets/(noline_editor_*);src/lib.rsline 20;src/line_disc.rslines 266 to 393 and 521 to 539. Change:#![forbid(unsafe_code)]inlib.rs. Add a cargo-fuzz target that drivesfeed,insert_text,start_line,resume_line,repaintandabandonfrom arbitrary bytes through a countingSinkand assertscur <= len <= MAXIMUM_LINE_BYTESafter every byte. Add a second target overhandoff::Reader::newandrestorefrom arbitrary bytes. Add one Kani harness forcontinue_escapeover any parameter digits and separators, and one fordelete_rangefrom any(a, b, cur, len)inside the bounds. Whether the repository opts into the template's public crash inputs is the maintainer's call after the first campaign, not the lane's. Door: two-way. Effort: M. -
The handoff blob is an identity with no declared version policy. Finding:
MAGIC("LEDT") andLAYOUT(1) are a single-version identity whose reader refuses any other layout, which is the rule milestone 979 (interfaces a peer can check) gives a shared page. by its documentationrestoreleaves a half-written editor on refusal, so the caller discards it. Nothing states that a field-order change bumpsLAYOUT, that the blob is bytes little-endian throughout, or what the blob's upper size bound is (the test asserts under 2 KiB for a full ring;HANDOFF_PAGESis 1). A reader outside the tree has no way to know thatLAYOUTis the version to compare. Evidence:src/handoff.rslines 5 to 8 and 121 to 141;src/handoff/tests.rslines 26 to 33. Change: a documentation section onhandoffthat states the layout (field order, each fieldu32length then bytes, the two words, the ring order), the bound, and the rule that any change to it bumpsLAYOUT. Add a test that pins the byte layout of a small blob by hand, as thepackage_archivetriage did for its header. Then a reordering fails a test rather than a swap. Door:LAYOUT's meaning is one-way once a replacement built elsewhere reads it; the documentation and the test are two-way. The review proposes no new value, so nothing goes to the architect. Effort: S. -
proto::QUIESCEDandhot_swap_contract::QUIESCEDare two definitions of one value. Finding: both are0x5155_4954, each with its own comment, which is the shape rule 7 ofAGENTS.md(anything two binaries must agree on is one definition) exists to refuse. A drift would make a quiesce reply unreadable to one side. Evidence:src/proto.rslines 166 to 167;crates/hot_swap_contract/src/lib.rsline 49. Change: re-export, or aconstassertion that the two are equal until item 2 movesproto. Door: two-way. Effort: S.