roadmap PARTIAL

1071. entropy_contract: what an outside maintainer would fix before 0.1.0

Raised by a read-only review of crates/entropy_contract as a stranger to this tree would meet it, made before the crate's move to partsfoundry/entropy_contract. It changes nothing; it lists what the next lanes change, in nife before the move where the runbook puts a finding against the crate itself, and in the new repository after it.

The review took its accepted baseline from the review package and raises none of the decisions it settles. Those are the crate name, the identity (INTERFACE_ID 12, VERSION 1, no magic), the thirteen names ratified on #3480 and the six earlier ones, #![forbid(unsafe_code)], the four harnesses, the dual license, publish = false through the soak, and the move itself. No later rule in design/naming.md contradicts any ratified name. Every quantity ends in its unit, the rules spell out every abbreviation they list, and fill_with takes std's shape.

Reuse: the template partsfoundry/crate-workflows, Kani, cargo-mutants and the crate's own harnesses.

Goal

A stranger who finds entropy_contract can tell in one screen what the two words on the wire mean. The same stranger can follow the README alone to a build, the tests, the proofs and one falsification, and meets no sentence in the README or the documentation that the code contradicts. The request builder does what its documentation says for every byte count. The repository's check and proofs runs are green on the first push for the crate's own reasons.

What was checked, and how

The tools run, the sources read and what was not run are in the appendix.

Prior art

The comparison with nearby work is in the prior art appendix.

Finding status

One line per finding, in the review's order. Pull requests are in nifeos/nife unless named otherwise; entropy_contract#N is partsfoundry/entropy_contract. Line numbers in the review are in crates/entropy_contract/ at cf1328af.

Decisions

Decisions 1, 3 and 4 are the maintainer's, two-way, and stay provisional until the release review rechecks every name. Decision 2 is the architect's. Item 6 is decision 2.

Decision 1: What to call the step that refuses a repeated first draw

Ruled by the maintainer, provisional; landed in #3531. The readiness step 0x12 keeps the name STEP_FIRST_ALL_SAME. It pairs with STEP_FIRST_ALL_ZERO. STEP_FIRST_ALL_EQUAL and STEP_FIRST_REPEATED were the other options. The architect ruled on 2026-11-11 (UTC) that the step exists: readiness refuses a first draw of eight or more bytes that are all one value.

Decision 2: What the contract says a service does

Ruled by the architect, 2026-11-14 (UTC); landed in #3573 and #3616. The contract states what a service does:

The crate's request_is_well_formed says whether a request word is well formed, so the three service loops share one check; the name is provisional. Prior art: Linux getrandom(2) rejects an unknown flag with EINVAL (drivers/char/random.c), the restrictive form. Virtio takes the other form: a driver ignores and never accepts a reserved feature bit, and a device ignores the reserved flags and fields of an indirect descriptor (the virtio specification's feature-bit and packed-virtqueue sections). This crate has no error channel, so the nearest honest answer is NO_ENTROPY. Example: a client sends request(1, 8) | (1 << 20) and reads NO_ENTROPY.

Decision 3: What to call the refusal type and the reply builder

Ruled by the maintainer, provisional; landed in #3558. Refusal, NoService, ShortReply and reply keep their names. Refusal is the tree's word for a refused call.

Decision 4: Whether a release build refuses an out-of-range opcode or step

Ruled by the maintainer, provisional; landed in partsfoundry/entropy_contract#5. request and bring_up_failure return a Result and refuse a value past one byte in every build, where they had panicked in a debug build and accepted it in a release build. The restrictive form, since a later release can loosen it and cannot tighten it. The error types OperationOutOfRange and StepOutOfRange carry provisional names. nife's callers already use the Result form.

The pre-release tag

Ruled by the architect, 2026-11-19 (UTC): the repository takes the tag v0.1.0-pre.1 once the release workflow's dry run is green on main; nothing publishes. The manifest reads 0.1.0-pre.1 (partsfoundry/entropy_contract#8), and main at partsfoundry/entropy_contract@5c9f8eb carries every finding's fix. The dry run and the tag are the maintainer's, and the pin bump follows the tag.

Open decisions

None. Every finding and decision has landed or has a ruling; nothing in this milestone waits on a question to the architect. The first publication waits for the publishing hold, which lifts only when every outside-review milestone has delivered, and nobody asks it crate by crate.

Done when

The checks are in the done-when appendix. Every check holds on the repository's main.

Where this stands

Every finding, the four decisions, the move and the stranger run are Done (see the finding status). check and proofs are green on partsfoundry/entropy_contract@5c9f8eb, and mutation and weekly on the commit before it. Two steps remain, in order: the tag v0.1.0-pre.1 on main after a green release dry run, then a nife pull request that moves every entropy_contract pin from partsfoundry/entropy_contract@7e800fd to the tagged commit. Publishing stays under the publishing hold.

Follow-on

BUGS

Index row

An outside review of entropy_contract before its move. Every finding and the four decisions have landed, the crate has moved and the repository holds its own stranger run. The pre-release tag has its ruling, then the pin bump follows. The maintainer's names stay provisional until the release review.