Skip to content
Repos

templewm

Markdown 30.5 KB289 lines Opens in site

Directory Raw Download

boxes.md

Plan for the two "boxes" that carry the zucht work: an X11 reference box (original Xfce with xfwm4) and a Wayland box (Xfce with the xfwl4 compositor). Written 2026-10-28, revised the same day after the host was investigated (host_environment.md).

Read host_environment.md first. Every decision below is justified against it.

Evidence tags: [M] measured on this host, [S] read from a primary source (xfwl4 source/README, package tracker, project docs), [R] recalled or reported by a research subagent without a fetched source (a hypothesis), [U] unknown, with what was tried and how it closes.

Nothing in this plan has been built or run yet, except what is tagged [M]. Phase 0 exists to change that.

Revision note: the first version of this plan assumed a desktop at a TTY with a usable GPU. That was wrong (section 2). Mode A on the host GPU was dropped; the QEMU/KVM guest replaces it.

Spec mapping: the decision records below are D1 to D11 here and D-01 to D-11 in SPEC.md (ADR 0002 to 0012). SPEC.md is canonical; this file is the detailed rationale and must stay in sync with it.

1. Goal and what "next" means

Goal (AGENTS.md): Xfce supports Wayland through xfwl4 with xfwm4/X11 fully intact. Two boxes make that testable. Once both run, the next step is side-by-side parity validation: boot the same Xfce config in both, drive the same inputs, capture the same state, diff X11/xfwm4 against Wayland/xfwl4. That diff is the real parity backlog. The research in research/ says what should differ; the boxes measure what does.

2. The facts that drive every decision

From host_environment.md (all [M]):

  1. Dedicated Hetzner bare metal, SSH only. No monitor (all three GPU connectors disconnected), no logind seat, no framebuffer.
  2. Live production host: mail server, TURN, web on 80/443, Postgres, Docker, a second user. Baseline load about one core, 16 GiB RAM used, swap in use.
  3. Ryzen 5 3600, 12 threads, 62 GiB RAM, AMD-V with /dev/kvm present; retoor is not in group kvm. Nested KVM on.
  4. GPU is a GT 710 on nouveau, boot_vga. card0 and renderD128 are root:video/root:render 660; retoor is in neither group.
  5. IOMMU inactive (0 groups): no VFIO passthrough.
  6. / is 86% full, 59 GiB free, RAID1 ext4. Podman storage already holds 61 GB of other projects' images.
  7. Rootless podman 5.7.0 works; QEMU 10.2.1 and virtme-ng 1.40 are in apt; vkms and virtio_gpu kernel modules exist.
  8. Outbound registry, archive.xfce.org and gitlab.xfce.org are reachable.

3. Decision records

Each record: context, options considered, evidence, decision, consequences. If a measurement later contradicts one, amend it with a changelog row, do not edit silently.

D1. Where the Wayland compositor gets its display: a QEMU/KVM guest, not the host GPU

Context. xfwl4's udev backend (--backend tty) drives real DRM/KMS through libseat, libinput and udev [S: src/backend/udev/mod.rs, src/app/cli.rs]. It has no headless backend and no software renderer [S: grep for headless/pixman/vkms in the source]. The only other backends are winit (nested in a Wayland session) and x11 (nested in an X11 session, needs DRI3 and Present), both of which the README calls low priority and rarely run. Parity evidence is only fully valid on the udev path, because that is what users get.

Options:

Option What it is Verdict
A. Host GPU, container --backend tty on card0 from a podman container Rejected: no monitor attached, so no output to scan out; needs host permission changes (video/render groups or ACL); touches the display device of a production server; DRM master and console conflict risk; no precedent found for a DRM compositor in rootless podman [searches: no source showed it working].
A2. QEMU/KVM guest Boot a guest kernel with a virtual DRM device (VKMS or virtio-gpu); run xfwl4 --backend tty inside Chosen. Real DRM/KMS path, real libseat/libinput/udev, no host GPU or display needed, host impact limited to QEMU and group kvm. Same method Weston and wlroots use to test their DRM backends [Collabora virtme+VKMS write-up; wlroots VKMS smoke test commit].
B. Nested in headless sway xfwl4 --backend winit inside sway (WLR_BACKENDS=headless) in a container Kept as the fast development and smoke path. Not parity evidence: it exercises the path upstream calls untested.
C. VFIO GPU passthrough Give the GT 710 to a VM Rejected: IOMMU inactive [M]; enabling needs BIOS and boot parameter changes and a reboot on a headless production server.
D. vkms on the host Load the module host-wide Rejected: host-global change, needs root, and the guest can load it from its own kernel instead.
E. Xvfb as nested host for --backend x11 Cheapest Rejected: x11 backend needs DRI3 and Present [S]; Xvfb lacks them [R].

Evidence for A2 working with software rendering, found in the source: xfwl4 filters out software EGL devices only in the fallback branch that runs when udev finds no render node; with --drm-device PATH it accepts the given node, using the render node if the card has one and the card node itself otherwise [S: udev/mod.rs lines 283-302]. VKMS has no render node, so the invocation is xfwl4 --backend tty --drm-device /dev/dri/card0, and Mesa's kms_swrast driver (present on the host userspace, kms_swrast_dri.so [M]) provides GL over the dumb-buffer KMS device. That combination is plausible, not proven [U, gap G16]. The earlier subagent claim that the VKMS path "probably fails" came from reading only the fallback branch.

Consequences. A guest means a second runtime next to podman. It is kept thin: the guest's root filesystem is the same OCI image as the Wayland container (D6), so there is one artifact, two ways to run it.

D2. One base distribution for both boxes: Arch Linux

Context. A parity diff is only honest if the boxes differ in the window manager and nothing else. Different distros mean different fonts, Mesa, GTK, libc and library versions, and every screenshot diff then carries noise. One shared base also means podman stores the common layers once, which matters with 59 GiB free [M].

Floors required by xfwl4 [S: README] against what the candidates ship [M: queried in throwaway containers on this host today]:

Requirement Arch Debian trixie Alpine (edge, Repology)
libinput >= 1.28 1.32.0 ok 1.28.1 ok not measured
libdisplay-info >= 0.3 0.3.0 ok 0.2.0 FAIL not measured
Rust >= 1.92 1.99.1 ok 1.85.1 FAIL (needs rustup) not measured
libseat seatd 0.9.3 ok 0.9.1 ok not measured
libxfce4windowing >= 4.20.7 4.20.7 ok not resolved 4.20.6 FAIL [R]
libxfce4ui >= 4.21.4 4.20.2 FAIL 4.20.1 FAIL 4.20.1 FAIL [R]
xfconf >= 4.21.2 4.20.0 FAIL 4.20.0 FAIL 4.20.0 FAIL [R]
xfce4-settings >= 4.21.3 4.20.5 FAIL 4.20.1 FAIL 4.20.5 FAIL [R]
xfdesktop >= 4.21.0 4.20.2 FAIL 4.20.1 FAIL not measured
xfwm4 4.20.0 4.20.0 4.20.0 [R]

Reading: no mainstream distro ships the 4.21 libraries xfwl4 needs [R: Repology via the packaging subagent, consistent with the [M] rows]. Four of them (xfconf, libxfce4ui, xfce4-settings, xfdesktop) are built from source tags on every candidate. Arch needs no other source build and is the only one meeting every other floor out of the box.

Base image pulls measured today [M]: alpine 8.7 MB, debian trixie-slim 81 MB, debian testing-slim 84 MB, fedora-minimal 148 MB, fedora 196 MB, archlinux:base 411 MB. Rust is 309 MB installed on Arch [M], so the toolchain stays out of runtime layers.

Decision: Arch for both boxes. Pin the base by digest and the package set by an Arch Linux Archive snapshot date, so a rebuild next month is the same system (gap G7).

Tradeoffs accepted: Arch base is 5x trixie-slim (411 MB vs 81 MB). It is paid once and shared by both images. Rolling release risk is mitigated by the snapshot pin.

Rejected: Alpine for the pair. musl vs glibc is a real risk for Smithay's use of dlopen for libgbm/libinput/libEGL [R, plausible, untested], upstream Xfce-on-Alpine experience is thin (a trade press report cites known serious issues) [R], and a different libc contaminates the diff. Debian trixie: fixable, but needs rustup plus a source build of libdisplay-info for no size gain once the toolchain is in a builder stage; revisit only if the Arch snapshot pin proves painful.

D3. Shared Xfce 4.21 libraries, X11 box differs only in WM and display server

Both boxes run the same /opt/xfce prefix built from the 4.21 tags xfwl4 requires. The X11 box adds Xvnc and runs xfwm4 (Arch 4.20.0 [M]; whether a 4.21 xfwm4 tag exists and should be used is gap G3). The Wayland box adds xfwl4 and Wayland tooling. xfwl4 needs xfwm4 installed for its themes [S], so xfwm4 ships in both images; only the X11 box runs it. This is the single biggest lever for a fair comparison, so it is a hard rule: any package present in one box and not the other must be justified in this file.

D4. xfwl4 pinned to tag xfwl4-4.21.1

Verified [M]: git tag xfwl4-4.21.1 exists (and xfwl4-4.21.0), and the tarball https://archive.xfce.org/src/xfce/xfwl4/4.21/xfwl4-4.21.1.tar.xz exists. A .sha256sum file at the guessed URL returned Not Found, so the checksum is computed once on first download, committed, and compared against the tag content (gap G8). main was at 2026-10-26 when read [S]; main is a separate, later target.

Build recipe from the README [S]: meson setup --wipe --buildtype=release build; meson compile -C build; meson install -C build; plain cargo build also works; clone needs submodules. Build dependencies: Rust >= 1.92, libdisplay-info >= 0.3.0, libdrm, libgbm, GTK3, libinput >= 1.28.0, pixman, libseat, libudev, libxfce4ui-2 >= 4.21.4, libxfconf-0 >= 4.21.2, libxkbcommon, meson >= 0.57, xwayland, gettext. Runtime: xfwm4 (themes), libxfce4windowing >= 4.20.7, xfce4-settings >= 4.21.3, xfdesktop >= 4.21.0, and a D-Bus session bus.

D5. Rootless podman only; no Docker daemon; no --userns=keep-id

Context. The Docker daemon runs as root and retoor is in the docker group, which is root-equivalent [M]. The host runs mail and a database. Rootless podman maps container root to retoor, so a compromised or buggy build cannot become host root.

Also, your repair-podman notes record keep-id triggering a 5:54 whole-image chown with the storage lock held (22 GB image), and a huge /tmp layer hanging podman's recovery. With a shared 61 GB storage and other projects using it (including a running container and Postgres), a stalled podman blocks your other work.

Decision: rootless podman only. Run as container root with no keep-id: files written to bind mounts appear on the host owned by retoor, and no image chown happens. Source is bind-mounted; cargo registry, target and sccache are named volumes (no host permission walk). :U is allowed only on the small source mount, never on volumes. Every box gets --tmpfs /tmp:size=... so no large /tmp lands in a layer. Never --privileged.

D6. One OCI image, two runtimes

The Wayland image (zucht-wayland) is used twice: as a container for mode B (day-to-day development, fast loop) and, exported to a directory, as the root filesystem of the QEMU guest for mode A2 (parity evidence). Same bits, so a bug seen in one is attributable to the runtime, not the packaging. How the export and boot work (podman create + podman export/podman mount into a directory, then boot the host kernel with that directory as root via virtme-ng) is recalled, not verified [R, gap G17].

D7. Orchestration: Makefile over plain commands; compose optional; no distrobox

With two boxes and one VM, plain podman run behind a Makefile gives exact, visible flags and caps ("every dependency is a way to fail"). podman-compose 1.5.0-2 is available [M], but cap enforcement (cpus, mem_limit, pids_limit) and healthchecks are unverified [R]; adopt it only if the Phase 0 smoke test passes (gap G14). All names, ports, caps and paths live in one file boxes.spec.mk (included by the Makefile and echoed by make doctor), which satisfies "every thing has a specification".

Rejected: distrobox (shares $HOME, keep-id style semantics, blurs isolation on a production host), podman kube play (weak build integration), Quadlet for the interactive loop (daemon-reload per change; generator is present [M] so it remains an option for a later watchdog unit).

D8. Hard caps and floors, because this host is shared

Caps are binding and declared in boxes.spec.mk. They follow the user rules: everything has a cap; every automated process has a floor it never crosses by itself, and pages a human instead of deleting.

Workload CPU RAM (and swap) PIDs Notes
Builds (zucht-dev) 4 threads, nice -n 19, ionice -c3 12 GiB 2048 not run together with the VM
X11 box 2 threads 6 GiB 1024 tmpfs /tmp 256 MiB, shm 512 MiB
Wayland box (mode B) 2 threads 6 GiB 2048 tmpfs /tmp 512 MiB, shm 1 GiB
QEMU guest (mode A2) 4 vCPU, wrapped in a systemd-run --user --scope cgroup 4 GiB n/a cgroup caps via delegated controllers [M]
Disk, all of zucht n/a n/a n/a 20 GiB ceiling for images, volumes, caches, VM files

Floors: make doctor refuses to start a build when / is above 90% used (86% today [M]) or free space is under 30 GiB, and when cpu or memory PSI some avg10 is above 20 on the host; it prints the reason and exits non-zero. Nothing deletes anything automatically. make prune is dry-run unless CONFIRM=1, and it only lists zucht-owned resources by label.

Aggregate worst case with caps (not all at once) leaves the host with over 6 threads and over 30 GiB for the production services. Baseline today is about one thread and 16 GiB [M].

Delegated controllers confirmed [M]: cpuset cpu io memory pids. Cap enforcement itself is untested on this host [U, G14].

D9. Viewing through SSH tunnels; everything binds to loopback

The server is on the public internet and has no display. All zucht ports bind 127.0.0.1. The user views over ssh -L 6080:127.0.0.1:6080 -L 6081:127.0.0.1:6081 devplace and opens one local page. noVNC through websockify is the lowest-friction viewer (browser only, no client install) [R]; a native VNC client over the same tunnel is the lower-latency alternative. Rationale for noVNC page: a single HTML file with two iframes, flex-wrap so a phone stacks them (your responsive rule).

D10. X11 box display server: Xvnc (TigerVNC) for both testing and viewing

One process is both the X server and the VNC server, so what the screenshot sees is exactly what the viewer sees. Sizes from package pages [S, fetched by the X11-research subagent]: tigervnc 2.7 MiB installed on Alpine, 2.9 MB on Debian trixie, 7.0 MB on Arch [M, pacman -Si today: 6.97 MiB]. Xvfb is smaller (1.4 MiB on Alpine) but has no viewer. Rejected: Xpra (heavy Python/GTK), KasmVNC (not in distro repos, size unknown), x11vnc (only shares an existing display), Xephyr (needs a host X server, none here), Xorg dummy driver (heavier, no gain). Fixed resolution 1280x800x24; software GL via Mesa llvmpipe (LIBGL_ALWAYS_SOFTWARE=1).

D11. Image diff and state capture tools

ImageMagick compare -metric AE -fuzz 2% with a region mask, reported as a score, never as a bare pass/fail: X11 and Wayland frames will differ in decoration rendering and antialiasing even with identical fonts and themes [R, expected]. ImageMagick is already needed for xwd conversion, so it adds no dependency. odiff and pixelmatch are optional extras; odiff flags could not be verified [U].

4. Topology

host devplace  (production, SSH only, rootless podman 5.7.0, QEMU after Phase 0)
 |
 |-- box-x11       image zucht-x11      Xvnc :1 + dbus + xfce4-session + xfwm4
 |      127.0.0.1:5901 VNC, 127.0.0.1:6080 noVNC
 |
 |-- box-wayland   image zucht-wayland  mode B: sway headless + xfwl4 --backend winit
 |      127.0.0.1:5902 VNC (view),  127.0.0.1:6081 noVNC
 |
 |-- vm-wayland    QEMU/KVM guest, rootfs = export of zucht-wayland
 |      guest: xfwl4 --backend tty --drm-device /dev/dri/card0 on VKMS (or virtio-gpu)
 |      QEMU VNC on 127.0.0.1:5903, started only for parity runs
 |
 |-- volumes: zucht-cargo, zucht-target, zucht-sccache, zucht-out
 |-- bind:    ./src/xfwl4 -> /src ; ./out -> /out (report page)

5. Images and layers

Order: cheapest-to-change last, for cache reuse.

  1. zucht-base (shared): archlinux:base@sha256:<digest> pinned, ALA snapshot date pinned, runtime libs, Mesa, DejaVu font and adwaita + hicolor icons (one font and theme set in both boxes), dbus, xorg-xwayland, fontconfig, shared-mime-info, gsettings-desktop-schemas.
  2. zucht-xfce-build (builder, discarded): rust, meson, dev headers, sccache, mold; builds /opt/xfce from the pinned 4.21 tags of xfconf, libxfce4ui, xfce4-settings, xfdesktop.
  3. zucht-x11 = base + /opt/xfce + xfwm4 + tigervnc + novnc + websockify + xdotool xorg-xprop wmctrl xorg-xwd imagemagick.
  4. zucht-wayland = base + /opt/xfce + xfwm4 (themes) + xfwl4 build output + sway + wayvnc + grim + wtype + novnc + websockify + imagemagick + seatd (guest use).
  5. zucht-dev: base + Rust + meson + dev headers + mold + sccache; the source is bind-mounted, never baked, so code edits never rebuild an image.

Size gate: each runtime image must be under 2.0 GB unpacked or Phase 0 fails and the layer list is revisited. Real sizes are [U] until measured. No Rust, no -dev packages, no pacman cache in runtime images. Toolchain pinned by rust-toolchain.toml, builds with --locked.

6. Developer experience

All through make; no memorised flags.

Target Does
make doctor read-only: podman responsive, cgroup controllers, disk floor, PSI, kvm group, QEMU present; prints the next missing prerequisite
make build builds base, x11, wayland, dev images with --layers; writes sizes to out/sizes.txt
make up / make down starts/stops the two boxes with caps; prints the SSH tunnel command and the page URL
make shell-x11 / make shell-wayland interactive shell in a box
make dev cargo build --locked in zucht-dev (niced), restart xfwl4 in the Wayland box
make vm export the Wayland image, boot the guest under a capped systemd-run --user --scope, start xfwl4 on the virtual KMS device
make shot one PNG per side into out/ (X11: xwd + convert; Wayland: grim)
make state machine-readable state dumps per side (section 7)
make compare shot + state + image score + state diff, report at out/index.html
make logs tails each box (one podman logs per container, looped)
make prune dry-run list of zucht-owned resources; deletes only with CONFIRM=1

Rust loop: CARGO_HOME=/cache/cargo, CARGO_TARGET_DIR=/cache/target, SCCACHE_DIR=/cache/sccache with SCCACHE_CACHE_SIZE=10G. sccache caches dependencies, not the incrementally compiled crate [R]. Rust on x86_64 Linux already defaults to rust-lld in recent releases [R], so mold must be measured against it before being kept (G10). cargo-chef rejected: with a persistent target volume it adds nothing. Cold build of Smithay-class dependencies takes minutes; the number goes into this file after the first run.

7. How parity is measured

Same Xfce config in both boxes: fixed xfconf seed, same resolution, font, wallpaper, autostart.

  • Screenshots: X11 xwd -root | convert; Wayland grim (xfwl4 exposes wlr-screencopy and ext-image-copy-capture, so grim works [S: src/core/state.rs]).
  • X11 window state: xprop -root, wmctrl -m, wmctrl -lGpx, xprop -id for _NET_WM_STATE, _NET_FRAME_EXTENTS, _NET_WM_ALLOWED_ACTIONS [R].
  • Wayland window state: wlr-foreign-toplevel-management, ext-foreign-toplevel-list, ext-workspace-v1, wlr-output-management are all exposed by xfwl4 [S]. No ready client is confirmed; a ~100-line client in this repo is the likely answer (G5).
  • Settings: xfconf-query -c xfwm4 -lv, -c xsettings -lv, -c xfce4-panel -lv in both boxes, sorted and diffed. Identical xfconf keys is a stated project goal, so this diff is the cheapest strong signal.
  • Input: keyboard by xdotool (X11) and wtype (Wayland, zwp-virtual-keyboard-v1 exposed [S]). Pointer is the weak spot: xfwl4 exposes no wlr-virtual-pointer, ext-virtual-pointer or libei [S: grep]. In the guest the pointer is injected through a virtual input device attached to QEMU (-device virtio-mouse-pci/usb-tablet, via the QEMU monitor), which libinput in the guest sees as real hardware (G18). In mode B the outer sway has virtual-pointer, so wlrctl/ydotool works, on the nested path only.
  • Gates: research/xfce-wayland-checklist/00-checklist.md and 01-verification.md; each gate gets a command and a recorded result instead of prose.

8. Phases (each has acceptance and a stop condition)

Phase 0: prepare the host and prove the images (no compositor)

  • Host changes, approved by you: apt install qemu-system-x86 virtme-ng and usermod -aG kvm retoor (needs a fresh SSH login, or sg kvm for the current one). Nothing else on the host changes.
  • Pin archlinux:base digest and ALA snapshot date in boxes.spec.mk.
  • Build zucht-base, then the builder producing /opt/xfce from the 4.21 tags. Settle G2 (do panel/thunar need 4.21?) and G3 (xfwm4 4.21).
  • Run the podman-compose cap smoke test (up -d, then podman inspect memory/pids/nanocpus). Decide compose vs plain podman for good (G14).
  • Acceptance: make build finishes; out/sizes.txt exists; each runtime image under 2.0 GB; zucht disk use under 20 GiB; make doctor green. Stop condition: a floor cannot be met on Arch, then redo the D2 table for Debian with source builds of libdisplay-info and rustup.

Phase 1: X11 box alive, Wayland box builds, mode B smoke

  • X11: dbus-run-session -- startxfce4 under Xvnc 1280x800; panel, desktop and xfwm4 visible through the tunnel; make shot and make state work. Settle G6 (does startxfce4 start its own D-Bus; does xfconfd activate without systemd).
  • Wayland: build xfwl4 4.21.1 in zucht-dev; record cold and incremental build times (G10); run xfwl4 --help and save the captured output into research/ (today the flags come from source, not from the binary).
  • Mode B: sway headless, xfwl4 --backend winit --no-session, then panel and xfdesktop; grim capture of xfwl4's own output. Settle G4 (EGL via llvmpipe on the nested path) and G11 (wayvnc without virtual-pointer).
  • Acceptance: both pages load through the tunnel; make compare yields a score and a state diff, even a bad one. Reported as SMOKE, not parity.

Phase 2: the guest (mode A2), the real DRM path

  • Boot the guest (host kernel via virtme-ng) with the exported Wayland rootfs, 4 vCPU, 4 GiB, under the capped scope.
  • Try VKMS first: modprobe vkms in the guest, then LIBSEAT_BACKEND=noop dbus-run-session -- xfwl4 --backend tty --drm-device /dev/dri/card0 (G16, and G9: does it start with zero libinput devices). If the compositor starts but GL fails, try --disable-gles-instancing; if kms_swrast cannot allocate on VKMS, fall back to -device virtio-vga (2D) with QEMU -vnc 127.0.0.1:3, where the scanout is also directly viewable.
  • Guest seat: run seatd in the guest, or LIBSEAT_BACKEND=noop as guest root; there is no logind in the guest.
  • Acceptance: xfwl4 shows the Xfce session on the virtual display; make compare runs with the guest as the Wayland side. From here results count as parity evidence; Phase 1 numbers stay labelled smoke.
  • Stop condition: no virtual device gives xfwl4 a usable GL context. Then parity evidence stays at protocol and state level (mode B), and that limitation is stated in every report.

Phase 3: the parity run

  • Run the checklist gates through make compare, xdg-session-management restore first (known blocker per the checklist conclusion).
  • Output: a parity table with one measured row per gate; amend research/xfce-xfwl4-parity/conclusions/parity-matrix.md through changelog rows (AGENTS.md: never rewrite silently). Disagreements between research and measurement become conclusion amendments.
  • Acceptance: every gate has a command, a result and a date.

Phase 4: repo cleanup (independent, can run during Phase 1)

  1. session/xfwl4-session.sh: implement --start (dbus-run-session -- xfwl4 --backend tty --session, which spawns xfce4-session by default [S]); remove the wrong xfwm4 --xwayland line from --dry-run, because xfwl4 replaces xfwm4 on Wayland and XWayland is a build option of xfwl4 itself [S].
  2. scripts/check-*.sh: replace file-counting with checks against the boxes (make doctor, image sizes within cap, cap values via podman inspect, compare report exists). "ALL PASS" today tests only that markdown files exist.
  3. research/xfce-wayland-phases/conclusions/phases-a-e.md: resolve contradictions with the goal and with the architecture conclusion (parity "not required", "no XWayland dependency", Phase C "replaces labwc") via a corrected conclusion and a changelog row.
  4. docs/INSTALL-xfwl4.md: its further-reading link points to the superseded state-october-2026.md; repoint to the readiness conclusion; add the boxes workflow and the SSH tunnel command.
  5. Em dashes: the Institute metadata line uses an em dash in every doc; fix mechanically after a dry-run list, and move changelog rows that landed after the Sources heading back into the Changelog table.
  6. Register in research/INDEX.md: this work becomes Tier 1 dossiers (image floors table, xfwl4 backends and protocols, X11 box tooling, host environment) plus conclusions for D1 to D11, written in the same pass.

9. Gap register

Recursive: closing a gap may open new ones; add rows, do not delete.

ID Gap Tried Closes in
G1 --backend tty in a container on a real GPU dropped: no display attached [M] not pursued
G2 Do panel/thunar/session need 4.21 for xfwl4? README requires only four libs [S]; their 4.21 availability unchecked Repology via subagent [R] Phase 0/1
G3 Is there an xfwm4 4.21 tag to use in the X11 box? Arch has 4.20.0 [M] package queries Phase 0: list tags of gitlab.xfce.org/xfce/xfwm4
G4 EGL on the nested winit path under llvmpipe source read only Phase 1
G5 Wayland-side state dump client protocols known [S] write ~100 lines (Phase 1/3)
G6 startxfce4 D-Bus in a container; xfconfd activation without systemd not run Phase 1
G7 Rolling-release reproducibility not addressed pin ALA date + digest, Phase 0
G8 No .sha256sum at guessed URL [M] tag and tarball exist [M] compute and commit hash
G9 Does xfwl4 start with zero libinput devices; guest udev data correct source only Phase 2
G10 Real timings: cold/incremental build, mold vs rust-lld, sccache hit rate none cargo build --timings, Phase 1
G11 wayvnc without wlr-virtual-pointer not run Phase 1
G12 Pointer injection in the guest via QEMU input devices designed, not run Phase 2
G13 GitLab issue comment bodies need auth; tracker discussion unread titles/lists via API [S] session token from you, or manual read of the most relevant issues
G14 podman-compose caps/healthchecks; cap enforcement via delegated controllers version only [M] Phase 0 smoke test
G15 Final image sizes and first-run time are estimates base sizes [M] Phase 0 out/sizes.txt
G16 Does xfwl4 render on VKMS with --drm-device /dev/dri/card0 through Mesa kms_swrast? source read: filter is bypassed by --drm-device [S] Phase 2
G17 Exact virtme-ng flags to boot the host kernel on a directory rootfs; how the guest gets /lib/modules and seatd recalled [R] Phase 0/2: read vng --help after install
G18 Guest input: QEMU monitor-injected devices seen by libinput design only Phase 2
G19 IOMMU inactive; passthrough would need BIOS and kernel params and a reboot of a headless production server /sys/kernel/iommu_groups empty [M] not pursued; revisit only with provider remote console available
G20 / at 86% with 59 GiB free; podman storage holds 46.9 GB marked reclaimable (other projects) podman system df [M] your decision, after listing what would go; zucht stays under its 20 GiB ceiling regardless
G21 nouveau GK208 GL level, irrelevant for the chosen path not measured not needed
G22 Host exposure of ports 9002, 9003, 10500 and the mustang listener unknown listener list truncated [M] outside zucht scope; noted in host_environment.md

10. What was researched and how reliable it is

  • Measured on this host today: base image sizes, Arch and Debian package versions against xfwl4 floors, xfwl4 tags and tarball existence, host hardware and software (all in host_environment.md).
  • Read from the xfwl4 source and README: backends, CLI flags, GPU selection logic, exposed protocols, build and runtime dependencies. Nothing was run, because xfwl4 is not built here.
  • Subagent reports: the packaging and X11-tooling tracks fetched real package pages (9 and 16 tool calls); the podman developer-experience track made 2 tool calls and fetched nothing, so everything it said about podman-compose, sccache, mold and healthchecks is [R] and none of it is a basis for a decision without the Phase 0 tests.
  • Web search on how other developers test DRM compositors: Weston runs its DRM/KMS backend tests on VKMS under virtme (Collabora, 2020); wlroots added a VKMS smoke test (2021 commit); Spectrum OS runs Wayland in VMs over virtio-gpu; wlroots' headless backend does not implement output tests. No source was found for a DRM compositor in rootless podman, nor for Smithay/Anvil test setups.

Main sources: https://gitlab.xfce.org/xfce/xfwl4 (README, meson_options.txt, src/app/cli.rs, src/core/state.rs, src/backend/udev/mod.rs); tags API https://gitlab.xfce.org/api/v4/projects/xfce%2Fxfwl4/repository/tags; https://archive.xfce.org/src/xfce/xfwl4/4.21/; https://docs.xfce.org/xfce/xfwl4/start; https://www.collabora.com/news-and-blog/blog/2020/08/07/testing-weston-drm-kms-backends-with-virtme-and-vkms/; https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4868; Repology pages for xfwm4, xfce4-settings, libxfce4ui, xfconf, libxfce4windowing, xfdesktop, xfwl4; pkgs.alpinelinux.org, archlinux.org/packages, packages.debian.org.

Changelog

Date Change
2026-10-28 Initial plan (assumed a desktop with TTY and usable GPU).
2026-10-28 Revised after host investigation: dropped host-GPU mode A, added QEMU/KVM guest (D1), disk and CPU caps and floors (D8), SSH-tunnel viewing (D9), VKMS finding from xfwl4 source (D1), IOMMU finding (G19). Added host_environment.md.
2026-10-28 Added doc header and SPEC/ADR mapping (seriousdevelopment Mode B).
144.8ms