diff --git a/rfc/RFC-0012-system-service-and-dbus.md b/rfc/RFC-0012-system-service-and-dbus.md index a0add00..5a5368e 100644 --- a/rfc/RFC-0012-system-service-and-dbus.md +++ b/rfc/RFC-0012-system-service-and-dbus.md @@ -147,7 +147,9 @@ advertised. Clients require their minimum feature set before enabling actions. - `booted`, `pending`, `desired`: `a{sv}` each; absent deployment is an empty map; - `update: a{sv}`: `state: s` (`unknown`, `current`, `available`), `target: s`, `checked_at_usec: t`, `stale: b`, `details_state: s` - (`unknown`, `fetching`, `ready`, `error`) and `last_error: a{sv}`; + (`unknown`, `fetching`, `ready`, `error`), `last_error: a{sv}`, and, when the + selected target commit records them, `download_size: t` and + `installed_size: t` (see the image metadata note below); - `active_transactions: ao`, `reconciling: b`. Deployment dictionaries include `deployment_id: s`, `checksum: s`, @@ -211,8 +213,9 @@ cannot provide this guarantee must return Unsupported, not a misleading ready fl Details results include `package_changes: aa{sv}` with `name: s`, `kind: s` (`added`, `removed`, `changed`), optional `old_version: s`/`new_version: s`, and `scope: s` (`managed-base`). It must not masquerade as the final effective extension -diff. Report known side effects in `effects` even for failed/interrupted results. - +diff. When the target commit records them, details and status also carry +`download_size: t` and `installed_size: t` in bytes. Report known side effects in +`effects` even for failed/interrupted results. Timestamps are UTC microseconds since Unix epoch; elapsed deadlines use a monotonic clock. IDs/checksums are validated before journal/path access. Cursors are opaque, service-generated and bound to the requested resource; limits must be nonzero and @@ -241,6 +244,25 @@ Before an operation ID is received, retry the same idempotent request to discove its transaction. A daemon restart invalidates old object proxies, not the durable operation/request identity. Do not rely solely on receiving Finished once. +### 3.6 Image size metadata + +Software centers must show an update's size before downloading it. The target +commit therefore carries the numbers as signed commit metadata: + +| Metadata key | Value | Meaning | +|---|---|---| +| `archipelago.image-size` | decimal string | Compressed bytes transferred by a pull of the composed tree (unique file and directory objects) | +| `archipelago.image-installed-size` | decimal string | Bytes occupied by the checked-out tree | + +The builder measures the composed tree with `builder/adapters/image-size.py` +from a dangling commit and records both values on the published branch commit. +`Refresh` inspects the metadata after `pull --commit-metadata-only`, so the +service reports `download_size`/`installed_size` without transferring image +bytes. The values are advisory for display only: they do not authorize, +stage or reject an update, and a commit without them leaves the size unknown +rather than zero. The native clients also declare the distributor licence `MIT`; +that is static client metadata, not part of the commit or the transaction. + ## 4. Authorization policy Determine UID and session from the authenticated D-Bus sender, Polkit and logind; diff --git a/spec/decision-log.md b/spec/decision-log.md index f9dfcdc..71a6cc1 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-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 | | 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 |