An operating system learning lab

MakopaOS

A small operating system lab for studying how a computer boots, runs isolated programs and controls access to resources.

Educational kernel and boot examples. This is not a general-purpose desktop operating system.

nasm -Wall -Werror -f bin \
  -o boot.bin boot.asm

python scripts/verify_boot.py boot.bin
Documented commands / BIOS example

Latest verified change · OS041A / PR #22 ↗ · Merged

Verify a component without granting execution

OS041A adds bounded parsing, signatures, exact-byte binding and source inventory checks. A passing report still has admission_authority: false.

Verified · OS041A / PR #22 · 2eb0a6a1edb3

Source checked . Documentation and retained evidence review, not a new runtime test.

Read change evidence ↗

Professional relevance

Useful for reasoning across device interfaces, software integration and validation. The public labs expose those boundaries without claiming physical hardware results.

Explore the engineering background →

Inspect the latest evidence

A passing precheck leaves authority unchanged

  1. Bound and bind the input. Parse fixed records, verify exact lengths and SHA-256 bindings, and reject malformed supporting documents.
  2. Verify the evidence. Check Ed25519 signatures, staged source inventory and the constrained Component Model/WIT profile.
  3. Report without execution. Return deterministic JSON with admission_authority: false. No compilation, instantiation or execution.
FIG 03 / Contract diagram derived from OS041A. Reconstruction, producer, semantic-comparison and containment gates remain open. This is not a runtime capture.

Inspect the pinned contract ↗

In plain terms

Boot a small system and examine how a kernel limits what a running program is allowed to do.

Why it matters

An operating system must decide which program can use which resources. Small, fixed examples make those decisions easier to inspect.

Follow the example, step by step
  1. Start the machine

    A small loader starts the Rust kernel in the QEMU simulator.

  2. Run a fixed example

    Isolated tasks communicate using handles that grant specific permissions.

  3. Inspect the record

    Serial output records the permitted operations and contained faults.

Decision and trade-off

Separate kernel mechanisms from workload policy

Documented approach

The architecture proposal places isolation, IPC and capability checks below replaceable policy and protocol services. The current README separately describes the implemented fixed workload profiles.

Alternative and scope

The proposal excludes model inference, natural-language intent and external agent protocols from the kernel. It also retains the BIOS diagnostic alongside the separate UEFI path rather than claiming a general-purpose OS replacement.

Cost of the choice

A deliberately small trusted core leaves broader services and gateways as future work. The initial model does not claim protection from hostile firmware, physical attacks, side channels or a compromised compiler.

What the evidence establishes

This source is explicitly marked Proposed. It explains direction and limits, not proof that all target services or gateway interfaces have been implemented. No new kernel execution is claimed here.

Read the decision source (opens in a new tab)
Source-backed system map

Boot, isolation and explicit authority

The Rust/UEFI path contains separate fixed workload profiles for isolation, capability-mediated IPC, approval and journaling. The original BIOS boot sector is retained as a separate example; this map is not a claim of a general-purpose OS.

Boot, isolation and explicit authorityRUST / UEFI BOOT PATH: Thin loader and ELF kernel. Validated memory-map handoff. ISOLATED WORKLOADS: Fixed ring-3 task profiles. Typed capability-mediated IPC. APPROVAL / JOURNAL PROFILES: Bounded synthetic effects. Supervisor-readable records. These are selected boundaries, not a sequential execution trace.
Selected documented boundaries, illustrated here; not a runtime screenshot or complete execution trace. Read the diagram source (opens in a new tab)
01

Precheck is separate from execution authority

PR #22 adds a separate locked host workspace for the component-admission precheck. Fixed-record parsers, supporting-document checks, transitive SHA-256 binding, domain-separated key IDs and strict Ed25519 verification constrain the bundle before a deterministic JSON report.

The checker verifies the staged source inventory and a constrained Component Model/WIT boundary. It never compiles, instantiates or executes a component. Target boot, kernel and QEMU paths remain separate from the host dependencies.

OS041A remains in progress. Committed-Git reconstruction, pinned fixture production, contained metadata decoding, semantic graph comparison, compile-only measurements and link/disassembly evidence remain future gates. A pass deliberately retains admission_authority: false; it is not permission to execute.

02

A complete path in one boot sector

The retained BIOS example is a 512-byte educational boot sector written in 16-bit real-mode x86 assembly. It uses BIOS interrupts for direct screen output and boots far enough to print its own MAKOPA message.

03

A kernel with bounded authority

The Rust/UEFI path validates an ELF kernel and memory-map handoff, owns physical frames and recovery address spaces, and contains a fixed ring-3 fault. Separate staged profiles demonstrate cooperative tasks, single-slot IPC, capability attenuation, and one explicitly approved synthetic in-memory effect.

04

Small by design

The documented evidence uses fixed workloads and deterministic serial records in QEMU. These bounded teaching profiles do not establish a general-purpose operating system, physical-hardware qualification, or an external workload gateway.

Continue the engineering story
Engineering history
Source snapshot

Inspect the checked source

Evidence reviewed . Individual decisions and captured examples retain their own source revisions and limitations.

Read the checked README (opens in a new tab)

Technical footprint

Repository-described tools and interfaces, not a proficiency rating.

  • Rust
  • x86 Assembly
  • UEFI / BIOS
  • QEMU