notes

RENAME: the two atomicities, the refusals, and our own checks

Name: provisional, minted 2026-10-11 (UTC) by lane/third-ten-longest-notes, after the verb.

An appendix to notes/dir-capability.md, moved there under §212 (a prose budget). The main page keeps the wire and the rights; this is the rest of the verb's design.

The two atomicities, stated apart (DECISIONS §42 (a filesystem declares what it offers))

§42's point is that saying "atomic" and letting the reader assume the stronger one is the mistake POSIX made, so:

What is deliberately not offered, and why each refusal is loud

§42's operative rule is no silent degradation: a verb that is not offered fails loudly and the application decides, and what it must never receive is an unsafe operation wearing a safe one's name.

Two checks that are ours rather than the engine's

RedoxFS's rename_node passes the destination's own type to remove_node, so it never compares the two kinds: it will happily rename a file over a directory. POSIX will not, and §42 says an offered verb means one thing on every backend, so the kind comparison is done at our boundary: file over directory is EISDIR, directory over file is ENOTDIR. A non-empty destination directory is the engine's ENOTEMPTY. Renaming a name onto itself is a successful no-op, which is POSIX's answer and the safe one: the alternative removes the only link and then has nothing left to relink.

Both names go through check_component, so .. means nothing here either.