From 3375a297307071d6cd2c5930923a1a42babe7d8a Mon Sep 17 00:00:00 2001 From: Pavel Isaev Date: Sat, 7 Nov 2026 19:27:56 +0300 Subject: [PATCH] Accept D-094 local import and D-095 native host management without PackageKit --- README.md | 13 ++++- rfc/RFC-0004-host-extensions.md | 14 +++-- ...RFC-0013-host-management-and-packagekit.md | 58 ++++++++++++++----- spec/decision-log.md | 41 +++++++++++++ spec/gnome-desktop.md | 17 ++++-- spec/kde-desktop.md | 16 +++++ spec/open-questions.md | 19 +++++- 7 files changed, 150 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 04cf4ae..05f6a23 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,18 @@ ## Documents -- [RFC-0013: Host management and PackageKit](rfc/RFC-0013-host-management-and-packagekit.md) — +- D-095 (2026-11-07) removes PackageKit. Stock Arch GNOME Software/Discover keep + packaged native Archipelago OS D-Bus plugins and Flatpak; Host Extension package + installation uses the CLI and typed daemon API. Earlier PackageKit requirements + are superseded, while D-092/D-093 daemon and overlay contracts remain active. + +- D-094 (2026-11-07) permits explicit administrator-authorized import of unsigned + local packages with retained checksums and local/unsupported provenance; + repository signatures remain mandatory. See RFC-0013 §4.3 and the decision log. + +- [RFC-0013: Host management](rfc/RFC-0013-host-management-and-packagekit.md) — accepted D-093: `archipelagod`, typed Host Extension/Managed Overlay interfaces, - PackageKit backend and installed-host CLI routing; implementation pending. + installed-host CLI routing, amended by D-095; implementation pending. - [RFC-0012: System service and D-Bus](rfc/RFC-0012-system-service-and-dbus.md) — accepted D-092 (2026-11-07): installed-system daemon, per-action Polkit, diff --git a/rfc/RFC-0004-host-extensions.md b/rfc/RFC-0004-host-extensions.md index 25a3d35..907f709 100644 --- a/rfc/RFC-0004-host-extensions.md +++ b/rfc/RFC-0004-host-extensions.md @@ -49,10 +49,16 @@ This policy does not prohibit users from reporting bugs in unmodified Archipelag ## 3. No direct mutation of the live system -D-093 accepts native-package management through PackageKit's Archipelago backend -and direct CLI use of the same `archipelagod` D-Bus interface. Both create checked -plans and staged deployments; PackageKit is not the ALPM live-host backend or an -independent resolver. Snapshot-bound identities, FD import of local files, original +D-094 permits unsigned local `.pkg.tar.zst` inputs after explicit administrator +authorization using `extension-local` and protected FD import. Retain exact copied +bytes/checksums and local provenance; import itself runs no scriptlets and performs +no deployment mutation. Applied local inputs remain unsupported. Repository package +signatures remain mandatory. This policy does not relax full-set reapplication +or explicit enablement. + +D-093 as amended by D-095 accepts native-package management only through the CLI +and direct `archipelagod` D-Bus interface. It creates checked plans and staged +deployments; PackageKit is excluded. Snapshot-bound identities, FD import of local files, original caller authorization, ownership/removal limits and pending/restart UX are defined in [RFC-0013](RFC-0013-host-management-and-packagekit.md). Existing enablement, provenance, atomic reapplication and persistence contracts remain binding. diff --git a/rfc/RFC-0013-host-management-and-packagekit.md b/rfc/RFC-0013-host-management-and-packagekit.md index 97e92a1..fd6b8c2 100644 --- a/rfc/RFC-0013-host-management-and-packagekit.md +++ b/rfc/RFC-0013-host-management-and-packagekit.md @@ -1,12 +1,22 @@ -# RFC-0013: archipelagod, Host Extensions, Managed Overlays and PackageKit +# RFC-0013: archipelagod, Host Extensions and Managed Overlays - **Status:** Accepted — D-093, explicit user approval 2026-11-07 -- **Version:** 1.0 contract; implementation pending -- **Scope:** Installed-host D-Bus control and PackageKit Host Extension adapter +- **Version:** 1.2 contract; implementation in progress (D-094/D-095) +- **Scope:** Installed-host D-Bus control, CLI Host Extensions and native OS plugins - **Extends:** RFC-0012 / D-092; refines RFC-0001, RFC-0002, RFC-0004 and RFC-0009 ## 1. Accepted direction +**D-095 amendment (2026-11-07):** PackageKit is removed from project dependencies, +image contents and integration. Host Extension package installation uses only the +CLI and direct typed archipelagod API. Stock Arch GNOME Software/Discover retain +Flatpak and native Archipelago OS-update plugins packaged inside OSTree. No store +rebuild or PackageKit adaptation is required. Section 6 is historical/superseded, +including PackageKitBroker; it is not an implementation requirement. The filename +is retained to preserve existing links. All earlier PackageKit-specific statements +in this RFC are superseded by this amendment; other daemon/extension/overlay +contracts, including D-094 local input authorization, remain in force. + `archipelagod` is the installed-system authority for Archipelago operations. The `archipelago` CLI, native OS-update plugins, PackageKit adapter and future host-management UIs are clients of its typed system D-Bus interfaces. The daemon @@ -192,8 +202,15 @@ Enforce import quota/size and request ownership, do not expose private paths in public responses, and remove only unreferenced transient partial copies on failure. Committed local inputs/history retain their existing explicit-cleanup policy. Import never changes the source classification to repository even if name/version -match. Required local signature/unsigned-input handling follows the configured -trust contract; PackageKit cannot weaken it by a transaction flag. +match. D-094 permits unsigned local packages through explicit administrator +authorization under `extension-local`. Preserve the exact imported bytes/checksum +and local provenance; importing does not execute scriptlets, enable the feature +or stage anything. Applied local inputs remain unsupported. Repository package +signatures remain mandatory; administrative local import does not classify an +unsigned package as repository-trusted. PackageKit `only-trusted` must reject such +an input even though an explicitly authorized ordinary local import is permitted. +Retained local inputs may be reapplied unchanged under the existing OS-update +contract; they must not be replaced or silently dropped. ## 5. Managed Overlay interface @@ -238,7 +255,10 @@ General overlay composition is required before advertising managed-overlays-v1. The existing test-marker prototype is not an implementation of this interface. Layer serialization and general release-gate evidence remain their own contracts. -## 6. PackageKit integration and role matrix +## 6. Historical PackageKit integration — superseded by D-095 + +The following section records the previous D-093 contract only. Do not implement +or ship its backend, broker, store adapters, roles or frontend requirements. Architecture: @@ -405,11 +425,11 @@ protected local file locations and raw logs require the separate read authorizat ## 8. Packaging and migration Ship archipelagod, bus activation/policy, Polkit actions and CLI bindings in Core. -Desktop Purposes add PackageKit, the **Archipelago** backend, and working native -PackageKit frontend integration alongside native OS/Flatpak/fwupd backends. -The daemon remains authoritative even when PackageKit is absent on Core/Server/IoT. +Desktop Purposes add stock GNOME Software/Discover and Archipelago native OS +D-Bus plugins alongside Flatpak/fwupd. PackageKit packages, libraries, Qt bindings, +custom backend and broker are excluded on every Purpose and Core (D-095). -Current source constraints to remove deliberately: +Historical D-093 migration checklist, cancelled by D-095: - GNOME native OS plugin declares a global PackageKit conflict; narrow ownership to the OS resource so native Host Extension applications can coexist. @@ -431,6 +451,14 @@ journal migration and rollback compatibility from RFC-0012. Extend existing installed-VM acceptance, not a separate unchecked release path: +**D-095 replacement criteria:** verify CLI repository/local Host Extension plans, +download-only versus staging, booted/pending state, complete-set update reapplication, +direct-caller Polkit and concurrent native OS/CLI transactions. Verify absence of +PackageKit packages and successful stock-store native OS/Flatpak plugin loading. +Exercise graphical OS updates, cancellation/reconnection and stale context errors. +The Managed Overlay and unsupported-method criteria below remain applicable. +The PackageKit-specific items below are historical and cancelled, not open gates. + 1. CLI and PackageKit install the same repository package from the selected base snapshot with equivalent plan/provenance/support; verify staged then booted state. 2. Two native package frontends, CLI and OS updater cannot create overlapping writers; @@ -457,12 +485,12 @@ These scenarios do not claim general reproducibility or all overlay release gate ## 10. Remaining implementation details Architecture/routing, action policies, method semantics and backend boundaries are -accepted by D-093. Still implementation work: pinned PackageKit ABI and sender -handoff API, role/flag mapping constants, generated introspection/bindings, package -ID encoding, journal migration, overlay engine coverage, trusted catalog format, +accepted by D-093 as amended by D-095. Still implementation work: generated +introspection/bindings, package identity, journal migration, overlay engine coverage, trusted catalog format, frontend pending-state presentation and measured operational limits. General trust -policy for local unsigned artifacts and future host-operation schemas remain in -their own contracts. Do not infer approval to weaken trust or invent absent methods. +key provisioning and future host-operation schemas remain in their own contracts. +D-094 settles unsigned local acceptance as described in §4.3. Do not infer approval +to weaken repository signature checks or invent absent methods. Upstream integration reference (reviewed 2026-11-07, not a frozen build input): [PackageKit backend API](https://github.com/PackageKit/PackageKit/blob/main/src/pk-backend.h). diff --git a/spec/decision-log.md b/spec/decision-log.md index ed5d005..7607658 100644 --- a/spec/decision-log.md +++ b/spec/decision-log.md @@ -1,5 +1,46 @@ # Archipelago Decision Log +## D-095 — Remove PackageKit; stock Desktop stores with native OS plugins (Accepted, 2026-11-07) + +The user explicitly removes PackageKit from project dependencies, integration and +image contents. This supersedes the PackageKit portions of D-075/D-093 and the +PackageKit-specific trust-flag clause of D-094. Keep one Host Extension package +installation path: `archipelago extension` → typed archipelagod API → checked +staging and explicit reboot. Repository names and protected local FD imports remain +supported intents; D-094's local authorization/provenance and repository signature +requirements remain unchanged. Do not add another live package writer. + +Use stock Arch GNOME Software and Discover packages. Ship Archipelago OS-update +D-Bus adapters/plugins in Archipelago packages inside OSTree; preserve graphical +OS updates and Flatpak support without rebuilding or patching the stores for +PackageKit. Retain the existing fwupd integration. Do not install PackageKit, +its libraries/Qt bindings or an Archipelago PackageKit backend. Remove the broker +API and its special caller-delegation path. Direct clients retain per-operation +Polkit authorization. Existing evidence/history is retained, not publication input. + +Normal-pipeline acceptance must verify PackageKit package absence, native OS-plugin +loading, GUI OS-update staging and CLI Host Extensions. D-092/D-093's daemon, +durable transactions, Managed Overlays and single-writer contracts otherwise stand. + + +## D-094 — Explicit administrative import of unsigned local packages (Accepted, 2026-11-07) + +The user selects acceptance of unsigned local `.pkg.tar.zst` files with explicit +administrator authorization while implementing D-093. Use the separate +`org.archipelago.system.extension-local` action and the protected FD-import path; +retain the exact imported bytes, SHA-256 and local provenance. Import does not +execute package scriptlets, enable Host Extensions or stage a deployment. Planning +and staging remain separately authorized under the stored plan's actual actions. +Applied local packages remain unsupported, with booted and pending state separate. +Repository package signatures remain mandatory. This does not turn local inputs +into repository-trusted packages; PackageKit's only-trusted flag cannot accept an +unsigned local input. Preserve retained exact local inputs for atomic update +reapplication under D-056/RFC-0012. Resolves the unsigned-local policy in question 30; +key provisioning and implementation verification remain separate work. + +See [RFC-0013](../rfc/RFC-0013-host-management-and-packagekit.md) §4.3 and +[RFC-0004](../rfc/RFC-0004-host-extensions.md). + ## D-093 — archipelagod, PackageKit Host Extensions and D-Bus host management (Accepted, 2026-11-07) The user explicitly requests contract-level adoption and immediate Git publication diff --git a/spec/gnome-desktop.md b/spec/gnome-desktop.md index 8cdbacf..5e8d6f7 100644 --- a/spec/gnome-desktop.md +++ b/spec/gnome-desktop.md @@ -1,11 +1,10 @@ # GNOME Desktop, Flatpak and Toolbx -D-093 adds PackageKit's Archipelago backend for native Host Extension packages, -alongside the native Archipelago OS plugin, Flatpak and fwupd. The stock live ALPM -backend must not run. Replace the OS plugin's global PackageKit conflict with -explicit resource ownership, supply the matching PackageKit frontend plugin, and -show staged package changes as pending reboot. Native OS updates remain on the -direct D-Bus path. See [RFC-0013](../rfc/RFC-0013-host-management-and-packagekit.md). +D-095 supersedes D-093's PackageKit integration: use stock Arch GNOME Software +with the packaged Archipelago OS-update D-Bus plugin, Flatpak and fwupd. Exclude +PackageKit and its dependencies/backend. Host Extension package installation uses +CLI → archipelagod only. Native OS updates remain graphical and use direct D-Bus. +See [RFC-0013](../rfc/RFC-0013-host-management-and-packagekit.md). D-092 (2026-11-07) selects native system D-Bus integration for GNOME Software, Discover and installed-system CLI through the shared Archipelago update service. @@ -37,6 +36,12 @@ updates with package changes mandatory before the next new stable ISO. D-082 requires Plymouth for every Desktop Purpose, with validated initramfs, splash-to-DM handoff and text diagnostics. Core-only remains console-oriented. +User addition, corrected explicitly to zram (2026-11-07): ship `zram-generator` +for GNOME and KDE with a vendor `[zram0]` configuration and no tuning overrides. +The generator's defaults select swap size/priority and the kernel's default +compression algorithm. Generate/activate the device at boot through systemd; +machine-local configuration retains normal precedence. No disk swap is needed. + D-080 (2026-11-05) adds GNOME artwork/backgrounds (`gnome-backgrounds`) and inherits all glibc-supported locales generated by Core. Application lifecycle below remains unchanged. D-079 grants only the recorded current-cycle publication exception; diff --git a/spec/kde-desktop.md b/spec/kde-desktop.md index 0f25760..c44db3e 100644 --- a/spec/kde-desktop.md +++ b/spec/kde-desktop.md @@ -1,5 +1,10 @@ # KDE Desktop, Flatpak and Plasma Setup +**D-095 amendment:** use stock Arch Discover with the packaged Archipelago +OS-update D-Bus plugin and Flatpak/fwupd. PackageKit and its dependencies/backend +are excluded. Host Extension package installation is CLI → archipelagod only. +Earlier PackageKit integration requirements below are superseded. + **Status:** Accepted product direction under D-089 (2026-11-06); KDE publication authorized by D-091 (2026-11-07) after user-confirmed hardware readiness. @@ -28,6 +33,17 @@ the KDE path. Native components are Plasma/KWin, System Settings, Discover, Dolphin, Konsole, Spectacle, Ark and desktop integration (KIO, KDE portals, Polkit/KWallet, network/audio/power, Plymouth). D-076 Toolbx/rootless Podman applies. +The user explicitly adds `sddm-kcm` on 2026-11-07: ship the native System Settings +module for configuring SDDM alongside the display manager and Breeze theme. +Machine-local settings retain normal `/etc` precedence over vendor defaults. +The same follow-up also includes `kinfocenter`, explicitly requested for the +About this System page in KDE System Settings. + +The user also requests zram through `zram-generator` for all Desktop Purpose +images (2026-11-07, explicitly correcting the initial zswap wording). Ship the +generator and a vendor `[zram0]` section without tuning overrides, as in GNOME. +Systemd activates compressed RAM swap on boot, without a disk swap requirement. + Deliver Okular, Gwenview, Kate, Elisa, KCalc and KClock as independently removable and updateable stable Flathub applications. Exact refs, runtimes, package versions and checksums must be resolved and validated before enabling a build. The policy diff --git a/spec/open-questions.md b/spec/open-questions.md index 94870c7..d65e2d9 100644 --- a/spec/open-questions.md +++ b/spec/open-questions.md @@ -1,5 +1,19 @@ # Archipelago Open Questions +## D-095 amendment (2026-11-07) + +PackageKit integration, ABI/glue, original-sender brokerage, frontend package +installation and role/flag mapping are cancelled, not unresolved requirements. +Use stock Arch GNOME Software/Discover plus packaged native Archipelago D-Bus +OS-update plugins and Flatpak. Host Extension package installation uses the CLI +and typed archipelagod API only. All PackageKit-specific questions below are +historical; daemon/overlay implementation, authorization and D-094 local trust +requirements remain active. + +D-094 resolves unsigned-local package acceptance: explicit administrator +authorization, protected retained exact bytes/checksums, local/unsupported provenance; +repository signatures remain mandatory. See RFC-0013 §4.3 and question 30. + D-093 extends the installed-service contract to `archipelagod`, typed Host Extension and Managed Overlay interfaces, PackageKit's Archipelago backend and installed-host CLI routing: [RFC-0013](../rfc/RFC-0013-host-management-and-packagekit.md). @@ -167,7 +181,10 @@ question 72 tracks the remaining control-layer integration contract. ## Host Extensions 29. D-037 selects explicit user requests, resolved package identities, retained local files and per-generation base/result/database history. What exact manifest/lock and storage schema represents these, and is a local pacman repository used internally? -30. Are package signatures mandatory, and what is the policy for unsigned local packages? +30. Resolved by D-094: repository package signatures are mandatory; unsigned local + packages are allowed only through explicit administrator-authorized import with + exact-byte retention/checksums and local/unsupported provenance. PackageKit + only-trusted cannot accept them. Key provisioning and adapter validation remain. 31. How is a failed best-effort reapplication presented in CLI and boot UX? 32. Resolved by D-056: fallback to the upstream supported image requires explicit user selection; a failed reapplication preserves current deployment and boot selection. Exact CLI presentation remains open. 33. D-037 selects recomposition from the base and remaining explicit requests on removal, omitting dependencies no longer required and preserving persistent data. What detailed optional-dependency, replacement and history cleanup rules apply?