A boathouse for pull requests. Naust keeps bays busy: a bay is a complete yggdrasil workspace under bays/<name>/ in the workspace naust is cloned into, made and reset by ws bay.
Naust brings a pull request into a bay, for the component and any nested components it touches, and runs the mechanical part of a review there. The bay is left warm: checked out, built, tested and booted, so the human who reviews starts where the machine stopped.
A Terasology example:
- fetch the PR
- build
- compile every module
- run the relevant tests on the PR and on its base
- boot the game both headlessly and windowed (if possible and needed)
- take a screenshot if sensible
- check the tree is clean
- leave a report in the bay, on Discord and on the PR
A human then reviews the bay, play-tests the change (if needed) and decides. Naust never merges.
The name is Norse. A naust (Old Norse naust, still the word in Norwegian and Icelandic) is a boathouse: the shed at the shore where a boat is hauled up between voyages, kept dry and ready to launch again. The bays are its berths, and a pull request is a boat that spends a while in one.
Design of record: realm-siliconsaga/docs/plans/2026-10-08-naust-pr-bays-design.md.
Naust is a component of the workspace whose bays it fills: cloned at components/naust/, it uses that workspace's bays/, its .env and its active realm, and nothing outside it. The realm's naust adapter wires commands.run to it, so ws run naust <command> is the way to call it, from any directory, with no PATH change beyond the one ws already has; ws run naust bay list, ws run naust tick. The script itself is components/naust/bin/naust, and naust <command> with components/naust/bin on your PATH is the same thing; this page spells it naust for brevity. Once it runs, naust finds its workspace from its own location, never from the current directory.
Nothing runs unasked. A job starts because an operator at the keyboard runs naust dock, or because someone the realm lists has called the PR into this naust by name, in a review on the PR: @agent-refr haul it in. naust tick is one pass of the unattended loop and it exits. naust watch runs a tick every few minutes in a terminal you keep open, from the moment you start it until you press Ctrl-C, and an operating system scheduler can call naust tick instead. A tick lists the watched repository's open PRs, reads the reviews of any that has seen activity since it last looked, queues each one that has been called in, then runs at most one queued job in a free bay. A second tick arriving while a job runs finds the lock and leaves.
What a job does and which commands it uses for a given project is a profile in the realm (realms/<realm>/naust/<profile>.yaml), beside the list of who may call a PR in (naust/trust.yaml); how a component's workspace is provisioned and reset is the adapter's provision: block. Naust itself knows only that a bay is a yggdrasil workspace and drives it through ws bay exec.
- Put
NAUST_GITHUB_TOKENin the workspace's.env: the machine account's fine-grained token, pull-requests: write on the watched repository, never a personal token.NAUST_DISCORD_WEBHOOKbeside it is optional; without it the Discord notice is skipped and said so in the log. Copynaust.example.yamltobays/.naust/naust.yaml, list the profiles to watch, and setaccount:to the machine account's login: calls are addressed to it, reports post as it, and a tick refuses a token that belongs to anyone else. naust bay add bay-1 --profile terasology(tens of minutes:ws bay addclones the workspace, the realm and the component with its module set, then naust warms the shared Gradle cache underbays/.naust/gradle-home). Add a second bay so one can hold a finished job for a human while the other works.- Open a terminal at the workspace root and run
naust watchwhen the machine is ready for jobs: the ticks and their jobs log into that window, and Ctrl-C stops it when you want the machine back. A job needs a logged-in, unlocked desktop for its game window, which is what a terminal you started yourself has. The alternative is to schedulenaust tickevery few minutes, as the logged-on user for the same reason: on Windows a Task Scheduler entry with/IT, on Linux a systemd timer, on macOS a launchd agent, each callingbin/naust tickby full path.
Everything below runs from the workspace root, after the setup above, with no watch running yet so you can follow each step.
- Make a bay.
naust bay add bay-1 --profile terasology. This clones yggdrasil intobays/bay-1/, clones and trusts the realm there, and clones the profile's component,terasology, which is the engine; no--withis needed, the profile names it. The engine checkout carriesgroovyw, and the adapter'sprovision.initrunsgroovyw module init omegain it to fetch the Omega module set intomodules/as nested repositories. Every module this workspace's own engine checkout already holds is copied from there instead of fetched, so a parent on the full Omega set makes that step a local copy; the realm's Terasology helpers say how to keep it that way. Then naust builds once to warmbays/.naust/gradle-home, compiles every module, and resets the bay to clean.naust bay listnames the bay asprovisioningfrom the first second; the clone, the warm-up and the hooks write tobays/bay-1/.outputs/bay.log, sows bay log bay-1 --followfrom any other terminal shows where it is. When it is done,naust bay listshowsbay-1 free terasology. - Dock an engine PR by hand.
naust dock terasology 5400reads the PR's head, claimsbay-1and runs the steps there and then, logging each to the terminal and printing the report at the end. Your command is the vouch, so nobody on GitHub is asked, and nothing is posted to the PR unless you add--comment; the job stops if the head moves before it runs. Expect tens of minutes the first time. When it returns,naust bay listshowsbay-1 ready terasology MovingBlocks__Terasology-5400-<sha>. - Review it. The report is at
bays/bay-1/.outputs/naust/MovingBlocks__Terasology-5400-<sha>/report.md, with the logs, the JUnit files, the screenshot and the headless log beside it; that file is the complete report. Its first 1,500 bytes and the screenshot went to Discord, if a webhook is set, and nothing went to the PR, since step 2 did not say--comment. The engine checkout inbays/bay-1/components/terasologysits on branchcr/5400, built:ws bay exec bay-1 run terasologyfrom the root plays it with the bay's checkout as the game's home directory, orcdthere andgradlew game. Decide on GitHub. The bay staysreadyuntilnaust bay release bay-1orbay.ready_ttl_dayspasses. - An engine PR with a module PR.
naust dock terasology 5400 --with terasology/modules/Health#12checks the module's PR out in the bay beside the engine's, builds and boots the pair, and reports on both; your command vouches for both.--withnames a change request to read alongside, never a component to add: the modules are already in the bay from provisioning, and the target is any nested path the Terasology adapter resolves, with the PR number after#. - A module PR on its own. Not a job in Phase 1: a job starts from a PR on the profile's repository, the engine. For now, in a free bay,
ws bay exec bay-1 checkout terasology/modules/Health --cr 12fetches it over the base engine for you to build and play by hand; naust writes no report. Running a module PR, or an engine change with several module PRs, as one job is the linked-PR work in the design's Phase 3. - Let it run.
naust watchin a terminal you leave open. Every five minutes a tick looks for calls: a review on an open PR saying @agent-refr haul it in, from a login the realm'strust.yamllists, brings that PR into a free bay, and the report goes back to the PR as a comment from the same account. The commit the review was given on is the one that runs; a push after it needs a new call. Addbay-2so one bay can hold a finished job for you while the other works.
naust watch [--every 2m]— a tick every five minutes, or every--every, in the terminal in front of you, each tick's lines as they happen and a line saying when the next look is; the same lines go tobays/.naust/state/watch.log, for anyone following from elsewhere. Ctrl-C stops it at once. Between ticks that ends the loop and nothing else; during a job it kills the job, releases the tick's lock and puts the bay back tofree, since the next job resets its bay before touching it, and the killed job's PR is not called in again until younaust dockit. A Gradle daemon or game window the job had open may outlive it; close the window by hand.naust bay list— every bay naust knows, its state (free busy ready held broken), its profile, its job, the seconds it has been in that state, and the seconds since its log was last written (-before any).ws bay listis the workspace's own view, the bays as directories with their realm and components, and knows nothing of states.ws bay log <name> [--follow]— the bay's log,bays/<name>/.outputs/bay.log: everyws bayadd and reset, naust's own step lines, and the output of the warm-up and the hooks. A job's step logs stay beside its report under.outputs/naust/<job>/.naust dock terasology 5400 [--with terasology/modules/Health#12] [--bay bay-2] [--comment] [--queue]— bring a PR into a bay now, ahead of anything queued, and print its report. Your command is the vouch, for the PR and for any--withtarget, since only an operator at the keyboard can give it; the report stays in the bay and on your terminal unless--commentsends it to the PR as well.--queueleaves the job for the next tick instead, as does a tick already running a job. The head read at dock time is the one that runs, and a head that moved by then stops at checkout.- A
readybay holds a finished job until younaust bay release <name>it orbay.ready_ttl_dayspasses. Open the bay's.outputs/naust/<job>/report.md, play it withws bay exec <name> run terasology, decide on GitHub. naust bay reset <name>puts a bay back to base by hand;--deepalso drops Gradle outputs. Abrokenbay needs that after you fix whatever the tick log names. A job whose base branch would not build or test in the bay marks itbrokenand posts nothing, since that is the bay's fault and not the PR's;baseline.login the job directory says what went wrong.naust report render <jobdir>re-renders a report;naust notify say <text>tests the webhook.
A PR runs on the host the moment Gradle configures it, so nothing runs unasked. The realm's naust/trust.yaml lists under forges each GitHub login that may call a PR in, paired with the machine account their own naust posts as. A call is a review on the PR whose text says the realm's phrase addressed to this naust's account, @agent-refr haul it in; a review aimed at another account is for another boathouse, and the bare phrase is for nobody. GitHub records which commit a review was given on, and that is the only commit the call admits; a push after it needs a new call, and the job itself stops at checkout if the head it fetched is not the one it was given. Approvals are a verdict on the code, not a request to run it, and labels cannot say which commit they meant: neither is read. An operator at the keyboard needs none of this: naust dock is its own vouch.
The machine account's token reaches gh only in naust's own process and for the report step's two ws review calls; the job unsets it before anything the PR controls runs. The filesystem is not a boundary on this tier: a bay sits under the workspace whose .env holds the operator's own tokens. The gate is the boundary, and the container tier is the fix.
ws test naust runs the bats suite with the workspace-vendored bats; ws lint naust runs shellcheck. Everything external (gh, curl, Gradle, the parent's ws and the bay's) is a stub in tests; only temporary git repositories are real.