naming

Vocabulary

An appendix to design/naming.md, which states the rules. It holds the test each word sets, the stems the tree keeps, and examples of choosing a word.

Words with one meaning here

Word Means Test it sets
half one side of a two-way split a branch of a split with three or more is an arm, part, piece or leg; script/lint refuses a count above two before "halves"
cpu the unit the scheduler runs a thread on, one hardware thread as Linux and POSIX count them core means the physical core and never a cpu; a GPU or other device processor takes its own name (gpu); a devicetree cpus node and RISC-V hart in RISC-V-only code keep their owners' words
identity the string a client presents (alice) the identity string names a principal's subtree, per ยง117 (a principal's subtree is named by its identity string)
principal the authenticated actor that results, holding a fresh capability set login turns an identity into a principal; one word for both would lose the difference login performs
user a person user mode is user_mode_ (user_mode_runtime)
keeper holds something alive and restarts nothing supervisor restarts what faults; caretaker serves narrowed access
sink the end of a stream nobody reads further name a program for a terminus only if no capability grant could end it
grant authority a program receives (FileGrant) what a program asks for is a declaration (FileGrantDeclaration); not every Spec is one, so RunSpec is ParsedInvocation
contract an agreement between two programs the _contract crate suffix; a type that selects which agreement applies may say so (StartupContract)
right a permission carried on a capability: held, delegated, and only narrowed (moho_abi::rights, a directory's rights, a grant) access that belongs to an object, a page or a file mode is a permission; ruled 2026-11-22 (UTC)
permission access attached to an object, a page or a file mode (page-table bits, a Unix mode, PermissionDenied) what a capability carries is a right, so a capability's "permission" is loose usage
option a letter or word on a command line, as POSIX says a flag is a bit, so options, never flags
nife the project lowercase everywhere, prose included

A terminus that is structural, or merely current

Ask whether the name claims an end of stream that the design guarantees, or one that only reflects what nobody has built yet. audit_sink discarded each login record because printing it needed a capability nobody had granted. One grant would have made it keep records, and its name would then lie, so it is login_audit_receiver: true today, and true when it records.

file_sink passes the test. Its client holds a capability over which no message but append is expressible, and no grant could change that. byte_sink_contract names what it carries, and terminal_sink_caretaker hands out a sink that cannot read.

Stems the tree keeps

Choosing a word