decisions DECIDED

323. The binary interface, and the names of the project's layers

The maintainer raised this on 2026-11-12 (UTC), on the intent that the crates are the product: a library of components from which the project builds several operating systems. Counts come from nifeos/nife@a3c7d4647 and nifeos/basalt@ecdfee7, and each gives its command so a reviewer can take it again at merge. On 2026-11-14 (UTC) the architect ruled question 1, what the layer above a kernel is, and rulings 2 to 6: the capability binary interface's name, the organization, the library, the distribution and the kernels. On 2026-11-15 (UTC) the architect named the organization and the library. This file states those rules and the names still to choose. The appendix, the five layers, holds the inventory, the reversibility of each layer and every candidate name with its checks.

What this decides

Milestone 120 (the rename: the OS becomes nife, and the project gets an organization) chose the names for one system. It named the kernel for the Earth's core, nife, distributions for rocks (basalt), and programs and components for minerals. It kept the organization's name apart from the OS's, so that the distribution and the programs would read as peers of the kernel rather than as its parts. Since 2026-10-03 (UTC) the organization's name, nifeos, carries the kernel's.

The intent now is several operating systems from one library. The plan holds at least four kernels: a capability microkernel (today's), a capability monokernel, an ambient-authority microkernel and an ambient-authority monokernel. Names then sit at five layers:

  1. the organizations (the GitHub organizations nifeos and partsfoundry, with the domains nifeos.org and partsfoundry.org);
  2. the library of components;
  3. binary interfaces;
  4. individual kernels;
  5. distributions (today one, basalt: a manifest that pins each component at a commit, and the workflow that builds and tests the image).

One question came before any name, because it decides which names exist and what each touches: what the layer above a kernel is. The rule follows.

Is the premise true

Mostly. One part of it meets an existing decision.

The rule: the layer above a kernel is its binary interface

Ruled 2026-11-14 (UTC).

Background

A program here targets three things. The compiler builds it for target_os = "nife", it links the std port, and it calls the kernel through the numbers in crates/moho_abi. At spawn, the kernel compares the program's ABI_VERSION with its own and refuses a mismatch.

Some bytes in every image spell the project's name. Every program's capability manifest has the ELF note owner b"nife" (crates/capability_manifest_note, ratified 2026-09-26). The boot slot header reads NIFESLOT and the boot stack magic NIFESTK1. Packages travel as .nifepkg files. §45 (a nife partition is EC5CC08B-D749-4434-AC38-A274C50385BA, and that never changes) fixes the partition type.

With several kernels, each of these belongs either to every kernel that serves one binary interface or to one kernel. The rule puts them all at the binary interface.

What the rule costs and what it gains

The binary interface is the platform a developer targets. A program cannot tell which of its kernels runs it, just as it cannot tell which build of Zircon runs it.

The cost: kernels that serve one binary interface move together. The capability monokernel serves the same system call numbers, object methods, error codes and right bits as the microkernel. A new number goes into both kernels or neither, and one version gate binds them. A kernel that wants a private system call takes a binary interface of its own. The kernels stay free in everything a program cannot observe: where a service runs, how the scheduler works, what the proofs cover.

The gain: one target_os, one published ABI crate and one std port per binary interface. A third-party author writes a getrandom backend or a libc port once per binary interface. A distribution built for a binary interface runs on any kernel that serves it. Kernel names touch only repositories and images, the cheapest names in the project.

A binary interface the project defines, or one it adopts

The project is also exploring compatibility kernels: whether the components, with other code, could build a Linux-compatible kernel, a BSD-compatible kernel or both. Two consequences follow from the rule.

First, an ambient-authority kernel might adopt Linux's binary interface instead of the project defining one. Its programs then target linux, and its ABI crate describes Linux's system calls, so that crate's name says compatibility rather than minting a brand. Starry OS does this: starry-kernel reads Linux's user-space definitions from linux-raw-sys, an existing crate, rather than defining its own. An adopted binary interface mints no target_os, no std port and no ABI brand. The names of a kernel that serves one fall to the kernel and the distribution, the cheap layers.

Second, the capability kernels might gain a Linux personality: a user-space program that serves Linux's calls on top of a capability kernel, as Starnix does on Zircon. A personality changes no kernel's binary interface. It is a component of the library, and takes a component's name.

Licensing, stated as a fact and not as legal advice: implementing Linux's binary interface does not bring in the GPL, and taking Linux code would. gVisor (Apache-2.0), Asterinas (MPL-2.0) and Starry OS (Apache-2.0) each implement it under a license other than the GPL. FreeBSD's Linux layer, sys/compat/linux, carries BSD-2-Clause and BSD-3-Clause headers, so its code can come in under its own license, as a dependency ruling under §46 (thin primitives or whole subsystems). The appendix compatibility kernels holds the prior art for both consequences.

The alternative not taken

The other reading treated the layer above a kernel as a shared design only, the sense in which L4Ka::Pistachio, Fiasco and seL4 belong to the L4 family and the BSDs form one, though none runs the programs of another. Each kernel would then be its own platform, with its own target_os, ABI crate and std port, and every kernel name would cost what a binary interface's name costs. Those outside systems call such a set a family. This project does not use the term.

Prior art

Read for this file unless marked otherwise.

system what a program targets what it shows
Fuchsia and Zircon the Fuchsia System Interface, with API levels and an ABI revision (RFC 0002, platform versioning); the vDSO belongs to it Fuchsia defines the platform apart from the kernel, and Zircon is "the core platform that powers Fuchsia"; the binary interface is the promise
Genode one component API across kernels runs on NOVA, seL4, Fiasco.OC, OKL4, L4Ka::Pistachio, Linux and its own base-hw; since release 16.08 one dynamically linked binary runs on all of them, one binary interface over kernels that share no design
the L4 kernels each kernel's own binary interface Wikipedia's L4 family covers "the L4 kernel interface and its different versions"; V2, X.2 and seL4's diverged, and programs do not move between them: a shared design, not a shared binary interface
Darwin and XNU macos, ios and other target_os values, all on XNU XNU is "the kernel of the Darwin operating system for use in macOS and iOS" (its README); Rust names the platform a program sees, not the kernel
Rust's configuration keys one target_os per target; target_family may repeat (unix, wasm) the Reference calls target_family "a more generic description of a target, such as the family of the operating systems"; a custom target can set it
WASI one specification Wasmtime, WAMR, WasmEdge, wazero and Wasmer implement it, and a program built for it runs on any of them: one binary interface, several implementations
Redox target_os = "redox", ABI crate redox_syscall (library syscall) one kernel, and the ABI crate names the system
Hermit target_os = "hermit", ABI crate hermit-abi the project renamed itself twice (HermitCore, RustyHermit, Hermit); hermit-sys stays on crates.io, marked as renamed; Rust removed the hermitkernel targets in rust-lang/rust#95299
Windows 95 and Windows NT the Win32 API from memory, not read: two kernel designs ran the same Win32 programs, and Microsoft then retired the 9x line rather than keep two kernels
the BSDs freebsd, netbsd, openbsd, dragonfly "BSD" names a shared design and history; their binaries do not run on each other without a compatibility layer (from memory)

The pattern: where a project promised a binary interface (Fuchsia, Genode, WASI, Win32), several implementations sat under it. Where kernels shared only a design (L4, the BSDs), each kernel became its own platform.

Why

The binary interface is the stricter promise, and the asymmetry decides it. The project can drop the promise later: if the capability monokernel needs calls the microkernel will never serve, it takes a binary interface of its own and its own target_os, and nothing built for the first one breaks. It cannot add the promise later: once two kernels each ship numbers the other lacks, programs exist that run on one and not the other, and no ruling makes them compatible again.

The rule also puts the expensive names in the fewest places. The in-binary names, the target_os and the published ABI crate exist once per binary interface rather than once per kernel. It costs more work, since two kernels must keep serving one binary interface, so it does not rest on effort.

The capability binary interface is Moho

Ruled 2026-11-14 (UTC).

The checks, run 2026-11-14 (UTC). On crates.io, moho_abi, moho-abi, moho_sys, moho-sys, moho_sdk and moho-sdk are free, and the bare moho is a game library abandoned in 2017. On GitHub, the user moho exists and holds no repositories. moho.org is registered and offered for sale, and another party holds moho.dev. Moho, the animation software, is well known. Two web searches found no operating system, kernel, ABI or Rust target named Moho. Nobody has yet checked the rustc target list, LLVM or the Linux sources.

What moves, and when. The tree still spells the capability binary interface nife in target_os = "nife", the unknown-nife triples and the std-nife port. Renaming them waits on a separate plan lane, which sets their order. The names inside binaries stay as they are: the ELF note owner nife, section names such as .note.nife.manifest, and magics such as NIFESLOT and NIFESTK1. They fall under the wire-literal exemption, ruled 2026-11-14 (UTC): a marked owner string, section name or magic may spell nife.

The library and its organization are partsfoundry

Ruled 2026-11-14 (UTC) that the organization and the library share one name, and ruled 2026-11-15 (UTC) that the name is partsfoundry (Parts Foundry).

Building and deploying the website is the step still waiting, before the first crates.io publish. The rulings rename nothing else.

The checks, run 2026-11-15 (UTC). partsfoundry and its variants (parts_foundry, parts-foundry, partfoundry) are free on crates.io and on GitHub, and free as .org, .io and .net domains. .dev is free by RDAP. partsfoundry.com has an owner since 2022 and sits parked. No company, product or mark named exactly Parts Foundry turned up, though nobody searched a trademark register. Metal-casting suppliers crowd the web results, and a search for "parts foundry rust" lands on the Ethereum Foundry toolkit. The appendix lists the candidates that lost and why.

basalt stays the distribution for Moho

Ruled 2026-11-14 (UTC).

Each kernel has a name of its own

Ruled 2026-11-14 (UTC).

The six rulings

All six are ruled, hardest to change first.

  1. What the layer above a kernel is. Ruled 2026-11-14 (UTC): its binary interface, which carries target_os, the ABI crate and the in-binary names.
  2. The capability binary interface's name. Ruled 2026-11-14 (UTC): Moho, with the ABI crate moho_abi, and nife stays the capability microkernel's name. The ambient-authority binary interface's name is still to choose.
  3. The organizations. Ruled 2026-11-14 (UTC): the organization stays nifeos until the library takes a name. Ruled 2026-11-15 (UTC): the library's name is partsfoundry, with the domain partsfoundry.org. Ruled 2026-11-24 (UTC): nifeos stays and keeps nife, basalt and Moho, and the library crates move to a new, separate organization, partsfoundry. Ruled 2026-11-25 (UTC): the design record and the website stay in nifeos. Keeping nifeos keeps every image's domain valid and leaves no old organization name for others to claim.
  4. The library. Ruled 2026-11-14 (UTC): the library and its organization share one name, the domain is that name plus .org, and the page-contract crates take no common prefix. Ruled 2026-11-15 (UTC): the name is partsfoundry (Parts Foundry). The checks and the candidates that lost are in the appendix.
  5. Distributions. Ruled 2026-11-14 (UTC): basalt stays, for the Moho binary interface, and picks the kernel per image. An ambient-authority distribution takes its name later.
  6. Individual kernels. Ruled 2026-11-14 (UTC): each kernel has a name of its own, nife stays the capability microkernel's, and the others take theirs when they exist.

The names still to choose

Each of these is chosen before it is first published, with its availability checked first. Three names stay open.

What waits on these rulings