Last updated: 2026-11-10 (phases 71–80 done)
Status: This page is the phase record for phases 71–80. Milestone 17 stays in plan-lionsos.md. It removed the postcard guest model (lerux-interface-types, LERUXFS, postcard SerialClient and NetRequest). It did not remove the Ladybird-shaped domains or the postcard servers the browser specs still name. Those stay in desk-browser.md and ../lerux-ladybird/PLAN.md, including that plan's milestone 17 (Forms). New work does not add postcard types. The current browser command is just test-browser-sddf. JavaScript and WebAssembly are approved.
Related: plan.md (roadmap 1–82), plan-qemu.md (phases 61–70, done), plan-arch.md (phases 50–60 + Physical RPi4 lab), plan-au-ts.md (sDDF inspiration), context.md, ADR-009.
Phases 1–70 delivered an Arch-like workflow on QEMU and forbade graphics. This program moves toward two products that need an interactive surface:
- A fully-Rust web browser modelled on Ladybird: the same engine shape and process isolation, rewritten in Rust, not a port of the Ladybird, Chromium, or WebKit C++ sources.
- A Grok Build clone inspired by xai-org/grok-build — agent loop, tool taxonomy, serial TUI, not the host
grokbinary.
Same rule as au-ts: steal the idea, not the code. Local reference trees stay outside this repo:
- Ladybird:
/home/julian/repos/github_orgs/LadybirdBrowser/ladybird - Grok Build:
/home/julian/repos/github_orgs/xai-org/grok-build
Every deliverable is completable on QEMU virt aarch64. No board on the desk, no HDMI, no GENET. RISC-V/x86 display parity is later, not this decade.
What still feels toy for an interactive surface today
| Gap | Today | Why it blocks browser / agent |
|---|---|---|
| Pixels | Serial only | Ladybird WebContent paints a shared bitmap; nothing presents it |
| HTTP isolation | Apps may hold NetClient / TlsClient |
Ladybird WebContent must not speak TCP; neither should web-content |
| HTML/CSS | http-file-browser emits markup, nobody lays it out |
Need parse → cascade → layout → paint |
| Agent loop | chat-client is UDP rooms |
Grok Build is prompt → tool-calls → tools → model |
| Tools | Shell builtins + edit |
Need Read/Edit/ListDir/Execute/WebFetch as one PD |
| LLM in CI | None | Live xAI is non-deterministic; need grok-one like https-one |
| Joint profile | Workstation is serial REPL | Prove browser + agent compose without giving untrusted PDs a NIC map |
Lifted: QEMU software framebuffer owned by display-server. Apps present via a shared bitmap MR. The desk's VESA framebuffer on the Intel graphics is ADR-013. That path is the firmware option ROM, not a display-engine driver.
Approved:
- JavaScript and WebAssembly. The script engine follows Ladybird's LibJS stages in
lerux-ladybird-js. WebAssembly is ordinary Wasm throughwasmiinlerux-wasm(ADR-012), including modules a page runs. Seedesk-browser.mdand../lerux-ladybird/PLAN.mdmilestones 13, 14, and 18. The engines are a Rust rewrite of that shape, not a port of Ladybird, Chromium, or WebKit C++.
Still forbidden:
- Linux/POSIX ABI, musl,
fork/exec, unmodified third-party binaries (includinggrokand the Ladybird C++ tree) - Microkit static PD set — one
web-content, no extra tabs at runtime wasmtime, the WebAssembly Micro Runtime, SpiderMonkey, and compiling Ladybird's C++ workspace- GPU compositor, Wayland, virtio-gpu 3D, libvmm / guest Linux
- MCP stdio servers, Landlock/Seatbelt, live xAI in CI
- Vendoring Ladybird, Servo, or grok-build into
deps/ - Treating the RPi4 lab or the Z97 desk page as the metal target being driven. That target is the Acer Swift X. The Physical RPi4 lab and the Z97 desk page stay secondary.
Work in vertical QEMU slices, each ending in a just test-* (or host CLI) gate. Prefer new postcard types in lerux-interface-types and new PDs over POSIX shims.
Platform Browser (Ladybird-shaped) Agent (Grok-shaped)
──────── ───────────────────────── ───────────────────
71 ADR + domain language ✅
72 display + input (QEMU ramfb) ✅
73 request-server PD ✅
74 HTML/DOM (`lerux-html`) ✅
75 CSS + layout + paint ✅
76 browser-ui + one web-content ✅
77 agent runtime + grok-one ✅
78 serial TUI ✅
79 tools (fs / shell / fetch) ✅
80 joint profile: workstation-interactive ✅
From Ladybird Documentation/ProcessArchitecture.md and Services/:
| Ladybird | Job | lerux 71–80 |
|---|---|---|
| Browser UI (Qt/AppKit) | chrome, input, present pixels | browser-ui |
| WebContent | LibWeb + LibJS; paint to shared bitmap | web-content (one) |
| RequestServer | HTTP(S)/WS/DNS; WebContent has no NIC | request-server in front of tls-proxy / net-server |
| ImageDecoder | decode one image in a fresh process | deferred |
| Compositor | GPU/OpenGL present | skip; display-server software blit |
| WasmCompiler / WebWorker | approved shape | out of 71–80. Scripts and WebAssembly are approved in ../lerux-ladybird/PLAN.md (milestones 13, 14, 18, and 19). The engine is wasmi (ADR-012), rewritten in Rust, not a port of Ladybird, Chromium, or WebKit C++ |
web-content cannot use the network or filesystem except through request-server. That is ADR-003/007 with a Ladybird name.
Spawn-on-demand (/tmp/session/…/portal/webcontent) does not exist on Microkit.
From crates/codegen/ (xai-grok-agent, xai-grok-tools, xai-grok-pager, xai-grok-sandbox):
| Grok Build | Needs on Linux | lerux 71–80 |
|---|---|---|
| Agent loop | tokio, files, YAML agents | agent PD, postcard AgentRequest |
| Tools | process spawn, reqwest, ripgrep, Landlock | IPC to fs-server, shell run, request-server |
| TUI | ratatui, PTY, mouse | serial ANSI fullscreen |
| Sandbox | Landlock / Seatbelt (nono) |
PD isolation is the sandbox |
| MCP / subagents / LSP | stdio children | out of 71–80 |
Core tool kinds: Read, Edit, Write, ListDir, Search, Execute, WebFetch.
| Area | Paths |
|---|---|
| DMA / net trust | net-topology.md, ADR-003, net-server, tls-proxy |
| TLS / HTTPS smoke | ADR-007, lerux https-one, smoke CA |
| FS + host inject | lerux-fs, fs-server, FsRequest, ADR-008 |
| Serial virt | ADR-002, serial-virt |
| Shell batch | Phase 69 run / source |
| QoS | qos.md, ADR-006 |
| Packages / profiles | packages.md, support/profiles/ |
| Interactive surface | ADR-009 (this program) |
Channel numbers come from the profile [[channel]] manifest, not from this document.
Why: plan-arch.md and plan-qemu.md forbade graphics. Starting PDs without an ADR repeats the sdfgen vs in-tree fight (ADR-001).
- ADR-009: QEMU software framebuffer; static Ladybird PD topology; Grok-shaped agent as PDs; remaining ceilings.
- Glossary in
context.md(display-server, framebuffer MR,browser-ui,web-content,request-server,agent). - Remaining ceilings listed above.
- Guest code, boards, CI jobs.
A future agent can implement Phase 72 without re-litigating “are we allowed to have pixels?”. Met.
Why: Ladybird WebContent paints to a shared bitmap; something must present it. The agent TUI can stay serial; the browser cannot.
- QEMU ramfb (
-device ramfb, configured through fw_cfg DMA). virtio-gpu 2D not needed. -
display-serverPD owns fw_cfg + the ramfb backing MR. Apps never map display MMIO (ADR-003 shape). - Shared bitmap MR: producer (
display-demothis phase;web-contentlater) →display-serverblit. - Postcard
DisplayRequest/DisplayResponse(GetMode/Present/PollInput) inlerux-interface-types. - Input v1: serial keys as
InputEventviaPollInput(not virtio-input). - Board
qemu_virt_aarch64_display. Smokejust test-display: colour-bar pattern; expectlerux-display: pattern ok.lerux runopens a GTK window whenDISPLAYis set (LERUX_QEMU_GRAPHIC=0forces headless). Host PPM dump is still optional (QEMUscreendump).
- GPU, vsync, cursor sprite, virtio-tablet, RPi4 HDMI.
- Putting chrome on the framebuffer (serial chrome in Phase 76 is enough).
QEMU window shows a non-serial pixel buffer produced by a PD (just run with a display). CI checks the log line. Met.
Why: Ladybird’s load-bearing isolation: WebContent never speaks TCP. lerux already has tls-proxy + net-server; untrusted browser/agent PDs still must not own that path.
-
request-serveris the only HTTP client oftls-proxy/net-serveron the new boards. -
HttpRequest/HttpResponseinlerux-interface-types(method, URL, headers, chunked body; reuseMAX_NET_TCP_PAYLOADchunking). - Smoke client
request-clientcallsrequest-server; it does not getNetClient/TlsClientchannels (web-content/agentlater). - Smoke
just test-request: GEThttps://host:8443/fixture.htmlfromlerux https-one; expectlerux-http: fixture ok.
- Cookies, HTTP cache, WebSocket, HTTP/2, public Web in CI.
- Replacing
fetch-clienton existing workstation boards (it may keepTlsClientuntil a later cutover).
An untrusted PD can GET https://host/… without mapping NIC DMA or linking rustls. Met.
Why: LibWeb’s pipeline starts at tokenize → tree builder. We need a no_std+alloc library, not html5ever/std, and not Ladybird’s libweb_html_tokenizer (cbindgen + AK/Rust).
- Shared crate
lerux-html: tokenizer + tree builder for a subset (html,head,body,title,p,h1–h3,a,div,span,ul/ol/li,pre,code,strong,em,imgstub,styleas text). - Host unit tests on committed fixtures under
support/browser/. - PD dump:
just test-htmllogslerux-html: nodes=8for the baked-in smoke fixture (include_str, not/host).
document.write, SVG, MathML, innerHTML script injection, spec-complete parser.- Importing Ladybird or Servo parser crates.
A fixture parses to a walkable DOM in a PD. Met.
Why: Ladybird’s “loading to painting” after parse is CSS → cascade → layout → paint into a bitmap.
- CSS subset:
color,background-color,font-size,display: block|inline,margin,padding,width. Author<style>+ a tiny UA sheet. - Block-flow layout only (no flex, grid, floats, positioning).
- Paint RGB888 into the shared bitmap MR (
lerux-webcrate,paint-demoPD). - Host: fixture → PPM (
Bitmap::encode_ppm) + signature pixels. Guest:just test-paintexpectlerux-web: paint ok.
- JS-driven style, webfonts, images beyond a solid-color
imgplaceholder, GPU.
display-server presents pixels that correspond to the HTML+CSS fixture (human-checkable in QEMU; CI checks the log line + host signature/PPM). Met.
Why: Ladybird’s Browser process owns chrome and input; WebContent owns the engine. Keep that split even with one tab.
-
browser-ui: URL line (serialopen <url>v1), owns the channel toweb-content, forwards present todisplay-server. -
web-content: parse/layout/paint; onlyHttpRequesttorequest-server+ bitmap MR. No FS, no NIC. - Navigate
https://host:8443/paint.htmlviarequest-server(smoke CA). First load is implicit; serialopen <url>remains available. - Profile
browser/ boardqemu_virt_aarch64_browser.just test-browser.
- Tabs, history, bookmarks, chrome painted on the framebuffer (serial chrome is enough).
- JS.
just test-browser loads the fixture through request-server and paints it. Met.
Why: Grok Build’s host is xai-grok-agent: tools + system prompt + model config. CI cannot hit live xAI (same reason https-one exists).
- Host
lerux grok-one: HTTP server that returns scripted tool-calls / final text for a tiny prompt set. -
agentPD:AgentRequest::Prompt/AgentResponse::{Text, ToolCall, Done, Error}. Completions viarequest-server→grok-one. - Smoke CA path only. Reserve
secret.grok.*in the config schema; unused in CI. -
just test-agent-runtime: prompt “read /hello.txt” → stub emits Read → agent returns file body (baked-in/hello.txtuntil Phase 79 FS tools).
- Streaming tokens as a product, compaction, subagents, real xAI in CI, browser OAuth.
One tool-loop round-trip in QEMU against a stub. Met.
Why: Grok Build’s pager is the product surface. lerux already owns serial virt; start there, not on the framebuffer.
- Fullscreen ANSI: transcript, status, prompt. Inspired by grok-pager layout, not a ratatui port.
- Shell
grokPPC toagent(same pattern asedit/chat). - Scripted serial smoke: expect chrome + a stub reply (
lerux-agent: chrome okthenruntime ok).
- Mouse, PTY multiplexer, theming engine, ACP.
- Headless JSON as a product (a log line is enough for CI).
A human can type a prompt on the workstation serial and see the stub’s reply in a TUI. Met on qemu_virt_aarch64_agent_runtime (agent owns serial chrome; shell grok is wired for Phase 80 composition).
Why: Grok Build’s useful core is tools, not the TUI. Map taxonomy onto existing IPC.
- Read / Write / Edit / ListDir / Search (linear scan; not ripgrep) via
FsRequest. - Execute: on-disk batch of
echolines inside the agent PD (same idea as shellrun; nofork/exec). The agent cannot PPC the shell (shell is priority 1; ADR-006). - WebFetch via
request-server(notNetClient). - Workspace = LERUXFS2
/work(seededhello.txt). File cap remains 256 KiB; tools chunk. -
just test-agent: stub drives Read + Edit + WebFetch; expectlerux-agent: tools ok.
- MCP, LSP, image/video gen, scheduler,
bashpipelines, Landlock. - Adding agent / tls-proxy / request-server to the full workstation (Phase 80).
The agent can change a file and fetch a URL in a QEMU smoke without a POSIX process. Met on qemu_virt_aarch64_agent.
Why: The two products share request-server + display. Prove they compose, then stop.
- Profile
workstation-interactive: workstation +display-server+request-server+web-content+browser-ui+agent. - Agent tool
browse: askweb-contentto load a URL; return extracted text (and optionally “paint ok”). - Trust map in
security.md:web-contentandagentare untrusted;request-server/display-server/ fs / net stay trusted. -
just test-interactive. QoS: new PDs in the bulk band; PPC callees outrank callers (ADR-006). HTTP stack is raised (log7 >net6 >tls5 >request4 >web-content3 >agent2) so Browse can PPC. - Update
packages.md/boards.mdwhen boards exist.
- Making this the default workstation.
- RPi4 HDMI; multi-arch display.
One QEMU profile where the agent fetches a local page that the browser also paints. Met on qemu_virt_aarch64_interactive.
Treat 71–80 as done when a developer with no hardware can:
- Boot a QEMU board that owns a software framebuffer (
display-server). - Load a committed HTML+CSS fixture through
request-serverintoweb-contentand see pixels. - Run a serial agent TUI whose stub LLM drives Read/Edit/WebFetch on guest FS + HTTPS.
- Use a joint profile where the agent’s
browse/ WebFetch path does not giveweb-contenta NIC mapping. - Point at ADR-009 and
context.mdfor why this is not a POSIX desktop and not Ladybird / Servo /grokports.
Hardware truth remains Physical RPi4 lab.
This program is done. The build order was 72 (display), then 73 (request-server), then 74–80 (HTML, paint, browser, agent, joint profile).
Further work on this list waits on a new ADR. JS, GPU, and extra tabs stay off the list. Phase 81 and Phase 82 landed after this program. On-device work that is still open is the Physical RPi4 lab.
| Gate | Command / artifact |
|---|---|
| Host lint | just check |
| PD lint | just check-pd (once PDs exist) |
| Display | just test-display (lerux-display: pattern ok) |
| Request-server | just test-request (lerux-http: fixture ok) |
| HTML | just test-html (lerux-html: nodes=8) |
| Paint | just test-paint (lerux-web: paint ok) |
| Browser | just test-browser (lerux-browser: paint ok) |
| Agent runtime | just test-agent-runtime (lerux-agent: chrome ok, runtime ok) |
| Agent tools | just test-agent (lerux-agent: tools ok) |
| Joint | just test-interactive (lerux-agent: interactive ok, lerux-web: paint ok) |
| Isolation residual | existing just test-isolation still green |
Smokes stay on the smoke CA + https-one / grok-one. Do not add a CI job that hits the public Web or live xAI.