roadmap PARTIAL

820. extensible_host_controller_interface: proven xHCI 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):

What exists, checked 2026-10-07 (UTC)

Reuse: the alternatives were surveyed in #1806's other-implementations.md appendix (looked up 2026-10-07), and none is taken. rust-osdev's xhci 0.9.2 (2023-07, MIT OR Apache-2.0, 108k downloads, no proofs) has the right scope and has been dormant since 2024-09. The first proposal on #1806 was to ask rust-osdev to revive it, and calef ruled no offer, since nife does not depend on it. rcore-os's crab-usb 0.12.1 (Apache-2.0, 28k) lives in the tgoskits monorepo with no proofs found. Redox's xhcid is a daemon whose GitHub mirror is archived. The xHCI 1.2 specification is the reference.

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 at falsifications/ in the partsfoundry/extensible_host_controller_interface repository. The window and handoff rows left with their code for driver_process_contract, which does not publish, so the crate proves 3 of 3.

property harness
A producer ring stays in bounds verification::a_producer_ring_stays_in_bounds
The event ring stays in bounds and flips its cycle bit only at the wrap (EventRing::advance) verification::the_event_ring_stays_in_bounds_and_flips_only_at_the_wrap
The extended-capability walk (regs::find_extended) ends within its hop bound and inside limit for any register contents verification::the_capability_walk_ends_and_stays_inside_the_limit

The two new rows are this lane's reading of the hostile surface: the controller writes the event ring and the capability list. The event ring proof assumes the segment does not run past the end of the address space. The capability walk models the register file as an arbitrary dword per read, which covers every fixed register file. Not proven: event decoding (Event::decode), the context builders and port decoders (context, port). The report words left with the handoff for driver_process_contract.

Release, by #1806's rulings

  1. The name is settled before anything leaves (857's Fork 5 as calef amended it on 2026-10-11 UTC). script/names extensible_host_controller_interface reports it ratified, crates.io answers 404 for it (or it is already ours), and partsfoundry/extensible_host_controller_interface does not exist yet. script/crate-standalone checks the first.
  2. In the tree, script/verify proves the harnesses and Cargo.toml says publish = false.
  3. The package meets Fork 3 of milestone 857 (crates released on their own). cargo package --list shows its harnesses and falsification patches.
  4. Ready means proofs passing and the API stable. Milestone 814 (proven NVMe queue logic) says how each is measured; here the soak is step 5. When the soak exits, calef adds it to the lint-checked publish allowlist. The partsfoundry/extensible_host_controller_interface repository is created when the crate moves, on the shared CI template (milestone 887), through reusable workflows: Kani through kani-github-action, lint, release. Its release workflow refuses to publish unless the proof job is green. No harness here reads target_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.
  5. Soak, as its own repository, until the soak's five end conditions in the runbook hold.
  6. Publish and consume the release by version, by the runbook's publication steps.

Parity

Pure logic, tested on the host. 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 extensible_host_controller_interface fails today, at base ae6b91e79. The manifest and files fail as for all nine crates in milestone 814 (proven NVMe queue logic). Builds and tests on stable for the host and the three bare-metal targets. Stock Kani proves all three harnesses in the copy, and each falsification patch, applied with -p3, turns its harness red. It fails on manifest and files only, plus 12 lines citing this tree: 5 milestone N, 3 §N, 2 naming calef, 1 tree path and 1 provenance block.

script/names reports the name extensible_host_controller_interface ratified (checked 2026-10-25).

Measured again on 2026-10-25 (UTC) with --no-kani: the manifest and files pass, the build passes on all four targets, and the only citations left sit in Name: blocks, which stay until the ratification pass. With Kani, every harness proves and every falsification patch fails its harness.

Review before release

Exit

A check proves it. In nife, cargo tree --locked -i extensible_host_controller_interface resolves to v0.1.x from crates.io with a checksum in Cargo.lock, crates/extensible_host_controller_interface no longer exists, and the tree builds for all three targets. In partsfoundry/extensible_host_controller_interface, 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 5 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 extensible_host_controller_interface 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.

The soak

What remains

  1. The tag v0.1.0, which the release workflow makes when calef dispatches it, and the pin moved to that tag's commit.
  2. The soak, which ends on evidence and not a duration.
  3. The publication of 0.1.0 by trusted publishing, which waits for the architect's approval.
  4. nife consuming the release by semantic version, with Cargo.lock recording its checksum.

BUGS

Follow-on

Index row

nife's xHCI host controller logic, its Kani proofs and their falsification patches, published on crates.io as extensible_host_controller_interface 0.1 from its own nifeos repository instead of being offered to rust-osdev's dormant xhci, then consumed back by nife from that release.