naming

Naming programs, scripts and directories

Name: ratified 2026-10-18 (calef, convention-rulings Rule 3).

An appendix to design/naming.md, which states the rules. It holds the reasons behind the spelling per domain, the program conventions, script/ against helpers/, and directories.

Spelling, per domain

Domain Form Because
Crates, programs, modules snake_case Rust's own convention
script/ and helpers/ entry points hyphens shell commands are hyphenated everywhere (apt-get, pkg-config), and an underscore in a command reads as a mistake
Ordinary markdown (notes/, design/) hyphens file names become URL slugs, where a hyphen separates words and an underscore joins them
Repo-root markdown SCREAMING_SNAKE_CASE GitHub recognizes README.md, SECURITY.md and CONTRIBUTING.md by name and links them in its UI
A directory holding a Rust package exactly the package's name the directory and the package are one thing
Any other directory hyphens if it needs two words a directory is a path element, and paths are hyphenated outside this repository

The splits fall across domains, on a property that does not change: a file either is a Cargo target or is an executable in script/. There is no second tier within a domain. A name whose shape a reader already knows keeps it, so supply-chain keeps its hyphen.

Programs

A component is the shippable unit: one binary in components/src/, one [[bin]] in components/Cargo.toml, one entry in the initial ramdisk archive. A service is what a component offers, and a contract is the wire protocol it offers it over. "Server" is a fine role word (redoxfs_server serves the filesystem service).

Two suffixes carry a category

Scripts

Two directories, split by audience.

A script that does one action takes a verb: claim, bench, fmt, record-ruling, vendor-verify, toolchain-bump. A standing tool or role takes a noun: board-boot-watcher, merge-queue-rebaser, project-metrics. A gate ends in -check.

Every script/ entry needs a row in nifeos/nife:notes/scripts.md. script/lint fails without one, and fails the other way if README.md names a script that does not exist.

Directories