From da5dcf46cf37ee7e127b846b9fa5a34163075858 Mon Sep 17 00:00:00 2001 From: Archipelago Date: Tue, 17 Nov 2026 09:52:57 +0000 Subject: [PATCH] D-117/D-118: Container Runner KVM and Core Toolbx --- spec/decision-log.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/decision-log.md b/spec/decision-log.md index 2c1a984..b9952c7 100644 --- a/spec/decision-log.md +++ b/spec/decision-log.md @@ -629,7 +629,9 @@ on 2026-11-04. Implementation and the explicitly open details remain pending. | D-085 | Complete the operational cycle through publication of assembled OSTree layers and new ISOs on terra, and enable daily execution at the previously agreed 00:00 UTC / 03:00 MSK. The pipeline must own progression, durable status and failure reporting without requiring repeated operator/LLM prompts. Explicit execution request, 2026-11-06. This does not extend D-079 to new identities or certify outstanding stable/testing admission gates; experimental hardware-test publication must retain its actual scope. | Accepted | | D-086 | Return all builds and VM acceptance, including Flatpak application preparation/downloads, to yabloko. Retain a persistent Flatpak repository cache and attempt updates each build. Simplify the pipeline and make its stages, logs and operation understandable to a human. The final instruction cancels the proposed tall-bridge download relay and supersedes D-084's worker placement; terra retains artifact storage, signing and publication. Explicit user direction, 2026-11-06. Existing release gates remain unchanged. | Accepted | | D-115 | Add local Host Extension archives by path: `archipelago extension add ./package.pkg.tar.zst`, with `--file PATH` as the explicit RFC-0009 form. A path is recognised by `./`, `../`, `/`, `~/` or an archive suffix; anything else is a package name, and an unknown option is an error. Each archive is imported through `HostExtensions.ImportPackage` over the protected FD (exact copied bytes, SHA-256 of the copy, `.PKGINFO` identity) under `extension-local`; import runs no scriptlets and stages nothing. One plan and one Stage then cover the complete mixed request, so names and archives are applied atomically and a local input keeps `source=local`, its retained checksum and unsupported provenance. Composition inherits the ALPM database of the selected managed base: every pacman invocation names `/usr/lib/archipelago/package-db` explicitly (the installed host has no populated `/var/lib/pacman`, which made the hardware import check fail before parsing the archive), sync databases stay bound to the base snapshot, and a base update recomposes from the new base DB. Disposable staging workspaces are removed whole on success, failure, cancellation and timeout, and a workspace untouched for a day is purged as orphaned. Hardware acceptance of the corrected import remains a user manual check. Explicit user direction, 2026-11-16. | Accepted | -| D-116 | Collect unreachable OSTree objects on installed hosts through `archipelago cleanup plan/apply` and a guarded boot timer. Plan inventories deployment roots, overlay-selected/source layer commits, Host Extension bases, current-context plan targets, repository size, and refs intentionally retained. Apply takes the shared lock, refuses live/no-booted/pending states, adds keep refs for the complete protected graph and runs only `ostree prune --refs-only`. It does not run `ostree admin cleanup`, delete deployments, or expire service/history refs: deployment retirement remains bound to OSTree finalize-staged retention, and service/history roots require D-047/D-048 evidence. It removes only its own `archipelago/keep/*` refs for commits no longer named by a deployment, active plan or retained intent, so retired deployments release their objects. Tesseract release values are quoted in `os-release`; the Container Runner Cockpit update page uses the typed system D-Bus API; Desktop Plymouth uses an Archipelago-branded BGRT-derived theme with firmware-logo display disabled. Explicit user direction, 2026-11-16. | Accepted | +| D-116 | Collect unreachable OSTree objects on installed hosts through `archipelago cleanup plan/apply` and a guarded boot timer. Plan inventories deployment roots, overlay-selected/source layer commits, Host Extension bases, current-context plan targets, repository size, and refs intentionally retained. Apply takes the shared lock, refuses live/no-booted/pending states, adds keep refs for the complete protected graph and runs only `ostree prune --refs-only`. It does not run `ostree admin cleanup`, delete deployments, or expire service/history refs: deployment retirement remains bound to OSTree finalize-staged retention, and service/history roots require D-047/D-048 evidence. It expires its own `archipelago/keep/*` refs and superseded `service/bases|overlays|overlay-builds` refs for commits no longer named by a deployment, active plan or retained intent, so retired deployments release their objects; absent optional commit metadata is tolerated, not an error. Tesseract release values are quoted in `os-release`; the Container Runner Cockpit update page uses the typed system D-Bus API; Desktop Plymouth uses an Archipelago-branded BGRT-derived theme with firmware-logo display disabled. Explicit user direction, 2026-11-16. | Accepted | +| D-117 | Give the Container Runner Purpose a complete local virtualisation stack so the stock Cockpit Machines page can run KVM guests, not only containers: `qemu-system-x86`, `qemu-img`, the virtio-gpu/virtio-vga display devices, `qemu-hw-uefi-vars`, `libvirt` with `libvirt-dbus` (the dependency of `cockpit-machines` in Arch), `dnsmasq` for libvirt's default NAT network, `dmidecode`, `edk2-ovmf` for UEFI guests, `swtpm` for emulated TPM 2.0 and `virt-install` for creating machines from Cockpit. `libvirtd.service` is enabled by the Purpose preset; libvirt state, disk images and machine definitions live in `/var` as workload state and survive OS updates and rollback. `/dev/kvm` availability and membership of the operator in the `kvm` group are documented operator prerequisites, not silently granted. Core, Desktop Purposes and the live ISO are unchanged. Explicit user direction, 2026-11-17. | Accepted | +| D-118 | Ship Toolbx and rootless Podman in Core, so they are inherited by Core-only images, Container Runner and every Desktop Purpose, and install the same upstream Arch Toolbx default (`quay.io/toolbx/arch-toolbox:latest` in `/etc/containers/toolbox.conf`) that D-076 established for Desktop Purposes. Core images therefore include the stock Arch `toolbox` package and its dependency closure (which includes `flatpak` on Arch) plus `podman`; subuid/subgid ranges come from the standard shadow allocation at account creation, and user overrides in `~/.config/containers/toolbox.conf` and existing containers are preserved. Toolbx containers are workload state in the user's home, not OS payload, and an OS update or rollback must not recreate them. This extends D-076 beyond Desktop Purposes; it does not make Toolbx a replacement for Host Extensions. Explicit user direction, 2026-11-17. | Accepted | | D-114 | Run the Zen kernel in Desktop Purposes. GNOME and KDE install `linux-zen` and remove the Core `linux`; Core, Container Runner and the live ISO keep the stock kernel. The replacement is declared in the Purpose manifest as `spec.packages.replacements` (`target: linux`, `replacement: linux-zen`, `expected_owner: core/arch`, reason) and the private layer adapter performs the removal explicitly; it may delete only payload listed in the replaced package's own `files` index, its database entry, and the module directory where that package installed `vmlinuz` (a generated initramfs there is not package payload and would otherwise leave a second, stale kernel), so a declaration never authorizes an arbitrary Core deletion, and no Purpose may drop a Core package without one. Kernel-dependent steps keep deriving the version from the single remaining `/usr/lib/modules/*` entry. Applies D-038 to the desktop baseline; explicit user direction, 2026-11-15. | Accepted | | D-113 | Show the operating-system image size in the native software centers and declare its licence as MIT. Every image commit records `archipelago.image-size` (compressed transfer bytes of the composed tree) and `archipelago.image-installed-size` (checkout bytes) as signed commit metadata, measured by `builder/adapters/image-size.py` before the final commit; clients receive them with `--commit-metadata-only`, so `GetStatus`/`GetUpdateDetails` expose `download_size`/`installed_size` before any image bytes are downloaded. Discover renders the transfer size and the installed size and reports `MIT`; GNOME Software sets the download size and the same licence. Absence of the metadata on older target commits stays "unknown" rather than a zero-byte size. Explicit user direction, 2026-11-14. | Accepted | | D-112 | Make the native software clients show real update progress and a distributor identity. `Progress.percent` becomes a monotonic 0–100 estimate: phase checkpoints keep their bands and fetching OSTree commands refine the value inside the band from libostree's terminal progress, obtained by running them under a PTY (`script -qec`) and stripping ANSI/CR redrawing. Discover and GNOME Software keep one monotonic value across `PrepareUpdate`→`Stage`, and neither renders the transient `reconciling` observation window as an update error. The `archipelago` package ships `archipelago.svg` and `archipelago-symbolic.svg` in `hicolor/scalable/apps`; Discover and GNOME Software use them for the OS resource and backend badge, and the desktop finalizers refresh the icon cache. Amends the RFC-0012 `Progress.percent` wording and client reconciliation behaviour. Explicit user direction, 2026-11-14. | Accepted |