The display ladder (recorded 2026-07-28, calef's direction)
The stated destination: eventually, something like COSMIC driving a GPU for display. That decomposes into rungs, each independently a demo. The decomposition is what makes the ambition honest. COSMIC's shape is Rust clients rendering into shared buffers, a compositor compositing them to scanout, everything message-passing. nife already has shared frames and endpoints, so the architecture is aligned even where the drivers are mountains.
Status (2026-07-30): rungs one and two are built, and rung one's deferred VT engine now is too.
Rung one shipped its contract and its pixels, and rung two shipped whole. Milestone 29's remaining
increment closed the gap with a bitmap font, a sans-IO VT engine, a display terminal that is a
client
at both seams, and a confined virtio keyboard (DECISIONS §37 (text), notes/glyphs.md). All are on
both ISAs, with the pictures verified from the host as well as the guest. cargo xtask proves three
pictures over one boot, in order. The text check's negative control is a screen with one letter
changed. Rung three is the next step. It is where the parked competitor question
(competitor-question.md) has to be
answered on purpose.
-
Rung one: milestone 29 (promoted from optional). Built: a confined userspace virtio-gpu driver (
display), a client that draws (painter), and the framebuffer contract between them (crates/gfx_proto, notes/framebuffer-contract.md, DECISIONS §29). The framebuffer is a bigger grant and never an exemption. The pixels are proved in the guest by two witnesses in two address spaces and from the host by comparing QEMU'sscreendumpagainst the pattern definition.Its deferred half is built too (2026-07-30, DECISIONS §37, notes/glyphs.md): a public-domain 7x8 bitmap font, a sans-IO VT engine, a display terminal, and a virtio keyboard. The deferral's premise held exactly as written. The contract carries pixels, not text, so the terminal arrived as another client and neither
gfx_protonordisplaychanged a line. The same binary then demonstrated this a second time by being a compositor client withwindow's authority. The VT engine's language is still an open choice. notes/glyphs.md prices libghostty-vt against a built Rust engine rather than against an estimate.Its font increment is blocked, and the blocker is not graphical (2026-08-19).
design/decisions/0100-the-terminal-font.mdchose gohufont-14 at 8x14, which on this rung's 128x64 scanout is a 16x4 grid rather than a terminal, so the surface has to grow with it. It cannot. APageFramecapability names one page and occupies one of sixteen capability-table slots. The driver holds nine already, and the ceiling is nine frames of surface against the 469 that 800x600 needs. That isnotes/frames.md's recorded fork arriving with a bill attached. It has to be answered before this rung's text gets any better. The pixel-for-pixel verification, the VT engine, the terminal and the keyboard are all unaffected and all still built. -
Rung two: a compositor component (milestone 33). Built, both ISAs.
compositormultiplexes one screen among three mutually distrusting clients, each holding a capability to its own surface. Software composition honors a damage rectangle. Input is routed by capability using the terminal contract'sOPERATION_BYTESdriver half, so a terminal drops in unchanged. No ambient display: window enumeration and screenshots are read-only mappings, not verbs. A client that holds neither has nothing to call and nowhere to look. See notes/compositor.md and DECISIONS §33. The design's load-bearing idea was not the obvious one. The shared doorbell endpoint carries no authority at all (a shared endpoint has no sender identity, so anything named in a message would be forgeable). Every per-client fact lives in per-client memory, and the compositor therefore contains no authorization code. Wayland's model is the prior art, and this is the difference in kind from it. Wayland attaches client identity at the transport and decides in code, so its security is a property of that code.The rung also found the one primitive this kernel lacks, recorded as a fork rather than built. There is no wait-any, and two threads cannot share an address space, so a process has exactly one blocking wait point. A component that must distinguish more than one class of sender must therefore be more than one process, or carry authority somewhere other than its messages. The compositor took the second road, and it turned out stronger. But with the primitive, per-client endpoints would give unforgeable identity for free (letting a bad damage rectangle be refused to its author rather than clipped). A screenshot could be a consistent served snapshot, and input delivery would stop being a blocking
CALLinto a client. DECISIONS §33 has the two candidate forms and their costs. Architect's call. -
Rung three: real applications. iced's software-rendering path and cosmic-text on the milestone 27 std PAL. Something COSMIC-like appears here, before any GPU.
-
Rung four: GPU acceleration via virtio-gpu 3D (milestone 34 (acceleration)). The Venus path (Vulkan over the virtio device, over §18 (the PCIe transport)) is how every VM gets a GPU without a hardware driver, and what would give wgpu something real. A mountain, but a climbable one, priced as such.
-
Rung five: struck. A bare-metal driver for the VisionFive 2's BXE-4-32 3D core is a Linux-scale multi-year effort (loaded firmware, thin documentation, Mesa still maturing on Linux itself) that proves nothing rung four does not. The board's standalone-display story is the DC8200 framebuffer path instead. U-Boot's
simple-framebufferhandoff first (zero display code), a mode-setting driver only if ever needed, serial input until a USB HID milestone earns its own number. The JH7110 has no IOMMU, so display DMA on that board is confined by software discipline, and the record will say so. Milestone 157 (minted 2026-08-23) is where this is tracked. Until then the plan above is recorded but not built.
Governance, stated now so it is not smuggled later: rungs one and two are demonstrator work. Rungs three and four reopen the parked competitor question (competitor-question.md). That is an architect's call to make consciously when rung two is real. Rung two is now real, and the call is made: hold at rung two (DECISIONS §131 (the competitor question), calef, 2026-08-26). Rungs three and four stay unstarted. Milestone 33 (a compositor) deliberately stopped at its edge (no iced, no cosmic-text, no application work). That edge holds until something useful is built and proven on text mode. §131 asks instead for text-mode work that is not GUI-toolkit work. That means a kick-ass shell and editor experience, the 169-174 self-hosting line, and the typography of milestone 142 (a text display good enough that people use it instead of a GUI).