Oath

A Linux distribution: the Linux kernel and its own userspace, PID 1 included. The machine is a catalog of typed objects at /oath, and one command, oath, reads and changes it. People and AI agents use it the same way, and oath undo puts back what an apply changed.

Pre-alphax86-64, UEFIDownloadManualSource

Goals

An AI agent can run the machine. A new operating system has no forum answers and no training data, so the running machine has to explain itself. /oath/INDEX.md is generated from the live catalog: the verbs, the kinds of object on this machine and the safety rules. An agent that has never seen Oath reads it, or connects with ssh -T home@host oath mcp and gets the verbs that read and change the catalog as tools. Its changes go through sudo and into the same log as the owner's. The acceptance test gives a model nothing but that server and a task.

One catalog, one command. Everything you administer is an object with a typed schema: host:local, svc:sshd, pkg:curl. oath set writes what you want, oath diff shows how it differs from what is applied, and oath apply makes it so. There are no files in /etc to edit and no unit files. Unix is the substrate, not the admin interface.

An apply can be undone. oath apply checks every object before it touches the machine, and a refusal changes nothing. An apply that changes configuration then snapshots the root filesystem to a btrfs generation and converges. oath undo puts back what the last apply changed. A change that could cut off SSH goes on probation: PID 1 reverts it after 180 seconds unless it is kept from a new session.

Independent, and built from source. Oath is not a remix of Debian, Arch, NixOS, Alpine or Ubuntu. PID 1, the catalog, oath, the boot loader and the installer are written for Oath, in Rust. Every other package, the kernel, GCC and glibc among them, is built from pinned source by an Oath plan or is the vendor's own release pinned by sha256. No package comes from another distribution, and rebuilds are bit-identical.

Open to inspection. The current pack of every package Oath publishes is listed at store.oath.moonlight.pm with its licence, the plan that built it and the source that plan pins, so the origin alone can rebuild any of them. A recipe is published as its plan alone. A package from another project, such as Sola's, is a pack there, with its source in that project. Sources are checked against their upstream signatures where the package names one.

Small on purpose. Oath ships one C compiler, one C library and one GNU tool for each job. Four accounts, root, home, work for servers and void for daemons, and no /usr. The machine belongs to one person.

Install

The desk release de2f84abd128 of 12 November 2026, as a disk image for a USB stick: oath-desk-de2f84abd128.img.xz (1.3 GB), with its SHA-256 and its signature. It is the system the stick runs and the system oath install copies onto the disk you name, which it erases.

It needs an x86-64 PC with UEFI and Secure Boot off, a USB stick of 16 GB or more, and wired Ethernet: no Wi-Fi client ships. The desk runs on NVIDIA GeForce GTX 16 and RTX 20 cards and newer, with NVIDIA's driver, and on AMD's Pitcairn cards (Radeon HD 7850 and 7870, R9 270, R7 370), the one AMD chip Oath carries firmware for. Intel graphics, newer AMD cards and older NVIDIA cards are not supported yet.

Check it and write it to the stick, on Linux (on macOS or Windows, a tool that writes disk images, such as balenaEtcher, takes the .xz as it is):

sha256sum -c oath-desk-de2f84abd128.img.xz.sha256
echo 'oath@buccina ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH+YKD3yXYsGJMxwpBIWSYP7VuQvjhzGG+LWvYhKTESD' > allowed_signers
ssh-keygen -Y verify -f allowed_signers -I oath@buccina -n oath-image \
  -s oath-desk-de2f84abd128.img.xz.sig < oath-desk-de2f84abd128.img.xz
xzcat oath-desk-de2f84abd128.img.xz | sudo dd of=/dev/sdX bs=4M oflag=direct status=progress   # sdX: the stick

Start the PC from the stick: its firmware's boot menu (F12, F11 or Esc; hold Option on a Mac), then the stick's UEFI entry. The desk starts signed in as home, with no password. Open the terminal from Sola's launcher and install:

oath install                              # the disks: node, size, model, serial
sudo oath install /dev/nvme0n1            # what it would erase and write; writes nothing
sudo oath install /dev/nvme0n1 --confirm  # erase that disk and install
sudo poweroff                             # then remove the stick and start the PC

The installed machine is named oath, has no password and takes no SSH logins until you add a key. oath password sets one. Then get Claude Code, which each machine builds from Anthropic's signed release, and let it read the machine:

sudo oath build plan:claude-code          # fetches ~240 MB from downloads.claude.ai
sudo oath set pkg:claude-code present=true
sudo oath apply pkg:claude-code
claude                                    # sign in, then ask it to run `oath` and read the index

The machine updates itself: oath update says what the newest release would change, and sudo oath update --confirm --reboot moves to it. The manual has the rest.

The catalog

A machine is a set of objects. Each has an id, kind:name, a desired state that you write and an actual state that the machine reports. There are nine kinds. The counts are from a fresh QEMU machine running the desk release 3e66f344ba09 on 10 November 2026, before the session below.

KindOne object isCount
hostThe machine itself: hostname, timezone, environment, power state, package origins.host:local1
svcA process PID 1 supervises: its command, user, restart policy and the services it wants up first.svc:sshd · svc:time · svc:pipewire23
pkgA package tree in the store, named by its hash and linked into /bin and /lib.pkg:curl · pkg:gcc · pkg:mesa168
planA build pinned by hash. oath build runs it in a sandbox with no network.plan:claude-code5
snapA btrfs generation of the root filesystem, taken by each apply that changes configuration.snap:current1
netThe network link, by DHCP or a static address.net:net01
sshThe keys that may log in as home.ssh:local1
devA device found in sysfs: a disk by its bus path, a network card, a serial port.dev:net0 · dev:ttyS0 · dev:disk-pci-0000.00.06.04
cellOne project's own software, run only in a cell: stored apart, never linked into /bin or /lib, from no origin and never published.0

What works today

PID 1
Runs only applied svc specs, each in its own cgroup with its own log. Restarts a failing service with backoff, then marks it failed with a reason. Restarts a service when an apply moves the package its program comes from. Stops services in reverse order at shutdown, loads kernel modules by modalias, and survives its own panic.
oath
ls schema get set new add rm diff apply keep undo update verify reap audit log logs fmt build store publish install password desk wake mcp, each with --json except fmt and mcp. A failure names the next step to take.
Agents
oath mcp over SSH: the verbs as tools, set and new split by kind, none for fmt, store, publish, install, password, desk or wake; the INDEX as instructions; --read-only for an agent that only looks. The apply log records which agent made each change.
Generations
A btrfs snapshot before every apply that changes configuration. oath undo repeats to go further back. The boot menu keeps the last five boots.
Packages
A store addressed by hash, /bin and /lib link farms, a needs graph, origins tried in order, oath store for a tree built outside a plan, and oath verify at every boot; an apply fetches a tree again that is missing or that a check found damaged. sudo oath add <name> installs a package by name at its newest signed head, with each package it needs that the machine lacks; oath ls --origin lists what the origins hold. A package whose licence forbids redistribution ships as a recipe that the machine builds itself.
Cells
cell:<name> holds one project's own software: stored apart, never linked into /bin or /lib, from no origin and never published. cell run, from pkg:cell, which is in no profile, starts it in a box that sees only the packages it runs with.
Plans
Builds in a sandbox with no network and its own PID namespace, cached by plan and inputs. Every package Oath builds is a plan product: the kernel, the toolchain and Oath's own binaries. The desk adds Sola's packages, which Sola builds and the profile pins by hash.
Toolchain
GCC, binutils and glibc built from source, bootstrapped once by the build host and then rebuilt by themselves. bash and the GNU userland; zsh is the login shell.
Kernel and boot
Linux from kernel.org, pinned by sha256 and built as a plan. oath-efi is the only boot loader, and the initrd runs Oath's PID 1.
Network and SSH
net0 by DHCP or a static address with its DNS servers, time from pool.ntp.org, OpenSSH for SSH as home with root login refused, the network daemons dropped to the unprivileged void, and dig. An apply of host:local power=sleep suspends the machine to RAM and returns when it wakes: on a USB or PS/2 keyboard or mouse, the power button or, with net:net0.wake, a Wake-on-LAN magic packet, which oath wake <mac> sends from another Oath machine.
Install
A disk image of the desk release to write to a USB stick, signed by the build host; cargo make install over SSH to a named disk, or to a USB stick; from a stick booted on the machine, oath install lists the disks and copies the system onto the one you name, with home in its own subvolume. Each machine updates itself: oath update takes the newest output its build host signed, without wiping it.
Testing
cargo make check boots one QEMU machine per case and reboots for real. --target runs the hardware cases on an installed machine and undoes each one. --agent gives a real model five administration tasks.
Desk
Optional: a desktop. rivulet, a C port of the River compositor on wlroots, runs the shell, terminal, Projects, browser and Design of Sola, with Mesa's RADV or NVIDIA's driver for Vulkan and PipeWire for sound. The desk profile pins Sola's other apps as well.

The manual covers each of these in detail.

A session

Recorded on a fresh QEMU machine of the desk release 3e66f344ba09 on 10 November 2026, with the oath-tel telemetry lines left out. The first set is refused because sometimes is not a restart policy the kind allows, and nothing is written. The apply takes generation 1 before it changes the service; the undo returns to the generation before it, and the log records both.

$ sudo oath set svc:time restart=sometimessvc:time: unknown variant `sometimes`, expected one of `never`, `always`, `on-failure` (setting restart)hint: oath schema svc$ sudo oath set svc:time restart=on-failure$ oath diffsvc:time  restart: "always" -> "on-failure"$ sudo oath applyCreate readonly snapshot of '/oath/run/fs/@' in '/oath/run/fs/@gen-1'applied generation 1 (svc:time)$ sudo oath undoundid to generation 0$ oath diffin-sync$ oath log -n 2{"actor":{"tty":"/dev/pts/0","uid":0},"error":null,"generation":1,"ids":["svc:time"],"parent_generation":0,"result":"ok","time":"2026-11-10T19:02:50Z"}{"actor":{"tty":"/dev/pts/0","uid":0},"error":null,"generation":0,"ids":["undo:1"],"parent_generation":1,"result":"ok","time":"2026-11-10T19:02:50Z"}

What an agent reads first

oath with no arguments prints /oath/INDEX.md, which is generated from the live catalog. This is that QEMU machine's.

# Oath You are on **Oath**. Do not assume Debian, Arch, NixOS, Alpine, or Ubuntu. Do **not** edit `/etc` or random files. Use `oath`. ## Verbs     oath                 this INDEX (the file is /oath/INDEX.md)    oath ls              list objects  (optional --kind)    oath ls --origin [word]  what the origins hold; `*` is here    oath add <name>...   install by name, with what it needs (`oath new pkg:<name>`                         with no fields makes them without applying)    oath schema [kind]   kinds, or one kind's schema + prose    oath get <id>        desired + actual    oath set <id> k=v    write desired only (checked against the kind's type)    oath new <id> k=v    create a svc, pkg or cell (runs after apply)    oath rm <id>         remove a svc, pkg or cell (after apply)    oath diff [id]       drift    oath apply [id...]   check, snapshot, then converge    oath keep            keep an apply on probation (from a new SSH session)    oath undo            put back the spec the last apply changed, and converge    oath verify          hash present package and cell trees again against                         their pins    oath audit [pkg:x]   the daily security audit's findings for what is here    oath reap            what is on disk that no package prescribes;                         `sudo oath reap --confirm` removes it (each boot does)    oath update          what the newest output for this machine, and each                         package's newest signed head (R81), would change;                         `sudo oath update --confirm [--reboot]` moves to them    oath log             apply log    oath logs [id]       output of svc:<name>, net:net0, a plan's last build                         (plan:<name>), or PID 1 (no id)    oath fmt <path>      canonical plan.plan    oath build           isolated plan build (no /bin link; log in /oath/log/plan/)    oath store pkg:<name>|cell:<name> <dir|tar>                         put a tree built elsewhere into the store and print                         its hash; `oath set pkg:<name> hash=…` pins it    oath mcp             these verbs as an MCP server on stdin/stdout                         (ssh -T home@<host> oath mcp)    oath password        set, change or remove home's password                         (`--status`: is one set, auto-login, the seat)    oath desk [stop]     give the seat (tty1) back to the desk, or end the                         desk and give it to the console (a shell as home) `--json` prints the same facts as JSON. `oath --help` for flags. ## Recipes These packages are not in the image: their licences do not allow redistribution, or (coding agents) the machine takes the vendor's own build. Each is a plan that fetches the vendor's file and builds the package on this machine. - `pkg:antigravity-cli` Antigravity CLI: Google's coding agent for the terminal. `sudo oath build plan:antigravity-cli`, then `sudo oath set pkg:antigravity-cli present=true` and `sudo oath apply pkg:antigravity-cli`.- `pkg:claude-code` Claude Code: Anthropic's agentic coding tool for the terminal. `sudo oath build plan:claude-code`, then `sudo oath set pkg:claude-code present=true` and `sudo oath apply pkg:claude-code`.- `pkg:codex` Codex: OpenAI's coding agent for the terminal. `sudo oath build plan:codex`, then `sudo oath set pkg:codex present=true` and `sudo oath apply pkg:codex`.- `pkg:grok-build` Grok Build: xAI's coding agent for the terminal. `sudo oath build plan:grok-build`, then `sudo oath set pkg:grok-build present=true` and `sudo oath apply pkg:grok-build`.- `pkg:nvidia` NVIDIA's driver (R34): its closed kernel modules, built on the machine against pkg:linux-build, its GL, EGL, Vulkan, GBM and CUDA libraries (and their 32-bit ones), and nvidia-smi. For a machine with an NVIDIA card: `oath build plan:nvidia`, then present. `sudo oath build plan:nvidia`, then `sudo oath set pkg:nvidia present=true` and `sudo oath apply pkg:nvidia`.- `pkg:steam` Steam's launcher, in a sandbox with the paths Steam assumes; it installs the client in ~/.local/share/Steam. `sudo oath build plan:steam`, then `sudo oath set pkg:steam present=true` and `sudo oath apply pkg:steam`. ## Kinds here - `cell` — one project's software, run only in a cell (never linked or published)  (`oath schema cell`)- `dev` — a hardware device (inventory)  (`oath schema dev`)- `host` — this machine (hostname, power, env, timezone, mounts)  (`oath schema host`)- `net` — a network link (net0, dhcp or static)  (`oath schema net`)- `pkg` — a package (store + /bin links)  (`oath schema pkg`)- `plan` — a build plan (hash-pinned file; oath build)  (`oath schema plan`)- `snap` — btrfs generations (apply / undo)  (`oath schema snap`)- `ssh` — owner SSH public keys (login as home)  (`oath schema ssh`)- `svc` — a process PID 1 supervises  (`oath schema svc`) ## Safety `oath apply` checks everything first (a refusal changes nothing), thentakes a filesystem snapshot. Halt, reboot and changes that can cut offSSH need `--confirm`. Do **not** pass `--confirm` unless the owner asked for thatclass of change. A change that can cut off SSH then goes on probation:PID 1 undoes it after 180 s (`--probation <secs>`), or at the nextboot, unless `sudo oath keep` runs in an SSH session opened after theapply. Nothing else applies while it is open. ## Where you are Serial is **root** (break-glass). SSH is **home** (`HOME=/home`);`sudo` has no password. `home` has none either until `oath password`sets one (`svc:login` keeps its hash, root's alone): the console asksfor it when `host:local.autologin` is false, and so does a desk's lockscreen; SSH (keys only) and `sudo` never do. The catalog lives at `/oath`. `/home` is the`home` account's directory. There is no `/usr`; helpers are`/lib/oath`. `oath new` makes a `svc`, `pkg` or `cell`; `oath rm` removes one. Both, like`set`, only change the spec: nothing happens until `oath apply`, and`oath undo` takes back the last apply. Changes that can cut off SSH(sshd, `ssh:local` keys, `net:net0`, a new `pkg:openssh` hash) need`--confirm`. A service restarts when an apply moves the package itsprogram comes from. Updates come from the origins (`host:local.origins`): a build hostpublishes each output it checked, signed, and `oath update` takes thenewest for `host:local.profile` when a key in `host:local.publishers`signed it. It moves every package in one generation and writes thekernel and initrd for the next boot; the boot before stays in the menu.PID 1 re-executes into the output's at once, every service running(R73), unless `--reboot` boots it.A package published on its own has a head on the origins(`pkg/<name>.json`, R72): `oath update` moves each package to the newesthead a key may sign for that name (a `names="…"` list before a key scopesit), re-pointing a need only when the package still finds every libraryit loads. `oath publish pkg:<name>` puts this machine's pin up as its head.

Status

Oath is pre-alpha. You can install the desk release from its disk image, or build it from source and install it over SSH. As of 12 November 2026 the current releases, base 5e5545e361d2 and desk de2f84abd128, pass every test case that runs in QEMU: 74 on base, 79 on desk. No installed machine runs them yet, and the hardware cases have not run on either release; the image has not yet started a desk on a real NVIDIA card. Not there yet:

The work under way is in CURRENT.md, the decisions behind it in docs/decisions.md, and what each part can do in docs/capabilities.md.

Building

You need an x86-64 Linux build host with Rust, curl, mkfs.btrfs, unshare, the compilers that build stage 0 of the toolchain, and QEMU with its UEFI firmware. Where Nix is installed, cargo make takes the compilers from pkgs/bootstrap.nix and QEMU from image/host.nix. An Oath machine on the desk profile has the compilers in /bin; sudo oath add qemu adds QEMU with pkg:libslirp, which it needs. Past that, cargo make needs sudo only to write a disk on the build host (install --usb, install --local, cargo make esp). The first toolchain build takes an hour or more.

git clone https://github.com/moonlight-pm/oath
cd oath
cargo make bootstrap    # the toolchain, once
cargo make pkgs         # every package in pkgs/, each a sandboxed plan
cargo make build        # the base image
cargo make check        # the QEMU test cases
cargo make run          # boot it, with the serial console in this terminal

Installing wipes the target disk: from the build host over SSH, or with oath install from an Oath stick booted on the machine; the manual has the steps.