decisions AMENDED

14. The project's direction: a verified-Rust capability microkernel that runs real workloads

(§82 (ambient authority is the problem; replacing the ecosystem, not confining it) moves the end state from confining the existing ecosystem to replacing it; the technical shape recorded here is unchanged. See the amendment at the end.)

Committed 2026-07-23. This is the North Star, recorded because everything downstream (which milestones are on the critical path, what "done" means) now answers to it. It does not replace the learning ethos (CLAUDE.md: understanding over velocity); it gives that learning a destination and settles the forks that were parked because the project was "just learning."

The differentiator, stated precisely

The goal is a verified-Rust capability microkernel: a small, machine-checked trusted core that hosts real, unverified workloads with strong isolation guarantees.

The precision matters, because the obvious phrasing ("a verified capability OS that runs real workloads") is already seL4: verified C, capabilities, running Linux VMs and safety-critical components in real deployments. The edge that is not already taken is verified in Rust. seL4's proof carries the entire safety burden because C gives it nothing; here the language already removes the ~70% memory-safety class and machine-checked proofs cover the security-critical logic on top. A verified-Rust capability kernel that runs real workloads is a live research frontier no shipping OS occupies. The Rust angle is the whole novelty, which is why the existing choices (capabilities, share-not-move, no fork, memory safety as a language property) were the right seed.

The shape that makes "verified" and "real workloads" compatible

They pull opposite ways: "verified" wants a tiny kernel, "real workloads" wants a large system. seL4's resolution, adopted here: verify the small microkernel TCB; run real, unverified workloads in confined userspace on top. What is promised is not "the whole system is proven" but "the trusted core is proven, and it confines everything above it, so a compromised workload cannot escape." The microkernel structure was built for exactly this.

How we verify, and the evidence it is tractable

Kani (bounded model checking for Rust), chosen over an Isabelle/HOL refinement proof (seL4's way, person-decades, not a solo endeavor). The experiment that earned the choice is in the tree: five harnesses in crates/capability prove the capability model's core theorems for every input rather than sampled cases, including "derive never widens rights" and "userspace cannot forge a right" (script/verify, notes/verification.md). It installed and ran in minutes, and the proofs read like the properties they state. That is the green light.

Verification spreads inward from the capability core: the capability logic now, then IPC (the rendezvous and the one-shot reply), then the MMU isolation invariants. Pure-logic crates (§7 (testing)) are the natural frontier because they already compile for the host; the proofs live behind #[cfg(kani)] and never touch an ordinary build. (Milestone 18 (verify the capability core, then spread inward) delivered all three steps. The rendezvous state machine is extracted and proved and the scheduler runs it. The one-shot Reply's mechanism is proved in capability and ipc. The MMU isolation invariants, including the user-VA gate the system calls now call, are proved in paging. See notes/verification.md for what each proof says and what stays on tests.)

What this resolves and what it changes

Calibration, the honest limits

Amendment (2026-08-13): the end state is replacement, not confinement (§82)

This section adopted seL4's resolution, which is to verify a small trusted core and run real, unverified workloads in confined userspace above it. That shape is unchanged and everything above still holds.

What §82 changes is the destination. This section reads as treating the existing C and ambient-authority ecosystem as permanent, with the kernel's job being to build a box strong enough to hold it. §82 records calef's thesis that the box is instead what makes rewriting that ecosystem worth doing, and that LLMs are why the rewrite is affordable now when it defeated KeyKOS, EROS and Coyotos.

The practical difference is how a port is classified. Under this section, running somebody else's program is a demonstration that confinement works. Under §82 it is the product, and the question becomes how narrow a grant it can run under rather than whether it runs at all. §82 also carries the falsification conditions, which this section never stated.