This chapter states how mature each part of KDOS is and what each verdict rests on. It is for anyone deciding whether to try KDOS, what to rely on once it is running, or where a contribution would help most. It assumes the vocabulary of the Architecture overview; read that first if terms such as KWin, box or pack are new.
Every status table below has three columns: the subsystem, a verdict, and the evidence. The evidence
is always something a reader can check: a test in testing/selftest.sh, testing/plasmatest.sh or
testing/preflight.sh, a recorded fixture (a frozen copy of the machine state a program reads,
such as a /proc tree or a device tree), a script run on a booted image, or daily use. Where the
evidence is weaker than the verdict suggests, the row says so. Other terms, such as lane and
rig, are defined in the Glossary.
The companion chapter Known gaps lists what does not exist at all.
KDOS is at v0.2, the version the repository README also names. The system reads its
version from fs/etc/os-release (VERSION="0.2"), and a release build and
ports/publish --release both refuse a tag that is not that file’s VERSION_ID with a v before
it.
The v0.2 line is a desktop built on KDE Plasma 6.8, KDE Frameworks and KDE Gear (all but five Gear modules, which cannot run here), with KDOS’s own packaging, boxes, updates, daemons and identity around it. Its interfaces are stable enough to describe, which is what this book does. It comes with no support commitment, no migration guarantee between lines and no tested hardware list: whoever runs it is the integrator. See Why KDOS.
The v0.2 release on GitHub (kunaldawn/kdos, marked Latest) carries:
SHA256SUMS and the release key;The ISO holds the base, the closure of
ports/base. Beside the release, the binhost-v0.2-<NN> pre-releases carry every package the
release built, and image-v0.2 its signed slot image (a whole system image for an A/B update); a
machine finds both through the release’s signed index. The numbered sources-<N> pre-releases are
the source archive described under Host and packaging and carry no image.
v0.1 carries the v0.1 image.
Downloading and installing the release is in Getting started; how a release is made is in Developing.
The verdicts, from most to least mature:
| Verdict | Means |
|---|---|
| Stable | Used daily, exercised by the test harness, and changes to it are additive |
| Beta | Complete and exercised under real conditions, but not across the range of cases it must handle |
| In progress | Works, and is incomplete or unexercised in the places the row names |
| Experimental | Present, and not to be relied upon |
The host (the ports tree, the package manager, the build system and reproducibility) is the most mature part of KDOS and the most thoroughly checked, because every other part of the system is produced by it. Its least exercised piece is the source archive: its index names 3,069 archived files, and its scripts and index are checked for soundness, but no harness publishes to it or fetches from it end to end.
The desktop is the least proved part.
testing/flows/ that run on
the ISO (automatic login, locking and unlocking with the password, a refused suspend, switching
to a text console and back, and no keystroke reaching a console) pass.testing/siteshots.sh photographs both for kdos.dev.The rows below say which applies to each part.
The pack lane, from an installed pack to a composed box, works end to end on a booted machine that holds packs, exercised by a harness that reports each skip with its reason rather than passing silently.
The natively ported applications are mostly unproved. The lists of the userland phases,
40_lang to 44_apps, name 2,188 recipes for the languages, the system, the graphical stacks,
the toolkits and the applications, every source fetched and hashed. On the live ISO under QEMU,
Dolphin, Konsole, Kate, Okular, Discover, System Settings, KRunner, Welcome Center and the
graphical installer start and draw, each photographed for kdos.dev. Every other application with
an entry in the application menu has been started once from that entry on an image; none has been
used beyond starting, and none has been installed from a published binhost under a harness (see
Known gaps).
A package in the build tree is current when its recipe’s kp_recipe_hash equals the one recorded
under /var/lib/kpkg/db/.recipe/, and the next build rebuilds every package that is not. See
Applications and boxes below. KDOS builds for x86_64 only.
The host is everything that builds and installs KDOS itself: the ports tree, kpkg, the build
orchestrator and the source archive. See Packaging and
How KDOS is built.
| Subsystem | Status | Evidence |
|---|---|---|
| The ports tree | Stable | 2,446 recipes, 2,402 of them upstream ports on 102 shelves, listed by shelf in the Ports catalogue. Preflight checks that every recipe parses, sits where the layout says under a name no other port has, and that every dependency resolves |
| kpkg, the package manager | Stable | It has built the whole tree. The self-test builds and installs synthetic ports through it: ownership under merged /usr, the shared indexes a package feeds, and skip-if-installed comparing the recipe hash are each asserted, and a staged tree that breaks a packaging rule is refused with that rule’s message |
| Reproducible packages | Stable | The self-test builds one synthetic port twice, the second time with umask 077, TZ=Asia/Kolkata, XZ_OPT='-e --check=sha256 -T1' and a 300 MiB XZ_DEFAULTS memory limit, and requires the two packages to be byte-identical, owned by uid and gid 0 with epoch modification times, and equal to their tar recompressed on two threads with xz -9 --block-size=32MiB. It also installs the port through kpkg install, once with the deleted xz -0 package and once with a kept cache that must match the -9 bytes. Full-size ports are not rebuilt twice by any harness |
| The build system | Stable | It builds the distribution. The self-test drives kdosbuild headless over a synthetic two-phase tree: a build, a snapshot, a restore that resumes after it, plan narrowing (which suppresses snapshots and sets KDOS_REPLAY), a deliberate failure that stops the build without a snapshot, and the --json event stream; a second fixture checks that a chroot package phase runs no step for a port installed and current, and does run one for a forced, an edited (before the phase or during it) or an unfindable port. kdosbuild --selftest separately asserts the view geometry, the log classifier, the retry of a failed phase, the jobserver and the merge of build/snapshots/timings.json, with the machine each figure is filed under. The KDE ports of 43_toolkits, 44_apps and 50_desktop have not been through a full build |
| Snapshots and plans | Beta | Used by every incremental build, and by the synthetic-tree run above. Layered snapshots have been through synthetic trees only: the self-test’s three-phase fixture, and a ten-phase tree emulating the distribution’s phases with package installs, in which every phase’s restore, including after a restore into fresh inodes and after a retaken phase, matched the tree it came from entry by entry. No real build has written a layered set yet |
| Upstream sources | In progress | ports/sources.idx names 3,069 files archived in the sources-<N> releases: every recipe-hashed source git does not carry in a port directory, and files whose hash no recipe names. Preflight checks the scripts and the index; no harness publishes to or fetches from the archive |
| The pack format | Stable | Malformed footers, both footer formats, signature states and a flipped payload byte are each asserted by the library self-test |
| The binary host | In progress | Signing, the index and deltas are asserted against a synthetic port, and kdos update installing only what a signed index covers is asserted against a fixture binhost. make build KDOS_MAKE_BINHOST=1 writes a signed one to build/binhost/ with its release index, and ports/publish --release publishes it sharded across releases of at most 1,000 assets, the v0.2 binhost among them. The self-test asserts kdos update install against a fixture binhost: a port prebuilt, a port planned as a build here, a group by its members, an install into another root (prebuilt only), the installer’s pending record, and a package whose origin is source counted as a build rather than looked for in the index. No machine has installed a port from the published binhost under a harness |
| Updates | In progress | The self-test signs a slot image, rebuilds it from a seed root and its delta, refuses a tampered one, carries a machine’s configuration into an armed slot, writes a newer image into the inactive slot, and arms only a slot an acquire filled. The release index is asserted to split 2,001 files 1,000, 1,000 and 1 in path order, to find a slot image through its sharded, signed form, and to be refused unsigned, signed by an untrusted key, edited, for another release, with no releases root, or naming a file of other bytes; a binhost index or manifest it does not name is never offered. kdos-sysupdated is driven over fixture slots the way Discover calls it, its API diffed against Discover’s own. kpkg fetch’s archive-then-upstream order and its refusal of a copy with the wrong hash are asserted. The self-test also asserts that a slot image carries the base alone, and that a port installed on purpose which the release’s binhost does not hold refuses the image lane before the slot is written unless it was built here. v0.2 is the first release to publish a binhost and a slot image, so there is no later release for an installed machine to update to, and no update has been applied on one. See Known gaps |
| The application catalogue | Stable | 69 applications and 2 datasets over 7 runtimes and 2 base packs, offered in 7 groups (17 group lines). Preflight checks the catalogue’s rows against the tree. Applications are built on demand on the machine; the image carries the catalogue and no applications |
What each of the shortened rows above rests on:
20_selfhost (its list names 9), 127 by 30_foundation (its
list names 138, 11 of them installed by 20_selfhost), 22 by 31_compilers, 186 by 40_lang,
1,047 by 41_system, 189 by 42_graphics, 344 by 43_toolkits, 422 by 44_apps, 92 by
50_desktop and 2 by 60_kernel; python3 testing/phaseclosure.py prints these figures, and
testing/bookcounts.py fails on a recipe that no phase installs unless ports/unbuilt names it.
On a built tree, the absent names are what comm -23 prints when it compares the names of the
directories holding a kpkgbuild (ports/core/*/*/kpkgbuild and src/*/*/kpkgbuild), sorted
under LC_ALL=C, against ls build/fs/var/lib/kpkg/db.
testing/preflight.sh checks that every recipe parses as metadata, declares
a name, version and release, has a build.sh that parses, carries the KDOS banner and names a
hash for every source; that every recipe sits on a shelf ports/shelves lists, under a name no
other port has; that every depends names a port that exists; that every phase’s list resolves
to a dependency order; and, through testing/phaseclosure.py, that every package phase from
30_foundation on installs exactly the ports its list names, and that each port of 41_system
to 44_apps is in the phase its closure gives it.ports/fetch (run by make fetch) resolves every recipe hash from the port
directory, the cache ports/.srccache, the kunaldawn/kdos archive or upstream, and regenerates
a port’s own vendor bundle when none of those holds it. ports/publish uploads new sources and
can freeze a release’s hash list; script/hooks/pre-push refuses a push that breaks the ports
layout, adds or changes a patch without a Subject: line, leaves either book failing
testing/docscheck.sh or testing/kfscheck.py, or names a hash the archive does not hold,
checking every part of a file stored in parts. ports/sources.idx is in format 2, so make
fetch can take every file from the archive when neither the port directory nor the cache holds
it, and asks upstream only when the archive gives no copy that verifies.
Preflight checks that the four scripts (ports/srclib.sh, ports/fetch, ports/publish and
the hook) parse, that
git tracks no recipe-hashed archive, that the ignore rules cover every source suffix, and that the
index holds every format-2 rule: its first line, well-formed lines, known shelf tags, one line per
hash, unique asset names within a release, and hash order. The pre-push hook runs only in a clone that has enabled it. See
Packaging.See Boot and init and kinstall.
| Subsystem | Status | Evidence |
|---|---|---|
| Boot and init | Stable | The ISO boots under QEMU to the live Plasma session. Preflight checks that the ISO script builds every boot path: BIOS and UEFI, from a disc (El Torito) and from a written stick (the partition table); and that every program fs/etc/inittab names is on the image. The self-test draws both splash motions and checks that the command line picks one |
| The login | Experimental | kdos-dm runs SDDM’s Wayland greeter, which SDDM calls experimental, and falls back to a console prompt; kdos-session-wrapper starts Plasma on the one session bus. elogind, turnstile and the user services are new to the image: the self-test runs the turnstile backend’s start and stop order and the per-user timers. On the live ISO the login flows of testing/flows/ pass: the automatic login opens an active Wayland session whose Plasma probe passes, and the lock screen, a console switch and a refused suspend each return to it. A password login through the greeter and a logout back to it (flows 02 and 03, which need an installed disk) have not run. See Known gaps |
| A/B root slots | In progress | The state machine is complete and asserted on the build host: each slot boots its own kernel, the menu follows the state, a bad update led by the menu rolls itself back after three boots, and on UEFI a candidate gets one boot through BootNext. A trial is kept only when both halves of its bless are in, the end of rcS and a Plasma session that stayed up, which kdos-notice’s and kdos-sysupdated’s self-tests assert. The installer makes and fills slot B on an LVM erase install. On an installed virtual machine with UEFI firmware, slot B’s own kernel booted through BootNext, a menu-led trial confirmed, and a hung trial rolled back to the confirmed slot; no physical firmware has run a trial; see Known gaps |
| Encrypted root | In progress | The initramfs unlock path is exercised against stub tools, with no encrypted volume and without root privileges. The initramfs unlocks the chosen slot’s own container, and rolling from slot B back to A is asserted to hand back A’s container. A second encrypted slot has never been booted |
| kinstall, the installer | In progress | The terminal wizard installs, exercised on a disk by testing/install-to-disk.sh. kinstall --dump probe and --dump plan print what it sees and what it would run without installing anything; the self-test asserts the plan against saved answers, the event stream the graphical installer reads, the Plasma files it writes for the new machine and the A/B layout. Preflight checks that every filesystem it offers can be mounted by the initramfs. The graphical installer, kdos-installer-gui, has its QtTest suite and has not been run on a booted image |
See The session and the chapters of The programs.
| Subsystem | Status | Evidence |
|---|---|---|
| Plasma, KWin and the Gear applications | Experimental | Upstream’s, at Plasma 6.8.2, Frameworks 6.31 and Gear 26.08.2, each pinned by a recipe with its flags explained in its kfs.md. KWin carries three KDOS patches, and plasma-workspace, libksysguard and others carry their own. Built into the ISO, the live session starts under QEMU with software rendering, with the shell, KWin, Dolphin and Konsole running, and testing/plasma-probe.sh, which checks that the session is whole, passes in the automatic-login flow. What the session costs in start-up time and memory is unmeasured; testing/session-cost.sh is the harness that measures it |
| KDOS’s settings pages | In progress | Boxes, Firewall, Health, KDOS Look and System Versions each have a QtTest suite in make plasmatest, run against fake daemons that serve the same bus names. The root daemons behind them are asserted by the self-test |
| The Plasma integration | In progress | kded-kdos, the KDOS runner, kdos-notice, the library worker, the System Monitor plugin, the privacy and checklist widgets, Transcribe, the key card and the KWin scripts each have their tests: QtTest where they are Qt, the self-test where they are C (kdos-runner and kdos-notice are). testing/defaultscheck.py and testing/xdgcheck.sh read every KDOS default for a KDE program back, testing/lnfcheck.py holds the global themes and desks to what Plasma reads, and testing/chordcheck.py finds a chord bound twice |
| Discover and system updates | In progress | kdos-discover’s backend and notifier have QtTest suites over fixture catalogues and a fake io.kdos.Slots1. kdos-sysupdated answers a stock Discover’s calls over fixture slots in the self-test. Discover starts on the live image and shows the catalogue, and opens with an “Update Issue” dialog there. No update has reached Discover on a booted image |
| Phosphor mode | Experimental | kdos phosphor is asserted to put back every key it changed. The KDOS motion effects have run in a headless KWin on software rendering with animations forced, which shows the motion and says nothing about its cost on a GPU; the CRT pass refuses software rendering and has not been seen. See Known gaps |
The kdos command |
In progress | The self-test compiles kdos-tools and runs most of the 44 subcommands against fixtures or a fake session bus: app, appid, backup, checklist, clone, cve, desk, doctor, help, hey, hostname, keymap, locale, march, menu, notify, panel, persist, phosphor, places, privacy, rebuild, remind, share, speech, theme, thumb, tiling, timezone, toggle and update among them. See The kdos command |
| The theme system | Stable | kdos-theme generates every accent’s colour scheme, editor theme, Konsole profile, qt5ct palette, wallpaper and greeter look at build time and fails the build on a scheme below its contrast floor. kdos theme --audit re-runs the terminal programs’ generators and compares, and the self-test requires an edited, a deleted and a stray file each to be caught and repaired, and an accent change in a session to move only what is KDOS’s |
| Accessibility | Experimental | testing/atspi/ dumps each KDOS surface’s AT-SPI tree and compares it with a committed golden on a booted image; make atspi-selftest checks the dump format on fixtures, and no golden has been taken from an image yet. Orca has not been heard on one |
See Packs and boxes and kdos-appbox.
| Subsystem | Status | Evidence |
|---|---|---|
| kdos-packd | Beta | The self-test runs kdos-packd --fixture, which solves and composes without mounting: it asserts the lowerdir order (application, runtime, base), signature verification, the refusal to compose a data pack into a box root, and that a store holding <id>.kpack and a kept <id>-<version>.kpack lists the installed one alone. On a booted machine that already holds packs, testing/packlane.sh installs a pack, mounts it read-only, composes a box and reports each skip with its reason. The image carries no packs, so they must be imported before that harness can pass. Rollback is not exercised by any harness |
| Boxes | Stable | One box per application. The self-test asserts that a box profile prints the podman flag behind every key, reports an unknown key by name, and says which keys it cannot enforce rather than reporting success; that a launch hands a box only its own sockets or does not start; and that a throwaway box gets one file, no network and nothing of the host |
| kdos-appbox | Stable | Every boxed launcher goes through it. The self-test asserts launcher generation from an image’s desktop entries, that a boxed launcher is named with the app id KWin gives its windows, that a second box’s launcher cannot collide with the default’s, and that kdos-appbox open resolves a path to the program that opens it |
| Native applications | Experimental | 766 recipes in 43_toolkits and 44_apps, with their dependencies in 40_lang to 42_graphics, from the X11 client libraries, GTK, Qt 6 and 5, QtWebEngine, KDE Frameworks 6, WebKitGTK and wxWidgets up to the browsers, office suites, KDE Gear, creative, science, radio and CAD applications, games and emulators, each named in the list of the userland phase that builds it, 40_lang to 44_apps, in the file of its shelf. Every source is fetched and its hash recorded. Each is installed by the phase whose list names it, and each with an entry in the application menu has been started from that entry on an image; using them has not been measured. See Known gaps |
| kdos-boxsock | In progress | Every boxed client is tagged through it with the security-context-v1 protocol (which marks a Wayland connection as coming from a sandbox), and KWin, through KDOS’s sandbox-policy.patch, grants a box a global only when its profile names it. The self-test compiles it against the protocol; the patched KWin has not refused a box on a booted image |
See The daemons.
| Subsystem | Status | Evidence |
|---|---|---|
| kdos-powerd | Beta | The self-test asserts through --explain and a fixture /etc that root and wheel may change the firewall, the accent and the splash without a prompt, that anyone else is asked of polkit, and that a group whose name merely starts with wheel is not admitted; and the io.kdos.Power1 face over a test bus |
| kdos-settingsd | In progress | The self-test keeps hostname1, timedate1 and locale1 in the files KDOS reads, over a fixture tree, with every consumer’s call checked against the KDE 6.8.2 sources; the bus half runs only where sd-bus headers exist |
| kdos-sysupdated | In progress | See Discover and system updates above |
| kdos-energyd | In progress | Asserted against four recorded power and process trees: nested RAPL domains (the processor’s energy counters, where one counter can include another) are not double-counted, a wrapped counter is handled, a boxed application’s processes roll up to it, and exited processes are accounted separately. Its report reaches kdos-energy and System Monitor’s KDOS sensors, and the readings are relative by design |
| kdos-mdnsd | In progress | Not a root daemon: it answers .local names for NetworkManager’s dnsmasq, as nobody. The self-test (testing/fixtures/mdnsd/drive.py) runs its parser, answer builder and event loop against crafted packets (good ones and broken ones a resolver must refuse) and a fake avahi-daemon that answers, holds or hangs up, and also under the sanitizers when CC asks for them. It has not answered a lookup on a booted image under a harness; see kdos-mdnsd |
| kdos-oomd | Beta | Victim selection is asserted against three recorded trees, one arranged so that only the memory budget can produce the right answer, and one of them replayed with a meminfo at 80% available, where no process is chosen. It has fired on a real machine: testing/oomd-fire.sh on a 4 GB guest took full memory pressure (the kernel’s PSI measure of time during which every task stalled) to 158 ms against a 150 ms trigger, and the socket went from kills 0 to kills 1, last: python3 (pid 1615, 3644 MB). No run has had to choose between several large processes, and the Plasma processes it protects have not been in a run |
| Subsystem | Status | Evidence |
|---|---|---|
| The C libraries | Stable | 9 libraries, compiled with warnings as errors, with one shared assertion program (src/libs/selftest.c) and a check that every consumer still compiles against them. The suite can be run under the address and undefined-behaviour sanitizers with CC="cc -fsanitize=address,undefined -g" testing/selftest.sh; see The C libraries |
| The test harness | In progress | 76 preflight checks, 135 self-test blocks, the Qt suite in make plasmatest, 33 recorded fixture sets, and seven login flows, five of which pass on the live ISO. The rig’s Plasma harnesses (make session-probe, make shots, make atspi) have not been run against an image of this desktop |
| The QEMU rig | Stable | Drives a real session, photographs it, and runs scripts inside the guest |
| The documentation | In progress | This book. Structural facts are taken from the tree; some measurements, such as the kdos-oomd run above, are quoted rather than re-taken. See Known gaps |
Four shipped programs carry no verdict here, because no harness exercises their behaviour: the box
init kdos-boxinit; the boot splash kdos-splash as it runs at boot, which the self-test replaces
with true when it runs the initramfs; the terminal demo kdos-bb, described in
kdos-bb; and the Welcome Center pages, of which only the rules of the
Make It Yours page’s group list have a test. The icons, wallpapers, sounds,
login theme and add-ons (kdos-icons, kdos-wallpapers, kdos-sounds, kdos-sddm-theme,
kdos-addons) are artwork and carry no verdict.
These are the sizes of the tree, for anyone checking a claim elsewhere in the book. Each row gives the command or source location that produced it: run the command at the top of a clean checkout and you should get the same number.
| Measurement | Value | Command |
|---|---|---|
| Port recipes | 2,446 | find ports/core src/system src/art src/desktop src/daemons -name kpkgbuild \| wc -l |
— in ports/core |
2,402 | find ports/core -name kpkgbuild \| wc -l |
— in src/system |
8 | find src/system -name kpkgbuild \| wc -l |
— in src/art |
8 | find src/art -name kpkgbuild \| wc -l |
— in src/desktop |
21 | find src/desktop -name kpkgbuild \| wc -l |
— in src/daemons |
7 | find src/daemons -name kpkgbuild \| wc -l |
| Shelves | 102 | grep -cvE '^(#\|$)' ports/shelves |
| Archived source files | 3,069 | grep -cE '^[0-9a-f]{64} ' ports/sources.idx |
| Native groups | 22 | grep -c '^group ' ports/groups |
| Catalogue applications | 69 | grep -c '^app ' src/system/kdos-appbox/catalogue |
| Catalogue datasets | 2 | grep -c '^data ' src/system/kdos-appbox/catalogue |
| Catalogue runtimes | 7 | grep -c '^runtime ' src/system/kdos-appbox/catalogue |
| Catalogue base packs | 2 | grep -c '^base ' src/system/kdos-appbox/catalogue |
Catalogue group lines |
17 | grep -c '^group ' src/system/kdos-appbox/catalogue |
| Catalogue groups | 7 | awk '$1=="group"{print $2}' src/system/kdos-appbox/catalogue \| sort -u \| wc -l |
| Kernel | 7.2.11 | grep '^version' ports/core/*/linux/kpkgbuild |
| C libraries written here | 9 | ls -d src/libs/*/ \| wc -l |
kdos subcommands |
44 | the verbs kdos_dispatch() in src/system/kdos-tools/kdos.c answers, counting help and each spelling once |
Names kdos-tools answers to |
12 | the TOOLS[] table in src/system/kdos-tools/main.c |
Names kpkg answers to |
5 | the TOOLS[] table in src/system/kdos-kpkg/main.c |
| KDOS settings pages | 5 | ls -d src/desktop/kcm-kdos-*/ \| wc -l |
| Qt test suites | 19 | ls -d src/desktop/*/tests/ \| wc -l |
| Accents | 8 | the KCOL_SCHEMES macro in src/libs/libkcolor/kcolor.h |
| Build phases | 13 | ls -d script/phases/*/ \| wc -l |
| Preflight checks | 76 | grep -c '==>' testing/preflight.sh, less the one that builds kpkg |
| Self-test blocks | 135 | grep -c '^echo "==>' testing/selftest.sh |
| Recorded fixture sets | 33 | ls -d testing/fixtures/*/ \| wc -l |
Distinct KDOS_* variables read |
210 | the command below |
The variable count is the union of getenv("KDOS_*") calls under src/ and $KDOS_* references in
the build scripts, the sources, the root filesystem, the harnesses, the source-archive scripts and
the Makefile:
{ grep -rhoE 'getenv\("KDOS_[A-Z0-9_]+' src | sed 's/getenv("//'
grep -rhoE '\$\{?KDOS_[A-Z0-9_]+' script src fs testing ports/fetch ports/publish \
ports/srclib.sh ports/update Makefile | sed 's/^\${\{0,1\}//'
} | sort -u | wc -l
Part VI — Reference, chapter 44. Previous: 43. Known gaps · Contents · Next: 45. Glossary