Progress.percent becomes a monotonic completion estimate: phase checkpoints keep their bands and fetching OSTree commands refine the value inside the band from libostree's terminal output. libostree draws progress only on a TTY, so Worker::command_progress runs the command under `script -qec`, strips ANSI and carriage-return redrawing, and parses receiving/writing/completion records. OperationEvents::progress clamps to 99, never rewinds and skips no-op fsyncs. Applied to layer pull, image pull in prepare/execute, both pull-local imports and retain_clean_base. Discover keeps a monotonic floor across PrepareUpdate→Stage, preserves the last observation when GetStatus fails, and stops reporting the transient `reconciling` window as an update error. GNOME Software polls snapshots from its worker thread, marshals percentages to the caller's GMainContext, mirrors them onto related package rows and applies the same reconciliation policy. The package installs archipelago.svg and archipelago-symbolic.svg into hicolor so both clients can show the distributor identity.
11 KiB
archipelagod implementation checkpoint
2026-11-14 checkpoint: observable progress and distributor identity
Progress.percent is now a monotonic completion estimate for the whole
transaction. Phase checkpoints keep their fixed bands, and every fetching OSTree
command additionally refines the value inside the current band from the tool's
own console records. libostree prints transfer progress only to a terminal, so
Worker::command_progress runs the command under script -qec (a PTY), strips
ANSI/CR redrawing, and maps the newest Receiving objects:, Receiving delta parts:, Receiving metadata objects:, Writing objects: or completion record
onto the band. Unrecognized output leaves the phase percentage untouched.
OperationEvents::progress clamps to 99 and never decreases; repeated values do
not fsync the journal. Call sites: layer pull, image pull in prepare/execute,
both pull-local imports and retain_clean_base.
Clients: the Discover backend keeps one monotonic floor across
PrepareUpdate→Stage, treats a failed GetStatus as "keep the last
observation", and no longer renders reconciling as an update error. The GNOME
Software plugin polls transaction snapshots on its worker thread, marshals
percentage updates to the caller's GMainContext, mirrors them onto related
package rows (the updates list averages watched apps and hides the bar if any is
unknown), and ships the same policy for reconciling.
The archipelago package now installs archipelago.svg and
archipelago-symbolic.svg into hicolor/scalable/apps; both adapters use the
colored icon for the OS resource and the symbolic one for the source badge, and
the GNOME/KDE finalizers refresh the hicolor cache.
Verification: the archipelago-system and archipelago-builder release test suites
pass, including new unit tests for the console parser and terminal-control
stripping, plus a real GNOME Software plugin contract test and a Discover adapter
build against the 2026-11-12 snapshot. The daemon/adapter behaviour on installed
hardware (progress animation, no reconciliation banner, icon rendering) is still
user-verified only.
2026-11-09 checkpoint (supersedes the historical status below)
The D-Bus images from run 20261109T113636Z were published with an explicit
one-run VM-acceptance waiver. This was not a successful full VM acceptance.
D-096 adds Manager API minor 2 GetKernelArguments/ChangeKernelArguments,
dedicated Polkit authorization, native libostree argument parsing, staged edits
and durable argument verification. Update and extension staging inherit the
selected pending/booted arguments. Installed CLI is human-first with explicit
--json and --debug; private logs retain operation/request identities.
Implementation sources are pushed; a new normal pipeline has been started for
compilation, native/Rust checks and Core/GNOME/KDE acceptance. No passing result
or publication is claimed yet. The previous waiver does not apply.
Current workspace checkpoint: IMPLEMENTATION-PLAN-KARGS-CLI.md.
Consumer audit: infrastructure/pipeline/CLI-FORMATS.md.
Historical 2026-11-08 checkpoint
2026-11-08. D-092/D-093 are accepted; the full service migration is in progress.
D-095 supersedes the PackageKit work below: the backend, broker and store adaptations have been removed. Host Extension package installation is through the CLI/direct typed daemon API. Stock Arch Software/Discover retain native Archipelago OS D-Bus plugins and Flatpak/fwupd; no PackageKit dependency is shipped. The older PackageKit build notes below are historical evidence only.
Current integration work (not yet accepted or published)
Installed-host CLI now exposes overlay status, overlay list [QUERY [CURSOR]],
overlay add ID EXACT_COMMIT, overlay remove ID, overlay order ALL_IDS... and
overlay clear. Mutations submit a complete list with GetState's context, then
Stage the returned plan. Reordering must name every selected overlay once.
Installed-bus acceptance and declaration rebuild-on-update remain unfinished.
The read-only foundation below describes the last published source slice. The working tree now adds durable asynchronous mutations, worker supervision, FD imports, extension planning and native D-Bus clients. Installed-host CLI dispatch uses the service; unsupported workflows fail without falling back to direct mutation. General Managed Overlay execution and the corresponding capability/acceptance migration remain unfinished.
ManagedOverlays now registers GetState, ListAvailable, GetOverlay, RefreshCatalog
and Revision with ObjectManager/signals. Refresh resolves the private configured
overlay_catalog_ref through signed OSTree summary/commit verification and checks
each indexed layer against its manifest before caching context-bound descriptors.
The profile/catalog producer is not deployed. PrepareSet and the general overlay
capability remain absent.
The private composition worker connects indexed artifacts to path planning,
materialization and effective ALPM records, with retained original records and
transformation provenance. Its offline finalizer reuses
adapters/finalize-managed.sh, also used by Host Extensions. These composition
functions are not yet called by an admitted PrepareSet/Stage workflow. Legacy
Core/Purpose artifact producers, full base indexing/lifecycle adapters,
whole-package replacement and complete overlay/extension update reapplication
remain integration work. Existing test-marker acceptance does not cover this API.
Native GNOME and Discover OS clients observe retained transactions through D-Bus.
Legacy software-helper and its broad Polkit policy are no longer packaged in the
Desktop assets. Rust system/composer test binaries compile as of 2026-11-08;
normal-pipeline runtime acceptance remains pending and no new release has started. See the workspace
IMPLEMENTATION-PLAN-DBUS.md for current build handles and remaining work.
Previously published foundation
- Thin
cli/src/bin/archipelagod.rsentrypoint uses the existing system crate. - System-bus Manager, Properties, Introspectable and ObjectManager. Only
GetCapabilities/GetStatus are advertised. Other Manager calls explicitly return
org.archipelago.System1.Error.Unsupported, without spawning a CLI or admitting work. Extension/overlay/broker features are absent. - Local OSTree observation on a worker outside the D-Bus executor. It takes the
existing
/run/archipelago-compose.locknonblocking, reads with a 10-second command deadline, retains cached state withreconciling=trueon failure and emits StatusRevision after durable publication. Deployment IDs include serial; unknown base/Purpose/snapshot/support fields are omitted. No mirror request. - Private
/var/lib/archipelago/service/observation.jsoncontains versioned local observations, not update intent or a second operation authority. Revisions survive restart; unsupported schema stops startup without resetting it. - Admission journal foundation: private bounded records, lifetime ownership lock, UID/method/request-ID/canonical-input binding, reconnect deduplication, explicit transitions, file+directory fsync, immutable terminal records and fail-closed unknown schemas/durability errors. Surviving active work blocks new admission until engine reconciliation. No auto-replay, guessed success or automatic GC.
- Async Polkit helper derives UID/unique sender from the bus, requires both interactive flags and uses a service-selected action. PackageKit's current owner is rejected from direct authorization: broker verification is still needed. Cancellation-own checks compare authenticated UID to the retained initiator in the service, not a caller option or an undocumented Polkit subject field.
- Unit, activation, bus policy, separate Polkit actions/rules are provided under
integrations/dbus/. They are not installed by the image builder yet. updates::preparereturns its result instead of formatting it internally; current CLI wrappers preserve output. Exact-target callers cannot silently follow a moved track. This legacy engine adapter is not yet admitted by D-Bus.- Explicit development CLI:
archipelago service capabilities|status. Ordinary installed-host commands retain their existing path until coordinated migration.
Dependency and compilation
Use pure-Rust zbus 5.12.0, async-io executor and blocking client wrapper; no
new libdbus/GIO link dependency in the core Rust binary. Existing engine work is
blocking and stays outside the bus executor. Pin zbus_macros=5.12.0 as well:
the initial resolver selected macros 5.19 against zbus 5.12, producing a private
DispatchResult2 API mismatch. Matching versions compile on the existing Rust 1.90
tools image. CLI/system lockfiles retain exact checksums for transitive crates.
Build preparation uses yabloko /opt/archipelago/dbus-next/, separate from frozen
release sources and the regular target directory. Rust release compilation and
compilation of the contract/system test executables have been checked there.
Tests are wired into the regular release-cycle compile stage; no separate VM or
standalone test run has been executed for this slice. Native proxy compilation,
activation, real bus calls and Polkit session behavior still need pipeline evidence.
Next integration boundary
Do not install this read-only slice as a completed installed-host replacement. Still required: typed execution/progress/results; one migrated legacy plan/operation authority; durable terminal results and recovery against OSTree/boot state; bounded worker admission and cache; fast refresh; exact plan Download/Stage; safe Cancel; owned workers; full CLI routing and native GUI migration; measured limits; real Host Extension/overlay/broker implementation and acceptance. Local-package trust and future host method schemas remain governed by their RFC contracts.
The service observer's output does not claim that a legacy update job is a durable
service transaction. The new journal is not connected to the mutation engine yet
and must not be used as an independent second writer. Keep old records/inputs for
migration. Feature policy and package plans must derive their required actions on
the service side; an eventual Stage handler must never select stage-update solely
because of its method name. Read-only compilation is not rollout or VM acceptance.
Future packaging destinations: binary /usr/bin/archipelagod, unit
/usr/lib/systemd/system/archipelagod.service, bus activation
/usr/share/dbus-1/system-services/, bus policy /usr/share/dbus-1/system.d/,
Polkit action XML /usr/share/polkit-1/actions/, rules
/usr/share/polkit-1/rules.d/. Keep KillMode=control-group; sandbox changes require
real compose/mount acceptance. No service enablement or timer change is needed for
bus activation. Both native clients must transition together before old helpers
and their broad action are removed.