1035. A crate names the version that ran on hardware
(Number provisional until the integrator mints it. The title and slug are drafts.)
Raised by lane/hardware-claim-names-a-crate-version.
Reuse: the bench procedure of milestone 159 (a real hardware entropy source: the JH7110's TRNG),
bench-procedure.md, the boot tour's true_random_number_generator line,
script/board-image, script/board-console and the network boot of milestone 257 (boot radon over
the network). One new helper, helpers/crate_hardware_run.py, reads the transcripts against the
definition below, because no existing tool knows the definition.
Background
jh7110_entropy lives in its own repository, partsfoundry/jh7110_entropy. Its tag v0.3.0-pre.1 names
commit 497d3ec4f0b4d7fc36634dee47d1afd56eb22485, and nife pins exactly that commit, with
version = "0.3.0-pre.1", in three manifests: kernel/Cargo.toml, components/Cargo.toml and
crates/machine_discovery/Cargo.toml. Milestone 1049 (jh7110_entropy is ready to publish) rules
that 0.3.0 is the first version published to crates.io, so the pre-release is the version that can
run first. A version string alone does not name a tree here, since a crate's main can carry a
version it has not tagged; a commit does.
The crate's README has a "Hardware evidence" section. It records two board runs of crate commit
ee0bde8, made by milestone 1049's bare-metal payload, and says that no other commit has run. It
names no version: ee0bde8 sits between the tags, and the payload is not nife's driver. Milestone
159 drove an earlier tree, under nife, on radon.
Version 0.3.0-pre.1 ran in nife's driver on a VisionFive 2 in the radon bench session of 2026-11-17 (UTC), recorded in nifeos/nife#3509. Milestone 159 has the status BUILT. Milestone 818 (proven JH7110 TRNG logic, released on its own) is the release and names no bench step. Milestone 225 (run the soak on radon, argon and xenon) soaks the scheduler, not this driver. Milestone 239 (radon's device tree does not describe the TRNG, so a working driver never runs) concerns the device tree. Milestone 224 (nothing can power-cycle radon) has the status REFUSED, and milestone 257 holds the reason: the maintainers chose manual power, because network boot removed the card and left remote power buying only the hung-board case. So a run of a crate version is a bench session with a person present, as milestone 192 (a keyboard on real silicon) is.
The question: how does the crate earn the right to say that its current version ran on a VisionFive 2, and how does every crate with a hardware claim do the same?
What a hardware run of a crate version is
A hardware run of jh7110_entropy version V is all of these:
- A build of nife comes from a commit whose three manifests pin the crate at the commit of tag
vVand stateversion = "V". Its own pull request bumps a pin and citespartsfoundry/jh7110_entropy@<sha>, so the commit exists onmainbefore the run. - That build boots on a VisionFive 2 by the procedure in
bench-procedure.md, twice. - On each boot the tour's
true_random_number_generatorself-test line isok: the entropy service served both 32-byte draws to a client, and the second draw differs from the first. The line ends with the crate version and commit the build resolved, whichcomponents/build.rsreads fromCargo.lock. - The line's mode note says 256-bit.
- No lockup: the line is not a
FAILEDline, which is where a persistentLFSR_LOCKUPlands. - The first draws of the two boots differ.
It shows that this version's decisions, wired into nife's driver, bring the block up and serve nonzero, changing bytes on that board class. It does not show randomness quality: a TRNG has no known answer, and there is no health test and no NIST SP 800-90B measurement. It does not show any other board, or any version but V.
Who runs it
A person, so needs_person: yes. The board needs its serial console attached and its power switched
by hand, and a hung board needs a person because the maintainers refused remote power. Network boot
spares the card. The maintainers keep the bench rules for the board itself (wiring, outlets)
off-tree; the public procedure is bench-procedure.md. An agent prepares the build at the pin, and
helpers/crate_hardware_run.py judge reads the transcripts against the six conditions above.
Neither the run nor the reading runs in CI, since no runner reaches the board. The steps a person
follows are in bench-steps.md.
Where the evidence lives
nife keeps the log. The run's transcript goes under bench/<board>-<date>/, as milestone 159's runs
do, and the block of the milestone that ran it holds the true_random_number_generator line of each boot with the
nife commit and the crate version.
The crate states a fact, not a story. Its hardware section names the version and the board class, and nothing about dates, people, faults found or earlier names. It does not link nife, because a crate repository stands alone. A later release does not edit the sentence: "0.3.0-pre.1 ran on a VisionFive 2" stays true when 0.3.0 ships, so the README never claims an untested version.
The edit the crate README then makes
The "Hardware evidence" section opens with:
Version 0.3.0-pre.1 has run on a VisionFive 2 (JH7110): it served real TRNG output on two boots with the chip in 256-bit mode, the draws differing within each boot and across the boots. The clock and reset must be ungated and released first, as the first item under BUGS says.
Its "Not established" bullet on other commits then names both trees that ran, 0.3.0-pre.1 and ee0bde8.
The bullet on randomness quality stays. A draft pull request in partsfoundry/jh7110_entropy holds the
edit, unarmed until a run passes.
Which version runs first
0.3.0-pre.1, the tagged pre-release nife's main pins, ran first. The run needed no tag, no
release and no pin bump beyond the one already on main. 0.3.0, the first version crates.io will
carry, cannot run until its tag exists, and its tag waits on the publishing hold. When it exists,
the same steps run at the pull request that bumps nife's pins to it, and the README names 0.3.0 in
place of 0.3.0-pre.1, as option A says.
Options
Ruled: A. The others lost for the reasons given.
- A. The README names the newest version that ran, by board class; nife keeps the log. As above. A stranger reads one sentence that is true for as long as the README exists. Rejected claims cost nothing: a version that never ran is simply not named.
- B. A "tested on" table in the crate repository, one row per run. Each row holds a date and a transcript. A row carries history, which a document here does not hold (ยง298 (a document states what is in force now)), and a transcript from nife's tour pulls nife into a repository that stands alone.
- C. No hardware sentence; host tests and proofs only. The board is the one thing a driver user wants to know about, and the evidence exists.
- D. A runner on the board, so CI attests each version. The best evidence, and not buildable now: the maintainers refused remote power, and a hung board needs a person. It waits on milestone 224's revisit.
Would A still win if all four cost the same? Over B and C, yes. D would win, which is why A lets a CI run later fill the same sentence without changing it.
Prior art
- Linux's
Tested-by:tag (Documentation/process/submitting-patches.rst) records that a person tested a patch "in some environment", and a new version drops the tags when the patch changes substantially. This is A's rule at a finer grain: the claim binds to one version and does not carry forward. - KernelCI runs the kernel on boards in contributed labs; that is D at scale.
- Zephyr's board porting guide asks that each new board target pass a minimum test suite with Twister before upstreaming, and keeps per-board Twister metadata. The claim binds to the board, not to a release.
- The
ssd1306driver crate's README names no board; its example imports an STM32F1 HAL, so a reader infers the tested target rather than reading it. That is the failure A prevents.
The rule for every crate with a hardware claim
The rule generalizes. A crate README states a hardware run only by naming a version that has one, by the definition above adapted to the device. That means nife built at the pin that names the version, booted on the board by its public procedure, with the device's own success line read. It is a gate on that sentence alone, never on publication: a crate publishes on proofs and a stable API, as milestone 818 says, and a release with no run simply makes no hardware claim.
Today's claims under it:
e1000e: "The I219 port has run on real hardware once, with no cable", which names no version. Under the rule it names the version or becomes a limitation.jh7110_clock_and_reset: "None of the bring-up has been confirmed on silicon end to end", already a limitation, and correct.designware_ethernet,designware_mobile_storageandnon_volatile_memory_expressmake no run claim in their READMEs today; one that they make later follows the rule.
The work
- Done; it needed a person. nife's
mainpins the tagv0.3.0-pre.1already. Runbench-steps.mdon a VisionFive 2, commit the transcripts underbench/, and record each boot'strue_random_number_generatorline, the nife commit and the crate version in this block. - In
partsfoundry/jh7110_entropy, after step 1, make the README edit above. - Write the rule into milestone 857 (crates released on their own), beside the release rules, so every crate's review reads it.
- Bring the
e1000esentence under the rule before that crate moves: it names the version that ran, or it becomes a limitation.
Steps 2 to 4 need no board. Step 2 waits for step 1, because the README names a version only once that version has run. Steps 3 and 4 state the rule and do not wait. Step 1 is the only step that needed a person, and it is done. Step 2 has merged.
Done when
- This block holds two
true_random_number_generatorsuccess lines, 256-bit, whose first draws differ, from a nife commit that pinsjh7110_entropy0.3.0-pre.1, andhelpers/crate_hardware_run.py judgeprintsPASSover their transcripts. - The crate README names 0.3.0-pre.1 as run on a VisionFive 2 and carries no limitation about an untested tree.
- Milestone 857 states the rule.
Cost and what cannot be undone
One bench session with a person, about two boots over the network, plus two small edits. Nothing here is one-way: anyone can reword a README sentence, and the rule only narrows what a README may claim, so loosening it later breaks nobody.
Follow-on
-
Done. Step 1: two cold boots of nife
9c394ab715a7on a VisionFive 2 ran 0.3.0-pre.1 at497d3ec, andhelpers/crate_hardware_run.py judgeprintedPASSon every check. The transcripts arebench/radon-2026-11-17/1035-boot-1.logand1035-boot-2.log;bench/radon-2026-11-17/README-1035.mdholds the image hashes and the judge's output. Eachtrue_random_number_generatorline isokwith two differing 32-byte draws in 256-bit mode, and the first draws,625b4bc8and7bb8b233, differ. The tree'smainpinsjh7110_entropyat497d3ec, the commit of tagv0.3.0-pre.1.self-test : true_random_number_generator ok JH7110 TRNG at 0x1600c000 (tree says disabled): report 0x524e475550, STAT 0x00040308 (256-bit: all eight RAND words are the answer), draws 32/32 bytes, first 625b4bc8.., differ true; bring-up 1637 us, 64 bytes in 102 us (627450 bytes/s); crate jh7110_entropy 0.3.0-pre.1 at 497d3ec4f0b4d7fc36634dee47d1afd56eb22485 self-test : true_random_number_generator ok JH7110 TRNG at 0x1600c000 (tree says disabled): report 0x524e475550, STAT 0x00040308 (256-bit: all eight RAND words are the answer), draws 32/32 bytes, first 7bb8b233.., differ true; bring-up 1629 us, 64 bytes in 103 us (616867 bytes/s); crate jh7110_entropy 0.3.0-pre.1 at 497d3ec4f0b4d7fc36634dee47d1afd56eb22485 -
Done. Step 2: the README sentence is on
partsfoundry/jh7110_entropy's main (partsfoundry/jh7110_entropy#25, merge commitdf37dc91383c). -
Done. Step 3: the rule is in milestone 857's extraction checklist,
design/roadmap/0857-crates-released-on-their-own/what-nife-does-at-each-extraction.md. -
Done. Step 4: the
e1000eI219 sentence becomes a limitation, in its own repository's pull request, since no version has run on an I219.
BUGS
- Milestone 159's
bench-procedure.mddescribes the card path and ahw entropyline; the tour prints thetrue_random_number_generatorself-test line now, and the network boot replaces the card.bench-steps.mdhere is current; that page is not. - The README's "Hardware evidence" section carries dates, the person's statements and a run narrative, which option A keeps out of a crate's hardware sentence. The version sentence above goes first; whether the run record below it stays is milestone 1049's to settle.
- The judge cannot tell a cold boot from a warm one. The person states it, and the bench README records their statement.
Index row
A crate's README states a hardware run only for a version that has one. Nife built at the pin that names the version must boot on the board by its public procedure. The first case is jh7110_entropy 0.3.0-pre.1 on a VisionFive 2.