roadmap BUILT

29. A display terminal: framebuffer, virtio-gpu, and a foreign component

Its font increment is BLOCKED: see below.

The font increment is blocked on the capability model, not on the font (2026-08-19). design/decisions/0100-the-terminal-font.md chose gohufont-14, which is 8x14, and calef chose to grow the scanout in the same change rather than ship a 16x4 regression in between. The scanout cannot grow. A PageFrame capability names one page and takes one of sixteen capability-table slots, the virtio-gpu driver already holds nine of them for its DMA region, and the hard ceiling is SURFACE_FRAMES <= 9, or 36,864 bytes; 800x600 needs 469 frames. display_service::DRIVER_SLOT_DMA fails the build rather than the boot, which is the guard working as designed. The fork is the one notes/frames.md already recorded (may a PageFrame name a run of pages, or does CAPABILITY_TABLE_SLOTS grow), and that note now carries all three options priced and the sizing arithmetic 800x600 needs. Nothing in this milestone moves until it is answered.

In brief. An on-device terminal: a userspace virtio-gpu driver (arriving over PCIe, which the §18 transport just made reachable), a framebuffer component, font rendering, and a VT state engine maintaining the grid; input from a virtio keyboard

Why it matters. the first pixels the demonstrator ever puts on a screen, and the strongest form of the milestone-23 claim if the VT engine is libghostty-vt (zero-dependency, no-libc, no-alloc, C ABI, Zig): a vendor component in a foreign language, capability-confined and hot-swappable. Promoted from optional (2026-07-28): rung one of the display ladder (see the display ladder), whose destination is a capability-routed compositor

Increment one built (2026-07-29, both ISAs): the first pixels, and the framebuffer seam. A confined userspace virtio-gpu driver (display) drives the control queue through the proved validator over the §18 (the PCIe transport) PCIe transport on both virt boards, behind the IOMMU. A separate client (painter) holds only an endpoint and a shared surface and draws a coordinate-derived pattern into it. Two witnesses in two address spaces digest the result against a value the kernel computes itself, so the framebuffer is proven byte for byte. The scanout is proven too, from the host, by driving QEMU's monitor beside the suite and comparing a screendump PPM against the same pattern definition pixel for pixel (both ISAs, with a negative control on the checker). The memory decision generalized to a rule: a framebuffer is a bigger grant, never an exemption. The GPU's own confinement hazard (backing addresses ride in a command payload the transport validator cannot see, so the IOMMU is the barrier) is proved by an attacker test. DECISIONS §29 (the framebuffer is a bigger grant, not an exemption), notes/framebuffer-contract.md.

Increment two built (2026-07-30, both ISAs): glyphs, the grid, and a real keyboard. DECISIONS §37, notes/glyphs.md. An original 7x8 bitmap font drawn in the Kaypro II's style (crates/bitfont; the ROM is excluded on licence and the look is not protected, because a font is compiled into the image). A sans-IO VT engine (crates/video_terminal) is checked against the real line discipline's echo stream rather than a written-down list of escape sequences. A display terminal (components/src/display_terminal.rs) that is a client at both display seams with exactly painter's and exactly window's authority. And a confined virtio-input keyboard driver (user/src/kbd.rs).

Three things are worth carrying forward from it. The picture is a value three witnesses compute independently (the terminal to draw, the kernel to predict the framebuffer, the host to grade QEMU's scanout), which is what replaces "it looked right" for text. The host checker's negative control is a screen with one letter changed. §37 (text is a value three witnesses compute, not a screenshot) records how the display contracts fared. And the authority to type is a mapping. The keyboard's power is the input ring no client maps, while the doorbell it rings carries nothing, so focus stays a capability from the producing side as well as the receiving one.

Still deferred, and stated rather than implied: scrollback (it wants a ring of off-screen rows and a viewport, which changes the damage model), UTF-8, and reflow. Also line editing in the display terminal (line_editor composes in front of it with no new protocol, which crates/video_terminal proves on the host). The VT engine's language remains an open question, and notes/glyphs.md now prices it: building the Rust engine first changed what the comparison is about. A VT engine fits the §31 (the foreign-language seam) C seam's shape almost perfectly, and the real cost of adopting libghostty-vt is rebuilding the proof structure, not the rendering. The recommendation there is to adopt it as a second engine behind the same seam rather than a replacement. Architect's call.

Deliverable. The demonstrator's first pixels: a userspace virtio-gpu driver (the device arrives over PCIe on both virt boards, which the §18 transport just made reachable), a framebuffer mapped into a terminal component, and font rendering. A VT state engine maintains the grid (escape parsing, scrollback, wrapping, reflow), with keyboard input via virtio-input. The serial console remains; this is a second head, not a replacement.

Why, and the 23 connection. The VT engine is the strongest candidate anywhere in the plan for the full form of the claim of milestone 23 (a capability-routed component OS). It is libghostty-vt (Ghostty's extracted core: zero-dependency, no libc, fixed buffers with no allocations, C ABI, implemented in Zig) running as a capability-confined, hot-swappable vendor component. That would mean the kernel safely runs code we did not write, in a language we do not use. Costs stated plainly: a Zig toolchain enters the build for that one component, and their API is still in flux, so any adoption pins a version. The single-toolchain fallback is vte (alacritty's parser): same shape, our language, much less complete (no scrollback or reflow).

Sequencing. Needs the PCIe transport (done) and wants 28's contract first so the display terminal implements a contract rather than inventing one. Optional and well off the thesis path; a reach in the 24 spirit. Effort: 2 lanes (measured: first pixels, then glyphs/VT/input).

Follow-on

Index row

the first pixels the demonstrator ever puts on a screen, and then the first letters