Skip to content
moonlight-pmPublic

About

Oath — a new Linux distribution.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Oath

A new Linux distribution: the Linux kernel and our own userspace. Not a remix of Debian, Arch, NixOS, Alpine or Ubuntu.

Independence. Simplicity. Openness. Courage.

The sysadmin is an AI agent. A new OS has no Stack Overflow and no training data, so the running system has to teach a model that has never seen it. Unix is the substrate. The admin interface is not bash folklore and not a chatbot in PID 1.

License: MIT. LICENSE. Copyright (c) Joshua Kifer.

What it is

A small number of typed objects in a live catalog at /oath. One command, oath, is how humans and agents inspect and change them. PID 1 is ours; its only service config is svc objects. Apply snapshots the root to a btrfs generation first, so a change can be undone.

An agent that has never seen Oath should be able to:

  1. Read /oath/INDEX.md (or run oath).
  2. oath ls · oath schema host · oath get host:local
  3. oath set host:local hostname=… · oath diff · oath apply
  4. Reboot; the name is still there. oath undo goes back a generation.

Kinds: host, svc, snap, pkg, net, ssh, dev, plan.

Status (2026-10-23)

Early and not a daily driver. A review on 2026-10-13 cut the desk, the Steam and Omarchy experiments and the Wicket host image out of the core and set the order of work: a test harness, catalog safety, PID 1, then a native base where every package is built from source by an Oath plan or is the vendor's own pinned release.

What is true today:

  • PID 1, the catalog, oath, the package store and the installer are ours, in Rust, statically linked against glibc.
  • The kernel is vanilla kernel.org source, pinned by sha256, and every other package in the image (glibc, bash and the GNU userland, util-linux, iproute2, dhcpcd, chrony, btrfs-progs, OpenSSH, curl, vim, kexec-tools, firmware) is built from pinned source in pkgs/ by our own GCC on glibc, and rebuilds bit-identically. Programs load their libraries through a /lib link farm. That GCC and glibc are plan products too and rebuild themselves. The boot loader is oath-efi.
  • The Oath binaries are pkg:oath, built from this tree in the same sandbox by the vendor's Rust release (pkg:rust, pinned by sha256), and rebuild bit-identically too.
  • An agent connects with ssh -T home@<host> oath mcp: the verbs as MCP tools, the INDEX as instructions, writes through sudo and in the apply log like the owner's. cargo make check --agent tests that against a real model that has never seen Oath.
  • The desk came back on 2026-10-18 as the optional desk profile (R19–R22): rivulet on wlroots, Mesa (radeonsi, and RADV for Vulkan), PipeWire, and Sola's session and apps, which Sola builds and publishes itself and the profile pins by hash (R28). The Mac Pro runs it.
  • Still compiled by the build host: stage 0 of the toolchain, and the build tool oath-make. QEMU and its UEFI firmware come from Nix to run images on the build host. None of that ships.

Focus: CURRENT.md. Decisions: docs/decisions.md. Maturity: docs/capabilities.md. Manual: docs/manual/. Contributor and agent guide: AGENTS.md.

Build

Needs Rust (for oath-make), Nix (for stage 0's host compilers, and QEMU) and mkfs.btrfs. Details: docs/manual/build.md.

cargo test
cargo make bootstrap             # the toolchain, once (an hour or more)
cargo make pkgs                  # every package in pkgs/ (the kernel too), from source
cargo make build                 # headless base image
cargo make check                 # the QEMU harness
cargo make run                   # serial console in this terminal
cargo make up | start | ssh | stop

Install to a machine (wipes the disk; needs the target's SSH):

cargo make install --target user@host --disk /dev/sda --hostname name \
  --overlay hosts/name.json --confirm

Publish the newest checked output, signed (R38), and move an installed machine to it without wiping it, on that machine:

cargo make publish
sudo oath update --confirm --reboot

Repo

crates/oath-core   catalog, kinds, apply/undo, seed profiles
crates/oath        the oath CLI
crates/oath-init   PID 1, serial login, sudo
crates/oath-efi    UEFI boot menu
crates/oath-make   host build tool (cargo make)
pkgs/              every package that ships: pinned sources, build.sh, lock.json
image/             kernel build, host.nix (QEMU for the build host)
check/             harness cases for cargo make check
hosts/             per-machine facts and install overlays
docs/              decisions, capabilities, roadmap, specs, manual
site/              oath.moonlight.pm (the manual is docs/manual)

About

Oath — a new Linux distribution.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages