Stable Branch Handoff

HANDOFF.md — microkernel_0.1_stable

Date: April 18, 2026 · Phase: 17.5 → 18

The "Black Screen of Life" is solved. Higher-Half kernel boots in QEMU. Pure in-kernel Rust driver renders full-screen 32-bit ARGB blue gradient to Limine Framebuffer. Tuxedo tranny tool purged and replaced by pure Rust tooling.

AI Workflow & Token Optimization Rules

Architectural Context

Phase 28a: The Zero-Copy GUI Handoff

Userland graphics stack deferred until "ship orbital compositor" command. Execution sequence:

  1. PDX Message: Kernel packages framebuffer metadata into lock-free MessageType::DisplayPrimaryFramebuffer.
  2. Hardware-Enforced Handover: Kernel revokes own write access, uses Intel PKU (pkey_set) to grant exclusive zero-copy access to sexdisplay PD.

Roadmap: COSMIC Compositor Integration

macOS M1/M2 Build Commandments

export RUSTFLAGS="-C linker=lld"
RUSTC_BOOTSTRAP=1 cargo build --target x86_64-sex.json -Z build-std=core,alloc -p sex-kernel --release

Phase Roadmap

PhaseMilestoneMechanismStatus
18.6Serial DebuggingUART 0x3F8Complete
18.7Hardware IsolationIntel PKU (MPK)Complete
19.5Framebuffer ClaimMidnight Blue + PDX prepComplete
20.0Zero-Copy Handoversexdisplay ELF + PKU grantIn Progress
21.0WindowingOrbital (SAS Surfaces)Queued
22.0Desktop EnvironmentCOSMIC (Smithay Port)Roadmap