diff --git a/rfc/RFC-0012-system-service-and-dbus.md b/rfc/RFC-0012-system-service-and-dbus.md index daaaf36..a0add00 100644 --- a/rfc/RFC-0012-system-service-and-dbus.md +++ b/rfc/RFC-0012-system-service-and-dbus.md @@ -163,6 +163,9 @@ Manager `StatusRevision: t` is a read-only property. Its `PropertiesChanged` notification tells clients to obtain a new consistent `GetStatus` snapshot. Returning a cached status never waits for a mirror. Local reconciliation may set `reconciling=true`; mutation remains unavailable until authoritative state is known. +`reconciling` describes that observation window, not a failed update: clients keep +the last known status and must not present it as an error banner while the +journal-derived update state is still valid. ### 3.4 Transaction interface @@ -186,9 +189,14 @@ Use `PropertiesChanged` and `Finished(s state, a{sv} result, a{sv} error)` signa `Finished` is advisory and may be missed; terminal snapshots remain authoritative. `Progress` keys: `message: s`, `unit: s`, `completed: t`, optional `total: t`, -`bytes_per_second: t`, `percent: u`. Omit unknown quantities. `percent` is 0–100 -within the named phase, not a fictional overall percentage. Structured phases and -error codes are stable; user-facing messages can be localized by the client. +`bytes_per_second: t`, `percent: u`. Omit unknown quantities. `percent` is a +0–100 completion estimate for the whole operation, not a count of application +work: each phase owns a fixed band and transfer progress may refine the value +inside the band when the underlying tool reports it. The value is monotonic while +the operation is active (it never decreases between checkpoints or phases), so a +client can render it directly; `Phase` stays the authoritative structured state +and progress is never the only event. Structured phases and error codes are +stable; user-facing messages can be localized by the client. ### 3.5 Results, bounds and representative flow @@ -390,6 +398,10 @@ Migrate GNOME and KDE to native asynchronous D-Bus calls and event subscriptions Reconnect on service name-owner change and obtain fresh snapshots. GNOME's download-only path remains Download; apply stages; pending restart stays explicit. Discover uses the same transactions and shows OS as a nonremovable resource. +Both clients render the transaction `Progress.percent` as the OS-update progress +bar, keeping one monotonic value across the `PrepareUpdate`→`Stage` handover, and +use the packaged distributor icon (`archipelago`, with a symbolic variant for the +backend badge) as the image identity. Timer refresh uses the service's same admission/cache path. During rollout, any legacy helper needed for compatibility must forward into this service, not retain an independent writer. Remove helper/policy once both GUI clients are migrated. diff --git a/spec/decision-log.md b/spec/decision-log.md index 0fa93c1..f9dfcdc 100644 --- a/spec/decision-log.md +++ b/spec/decision-log.md @@ -628,6 +628,7 @@ on 2026-11-04. Implementation and the explicitly open details remain pending. | D-084 | Stop the yabloko candidate pipeline and move building to root@tall-bridge; installing necessary tools there is authorized. Transfer artifacts directly to terra for storage, signing and publication. Rename the signing profile to archipelago-stable while retaining the existing fingerprint and installed-client trust. Explicit user direction, 2026-11-06. | Accepted | | 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-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 | | D-111 | Provide sleep-to-disk for Desktop Purposes: `archipelago power hibernate-setup` (root) creates a swap file `/var/swap/hibernate.swap` sized to RAM + 20%, enables it with an fstab entry, derives `resume_offset` from `filefrag`, and stages a deployment with `resume=UUID=`/`resume_offset=` through the existing kernel-argument path. The GNOME/KDE images ship the mkinitcpio `resume` hook (required by the busybox initramfs) and a `/usr/lib/archipelago/hibernate` marker; the command refuses to run on an image without it or when /var has no room, and it is explicit rather than default because the file is as large as RAM. /var is not encrypted, so the hibernation image on disk contains RAM. Explicit user direction, 2026-11-13. | Accepted | | D-110 | Replace SDDM with Plasma Login Manager in the KDE Purpose. The greeter is a Plasma session: `plasmalogin.service` carries `Alias=display-manager.service`, the Plasma Login KCM (`kcm_plasmalogin`, shipped in `plasma-login-manager`) replaces `sddm-kcm`, and no SDDM theme or `CompositorCommand` configuration is shipped. Keyboard layouts and the on-screen keyboard reach the greeter through system-wide `/etc/xdg/kxkbrc` (`LayoutList=ru,us`) and `/etc/xdg/plasmakeyboardrc` (`enabledLocales=ru_RU,en_US`), which the greeter and user sessions both read. The KDE Purpose takes `plasma-meta` as-is so Plasma's own Settings coverage stays complete and upstream component changes are accepted. Supersedes the SDDM parts of D-089/D-091/D-107. Explicit user direction, 2026-11-13. | Accepted | | D-109 | Make the console independent of the renderer. Core, Container Runner and the live ISO keep the plain kernel console with Terminus (`vconsole.conf`) and getty on tty1; kmscon stays enabled only for GNOME/KDE, which ship mesa, on the VTs logind opens (tty2+). A packaged `getty@tty1` vendor drop-in runs `/usr/bin/archipelago-console-login`, so onboarding no longer depends on kmscon. Diagnosis: every kmscon render engine needs `libEGL`/`libgbm`/`libGLESv2` from mesa, which the Arch package does not depend on and Core/CR/ISO do not ship, so kmscon could not start; the onboarding drop-in was written under `runtime/etc`, which the package recipe silently discarded (now a build error). Corrects D-102's "no mesa dependency" claim and the kmscon-on-tty1 parts of D-102/D-104. Explicit user direction, 2026-11-12. | Accepted |