roadmap

Stage 7: directories, rename and long-name creation

Appendix to 813. file_allocation_table. It records what stage 7 built and the evidence.

What stage 7 built

No nife type appears in a public signature.

The evidence

check result
Kani, two new harnesses every_numbered_alias_carries_its_number covers every name up to the alias bound and every number from 1 to 999,999: eleven legal bytes, one to six base bytes, and the digits read back as the number (three minutes). the_run_finder_returns_the_first_run_of_free_slots covers every sequence of six slots and runs of one to three: nothing used inside the run, the run begins after a used slot or at the start, and no run means no end marker and a used slot in every window
falsification a finder that forgets a used slot, and a tail written with its digits reversed; each turns its harness red at its own assertion
unit tests run placement across gaps, aliases from ~1 to ~999999, collisions and reuse of a freed alias, directories with dot entries, removal only when empty, a failed make that gives its cluster back, renames that keep the bytes, .. rewritten on a move, refusals for moves into itself and for dots and the label, stale entries, case-only renames
oracle tests on FAT12, FAT16 and FAT32 volumes rust-fatfs formatted: fifteen names with one alias base, a 255-unit name, non-ASCII names, nested directories, files moved across directories and a directory moved with its contents, then everything removed. rust-fatfs lists the same tree and fsck.fat -n accepts the volume at each stage. On FAT32 with 512-byte clusters above cluster 65535, directories keep their high half through make and move, and a new directory in a four-sector cluster over stale bytes reads empty
mutation the ledger rules on the survivors that tests cannot kill: two gaps (the 65,536-entry ceiling, since killed by a_directory_stops_growing_at_65536_entries) and three equivalents (search-bound arithmetic and a disjoint-bit OR)

Names minted

Ratified 2026-11-01 (UTC): Volume::create_directory, remove_directory and rename, the WriteError variants above, and the module directory_writer. create_file keeps its name and widens its names.