815. e1000e: proven Intel e1000e ring logic, released on its own
(From calef's rulings on pull request #1806; the title and slug are drafts. Milestone 813 (a proven FAT crate released on its own) is the shape this follows.)
calef's rulings, quoted from the maintainer comments on #1806 of 2026-10-07 (UTC):
- Policy: "Each publish-ours crate (NVMe, e1000e, the DesignWare pair, the JH7110 pair, xHCI, and
portable_executableonce it carries proofs) is published when ready (proofs passing, API stable), each through its own milestone at its review." His words: "Since the consumer would be other hobby OSes, I think it makes sense to publish them. [...] a nice legacy is a bunch of hobby oses that use its parts." - Crates: "one milestone per crate, minted now, each keeping its tree name (all free on crates.io as of today) [...] Names are ratified now and permanent on first publication." His words: "Yes, one per crate".
- The release rules are forks 1 to 4 and 6 of the same pull request, applied in Release below.
What exists, checked 2026-10-07 (UTC)
partsfoundry/e1000e: 2,151 code lines (3,210 with comments), written by milestone 494 (a driver for the network card a PC actually has), which is PARTIAL. It claims the 82574L that QEMU's-device e1000epresents and the Sunrise Point I219 rows, which is xenon's I219-LM5. Later PCH generations are refused until a bench proves one; the crate'sBUGSsays why.- Three Kani harnesses, each with a falsification patch. A delivered frame always fits the buffer
and the room. Every ring offset is inside the region, and a paged access selects the offset's own
page and register. The harness that the handoff round-trips and accepts only what
packcan make lives withHandoffindriver_process_contract. - Class B in #1806's note
notes/releasable-crates-2026-10-07.md. The cut: inlineaddress_space_layout::pair_page, its one use (src/lib.rs, in the handoff). That function places nife's virtual addresses, so the handoff it serves is nife's spawn ABI; whether the handoff stays in the published crate or moves to the driver is the lane's call, recorded in its pull request. - The crates take plain values, by the ruling in milestone 857 (crates released on their own).
- Cut on 2026-10-25 (UTC) by #2719. The three virtual addresses that
pair_pageplaced moved tocrates/driver_process_contract, which the kernel and the components link, andHandoff, itspackand its harness have since moved there too. - Its consumers:
kernel/src/e1000e.rs(reset, MAC address, ring bases),kernel/src/pci.rs,kernel/src/user/e1000e_service.rs,kernel/src/network_bench.rs, and incomponents/,e1000e_transport.rsandnet_stack.rs(descriptors and tails). - crates.io answers 404 for the name (checked 2026-10-07).
Reuse: the alternatives were surveyed in #1806's other-implementations.md appendix (looked up
2026-10-07), and none is taken, because calef ruled this crate "publish ours". rcore-os's
eth-intel 0.2.4 (MIT, 10.8k downloads, no proofs found) is a young driver inside the tgoskits
monorepo. elliott10's e1000-driver 0.1.0 (2023-02) is GPL-2.0 and drives the older e1000. Redox's
e1000d is a daemon whose GitHub mirror is archived. Linux's e1000e and FreeBSD's em stay the
references for behavior and are read, never copied. No upstream offer goes anywhere, by the ruling
in milestone 814 (proven NVMe queue logic).
What is proven
Each row is a property this crate must prove before it publishes. The harness cell reads as in
milestone 813's table. Each patch is under falsifications/ in that repository. All three prove.
| property | harness |
|---|---|
| A delivered frame always fits the buffer and the room | proofs::a_delivered_frame_always_fits_the_buffer_and_the_room |
| Every ring offset is inside the region | proofs::every_ring_offset_is_inside_the_region |
| A paged PHY access selects the offset's own page and register | platform_controller_hub::physical_layer_device::proofs::a_paged_access_selects_the_offsets_own_page_and_register |
Not proven: the NVM (flash) reads that yield the MAC address and pick a bank, the reset, ULP and PHY workaround sequences (ordered register writes, tested against the simulated device but not model checked), and transmit descriptor status. The NVM read is device-supplied input and is the first candidate for a fifth row.
Release, by #1806's rulings
- The name is settled before anything leaves (857's Fork 5 as calef amended it on 2026-10-11 UTC).
script/names e1000ereports it ratified, crates.io answers 404 for it (or it is already ours), andpartsfoundry/e1000edoes not exist yet.script/crate-standalonechecks the first. - Make the cut above.
cargo tree -p e1000ethen lists no nife crate. - In the tree,
script/verifyproves the harnesses andCargo.tomlsayspublish = false. - The package meets Fork 3 of
milestone 857 (crates released on their own).
cargo package --listshows its harnesses and falsification patches. - Ready means proofs passing and the API stable.
Milestone 814 (proven NVMe queue logic)
says how each is measured; here the soak is step 6. When the soak exits, calef adds it to the
lint-checked publish allowlist. The
partsfoundry/e1000erepository exists since the crate moved, on the shared CI template (milestone 887), through reusable workflows: Kani throughkani-github-action, lint, release. Its release workflow refuses to publish unless the proof job is green. No harness here readstarget_arch, so stock Kani proves them. §218 (carry a Kani patch so riscv64 is proved) applies only if a harness comes to need riscv64. Milestone 589 (Kani can prove riscv64 from the hosts we already have) built it. - Soak, as its own repository, until the soak's five end conditions in the runbook hold.
- Publish and consume the release by version, by the runbook's publication steps.
Parity
Pure logic, tested on the host against a simulated device. This lane built it on 2026-10-07 with
the pinned nightly for aarch64-unknown-none-softfloat, riscv64imac-unknown-none-elf,
x86_64-unknown-none and the host, all exit 0. The release workflow builds the same four.
Standalone, measured 2026-10-11 (UTC)
script/crate-standalone e1000e fails today, at base ae6b91e79. The manifest and files fail as
for all nine crates in
milestone 814 (proven NVMe queue logic).
It does not build alone: address_space_layout is a path dependency outside the copy, so neither
the build nor Kani ran. Release step 2's cut is what fixes that. Beyond manifest and files, 23 lines
cite this tree: 12 milestone N, 5 tree paths, 2 §N, 2 naming calef and 2 provenance blocks.
script/names reports the name e1000e ratified (checked 2026-10-25).
Measured again on 2026-10-25 (UTC) with --no-kani: the manifest and files pass, and the only
citations left sit in Name: blocks, which stay until the ratification pass. address_space_layout is
still a path dependency, so the copy does not build; the second half of the cut removes it.
Measured again after the cut on 2026-10-25 (UTC), with Kani: the manifest has no dependencies, the
crate builds for the host and the three targets on 1.88. Stock Kani proves all three harnesses, and
each falsification patch makes its harness fail. The only failures left are citations in Name:
blocks, which the ratification pass settles.
Review before release
- The public API speaks the device's vocabulary, by the test milestone 813 states. A reviewer judges
this; no script can. Known today:
Handoff, nife's spawn ABI, no longer sits in the crate. The addresses taken fromaddress_space_layoutleft with the cut.
Names a stranger may misread, open before release
design/naming.md's tests and Fork 5 of milestone 857 (names that stand on their own) judge each name. The review package, notes/crate-reviews/e1000e.md, lists the names still open: five ratified before the rule of 2026-11-02 that the architect reopens at the release review, and the ones nobody has ratified.
Exit
A check proves it. In nife, cargo tree --locked -i e1000e resolves to v0.1.x from crates.io with
a checksum in Cargo.lock, crates/e1000e no longer exists, and the tree builds for all three
targets. In partsfoundry/e1000e, the run that published 0.1.0 shows the Kani job green ahead of the
publish job, and every harness's falsification patch makes its proof fail. The five soak criteria of
release step 6 hold before it publishes.
The name check of release step 1 passes first, by Fork 5 of milestone 857. Before the move,
script/crate-standalone e1000e exits 0 in nife, and every row of What is proven names a harness
that stock Kani proves in the copy and whose falsification patch makes it fail. No crate publishes
without the proofs milestone 857 (crates released on their own) requires.
What the crate no longer cites
The crate's source cites nothing of this tree beyond its Name: blocks. This section keeps the
links it carried, by milestone 857's provenance rule.
src/lib.rs, the crate doc: milestone 494 (a driver for the network card a PC actually has) wrote the crate. Its design isnotes/e1000e.md, andnotes/e1000e/the-i219-port.mdsays where the register facts come from.Cargo.toml, the old manifest comment: the crate is a pure-logic crate under §7 (the testing harness), no_std for the kernel andnet_stackand std for host tests.src/descriptor.rs,receive_verdict: trusting no field of the status word answers finding 6 ofnotes/shared-page-audit.md.src/platform_controller_hub/mod.rs,non_volatile_memory.rs,physical_layer_device.rsandsequence.rs, the module docs: each cited milestone 494 andnotes/e1000e/the-i219-port.md, the whole note forplatform_controller_huband its sections "The NVM", "The PHY layer" and "The three passes" for the others. The PHY layer's two divergences now stand inphysical_layer_device.rsitself.src/platform_controller_hub/mod.rs, the first BUGS entry: the run on silicon without a cable is in that note's "BUGS", which links the BUGS ofnotes/e1000e.md.
The soak
- The crate lives in
partsfoundry/e1000e, on the shared template of milestone 887 (crate repositories share one CI template) with its callers pinned atpartsfoundry/crate-workflowse0c1fca.script/apply-settingsapplied the settings there: both rulesets, thecrates-ioenvironment with calef as reviewer, the labels, the team and private vulnerability reporting. The manifest keepspublish = false, and the caller setsallow-unpublishedfor the soak. No tag exists. - nife keeps no copy.
kernel,componentsandsystem_testsdepend onpartsfoundry/e1000ebyrev(§305 (git dependencies are allowed onnifeos/*only, pinned to a landed commit)), at the root commit of itsmain, because no later commit has landed. The verify table, the Kani peaks table and the mutation exclusions no longer list it; the repository's ownproofs / kaniandproofs / falsifyjobs prove the three harnesses. Thedriverspackage no longer lists it as an interface crate. - End condition 1 holds once the repository's
mainis green at the pinned commit. Condition 2 waits on the first weekly run, 3 on a release dry run, 4 on a recorded stranger run, and 5 on its three checks from the tag nife pins. - A bump of the pin is a separate pull request citing the landed commit as
partsfoundry/e1000e@<sha>.
What remains
- The register naming rules, so that
check / standalonepasses (see BUGS). - The tag
v0.1.0, which the release workflow makes when calef dispatches it, and the pin moved to that tag's commit. - The soak, which ends on evidence and not a duration, as in milestone 818 (
jh7110_entropy: proven JH7110 TRNG logic, released on its own). - The publication of 0.1.0 by trusted publishing, which waits for the architect's approval.
- nife consuming the release by semantic version, with
Cargo.lockrecording its checksum.
BUGS
-
check / standaloneinpartsfoundry/e1000efails the template's register naming gate (register_names.py, ceiling 0) on 103 names. They are register offsets without the_REGISTERending, bit constants written as values and not as shifts, addresses without_VIRTUAL_ADDRESSor_PHYSICAL_ADDRESS, and sizes without a unit. Many of them carry ratified names, so the repository'smaincannot go green, and the repository's ruleset cannot merge a pull request, until the architect rules on them. The rest of the gates pass. -
Nobody has installed the
nife-smelterapp onpartsfoundry/e1000e, and the repository holds none of the organization secretsNIFE_SMELTER_APP_ID,NIFE_SMELTER_PRIVATE_KEYandSETTINGS_TOKEN.script/apply-settingsrefused the app (the API wants an organization owner). The release workflow's tag job and the weekly settings-drift job need them, so both wait on calef. -
The mutation census lists 72 missed mutants and no locations, and the exclusions for mutants that cannot differ (an OR of operands that share no bit) did not travel. The first weekly mutation run in
partsfoundry/e1000enames each survivor, and each goes into.github/mutants-exemptsthere with its reason. -
Steps 5 and 6 wait on milestone 887 (one CI template) and on 610's co-change column.
-
Milestone 494 is still PARTIAL, so the API may still move. Semver 0.x allows that; publishing before 494 lands costs only version churn.
-
needs_personisyesbecause the exit includes a publication only calef can approve. Everything before step 7 can start now.
Follow-on
- Outstanding. The register naming ruling, the pin moved to a green commit, the tag
v0.1.0, the soak's end conditions 2 to 5 and the publication. Checked bygh run list -R partsfoundry/e1000e --workflow ci.yml, which showscheckred, andgh api repos/partsfoundry/e1000e/tags, which lists no tag. - Recorded. An organization owner installs the
nife-smelterapp and grants the three secrets; see BUGS above.
Index row
nife's Intel e1000e ring and register logic, with three Kani proofs and their falsification patches,
cut free of nife's address map. It is published on crates.io as e1000e 0.1 from its own nifeos
repository, and nife consumes that release.