roadmap PARTIAL

817. designware_mobile_storage: a proven DesignWare SD and eMMC host, 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, because calef ruled this crate "publish ours". rcore-os's dwmmc-host 0.4.2 (Apache-2.0, 1.7k downloads) and starfive-jh7110-dwmmc 0.1.8 (911) live in the tgoskits monorepo with no proofs found. drivercraft's sdmmc 0.1.0 (11k) is a general SD/MMC crate with no proofs found. embedded-sdmmc is SD over SPI plus FAT, another scope, and its project bans AI-generated contributions. The crate adapts OpenBSD's dwmmc.c (ISC; it keeps the notice) and takes only the order of its addressing commands from sdmmc_mem.c. It reads Linux's dw_mmc (GPL-2.0) and never copies it. 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 at crates/designware_mobile_storage/falsifications/. Stock Kani proves all 8 properties in the tree, measured 2026-11-02 (UTC).

property harness
The scratch range never touches a partition or sector zero proofs::the_scratch_range_never_touches_a_partition_or_sector_zero
A FIFO step never overruns the FIFO or the buffer proofs::a_queue_step_never_overruns_the_queue_or_the_buffer
An admitted range is inside the card and the address proofs::an_admitted_range_is_inside_the_card_and_the_address
An IDMAC chain describes exactly its bytes, inside the region proofs::a_chain_describes_its_bytes_inside_the_region
The MBR parse (partition::MasterBootRecord::parse) is total, accepts exactly the signed sectors, and reads each entry from its own bytes proofs::the_master_boot_record_parse_is_total_and_reads_each_entry_from_its_own_bytes
A register field (card::extract_bits) never exceeds its width proofs::a_register_field_never_exceeds_its_width
The CSD decoders (card::CardSpecificData) are total for any register and size a card without overflow proofs::a_card_specific_data_decode_is_total_and_never_overflows
The EXT_CSD sector count (card::extended_card_specific_data_sectors) is total for any bytes proofs::an_extended_card_specific_data_sector_count_is_total

The last four rows are this lane's reading of the hostile surface: a stranger's SD card supplies its partition table and its registers. The MBR parse does not know the card's size, so that every entry lies inside the card is the caller's check, not a property of the parse. The served-block row left with serve on 2026-10-25: its harness is designware_mobile_storage::proofs::a_served_block_never_leaves_its_window in crates/driver_process_contract. Not proven: the card bring-up state machine (sd, command), timing, and the CID decode, which names the card and sizes nothing.

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 designware_mobile_storage reports it ratified, crates.io answers 404 for it (or it is already ours), and partsfoundry/designware_mobile_storage does not exist yet. script/crate-standalone checks the first.
  2. Make the cut above. cargo tree -p designware_mobile_storage then lists no nife crate, and the tests read only fixtures inside the package.
  3. In the tree, script/verify proves the harnesses and Cargo.toml says publish = false.
  4. The package meets Fork 3 of milestone 857 (crates released on their own). cargo package --list shows its harnesses and falsification patches.
  5. 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/designware_mobile_storage 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.
  6. Soak, as its own repository, until the soak's five end conditions in the runbook hold.
  7. Publish and consume the release by version, by the runbook's publication steps.

Parity

Pure logic, tested on the host against a simulated controller. 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 designware_mobile_storage 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, file_system_contract and device_tree_blob are path dependencies outside the copy, so neither the build nor Kani ran. A test reads ../../device_tree_blob/tests/fixtures/qemu-riscv64-virt.dtb. Beyond manifest and files, 14 lines cite this tree: 5 milestone N, 4 tree paths, 2 §N, 2 provenance blocks and 1 naming calef.

script/names reports the name designware_mobile_storage 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, file_system_contract and device_tree_blob are still path dependencies, so the copy does not build; the second half of the cut removes them.

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 4 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

Names a stranger may misread, open before release

design/naming.md's tests and 857's Fork 5 judge each name. The lines below list the names that read as something other than clear or a term, as of 2026-10-26 (UTC), copied as they stand. Each stays open until a ruling keeps or changes it. The tree keeps no record of a release-track crate's names (ruled 2026-10-26 UTC), so this list is the open work, and the lane that renames a name drops its line.

Nife's own plan

Belongs to something else

Generic

Exit

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

BUGS

Follow-on

Index row

nife's Synopsys DesignWare Mobile Storage host driver for SD cards and eMMC, with eight Kani proofs and their falsification patches, cut free of nife's device tree, block protocol and address map. It is published on crates.io as designware_mobile_storage 0.1 from its own nifeos repository.