Generators
What writes the mailrooms and the manifest, and how --check turns them into gates.
scripts/generators/ holds every writer in this repository. Nothing under it is edited by
hand, and each one carries a --check mode that writes nothing and exits non-zero on a
fault. npm run check runs both check modes.
floor-mailroom.jsonl
Creates the mailroom on any floor that lacks one, and validates every row on the floors
that have one. Because a mailroom is append-only, the generator creates and never
rewrites unless --force says so. That is what makes --check meaningful: a re-run
produces no diff, so any diff is a real change.
It checks four things a hand-written log gets wrong:
manifest.jsonl
Rebuilds the manifest from the floors on disk. --check fails when the committed
manifest no longer describes the tree — the exact staleness a hand-maintained list
acquires without anything disagreeing with it.
Paths
Both generators resolve the repository root from their own file location and from nothing
else. No environment variable participates, which is the point rather than an omission: a
variable naming a different checkout than the one the code was loaded from is a bug that
appears only in a worktree. rel() is the only way a path is printed, so an absolute path
never reaches a committed file.