P0: blocks the move or any publish
An appendix to the milestone.
P0: blocks the move or any publish
-
The crate does not stand alone, and the documentation that explains it does not travel. Finding: there is no README, no
LICENSE-MITorLICENSE-APACHE, norust-version. The manifest inheritslicenseandlintsfrom the workspace, and itspublish = falsecomment points atcrates/publish-allowlist.txt, a file that will not exist in the new repository. The crate root documentation sends the reader to notes/abi.md, notes/sink-protocol.md ("the module note", twice), §16 (object revocation: reclaim the objects a process built), §242 (a system log), milestones 613 and 956,file_system_contract,line_editor::proto,file_system_fixture,cargo xtask std-srcand two files underfixtures/src/. It also names the architect in fourName:blocks. The reasons for the shape (register-only rather than a shared page;SENDrather thanCALL; no per-write error; what the protocol deliberately does not carry) live only in the note. A stranger holding the published crate cannot learn why the contract has its shape, and the template'sstandalonegate refuses every one of those references. Evidence:crates/byte_sink_contract/Cargo.tomllines 5 to 6, 8 to 13, 16 to 17, 20 to 26.src/lib.rslines 4, 8, 10 to 11, 15 to 16, 22, 26, 32, 35, 58, 61, 66, 153 to 158, 162, 248, 278 to 281, 285, 291, 297. Also thestandalonefindings above, and the twolint_externalized_crateshits (line_editorat line 16,b"nife"at line 360). Change: copy the scaffold (README with the template's section order, both license files,CHANGELOG.md,_typos.toml,deny.toml,.github/). Writelicense,rust-versionand the three lints as literals. Delete thepublishline in the release that publishes, and until then give it a comment a stranger can act on. Strip theName:blocks (ruled for every moved crate). Rewrite the crate root documentation as the specification. It carries the wire table and the two shape decisions with their reasons. It carries theGoneversusNoSinksplit with std's mapping (BrokenPipeversusUnsupported) as the worked example. It also lists what the contract does not carry, in the crate's own words with no path into this tree. Rename the test string at line 360. Door: two-way (the license is already ruled). Effort: M. -
The
VERSIONdocumentation specifies a bind-time wire check that does not exist and cannot exist in this shape. Finding: the comment says a writerCALLsOPERATION_VERSIONand binds only when its own version is in the served set. No such opcode exists in this crate or anywhere in the tree. Proposal 1000 (message contracts carry bind-time version checks), not started, reserves opcode 0 for it "where the protocol leaves it free", and this contract gives opcode 0 toOPERATION_BYTES. A sink isSEND-only by the contract's own first paragraph, so there is nothing a writer couldCALL, and the one receiver that would answer is a pipe's ordinary reader. The check that does exist today is static: the program'sINTERFACESnote carries (6, 1), andinterfaces_notesays the progenitor compares only the system call ABI's entry at spawn and carries the others. An outside implementer who trusts the comment reserves opcode 0 for a version reply and collides with every bytes message. Evidence:src/lib.rslines 19 to 27 (the comment) and 46 (opcode 0 taken);crates/interfaces_note/src/lib.rslines 4 to 7;design/roadmap/1000-*.mdline 23. Change: the comment states what is true: a program's note declares the pair (INTERFACE_ID,VERSION). The contract has no wire operation for versions and, being one-way, cannot have one without a reply. A framing change bumpsVERSION, and a sink that serves two versions does so by accepting both framings, which is what "serves N and N-1" means for a stream. Whether a wire version operation is ever added is decision A, decided provisionally: none. Door: two-way, decision A. Effort: S.