rfc/spec/terra-infrastructure.md

6.7 KiB

Terra deployment and desktop update integration

Русский обзор

Status: Accepted deployment direction — D-071, 2026-11-04. The user explicitly authorized recording these requirements in RFCs and decision logs. Detailed release wire schemas and GUI adapters still require implementation/review.

Source registries

Git hosting: https://git.fasoley.net/Archipelago/, alongside rfc. Repository bindings for the first deployment:

  • core: frozen Layer v1 YAML definitions of Arch Core.
  • purposes: frozen Layer v1 YAML definitions of Purpose variants.
  • infrastructure: Docker/cron, publishing, registry/portal and standalone deployment.

These are source registries, not OSTree artifact repositories. Builds record exact Git commits and source digests; a branch name is discovery, never a locked input. Desktop examples remain disabled until exact sets and their acceptance are agreed. Infrastructure source is also checked out on terra, not only in an agent workspace.

Host and routes

D-090 amendment (2026-11-06): after the current desktop/CLI/image task, migrate all Archipelago infrastructure on terra and the active mirror onto tank, keeping mirror contents in a separate ZFS dataset. The historical Btrfs paths below are inventory inputs, not proof of completed migration. Publish read-only repository snapshots under /archipelago/arch-repo-snapshot/<UTC-date-time>/; retain at most three. Disable daily scheduling now; the replacement capture/build schedule is 15th/30th at 00:00 UTC. See release snapshots. Yabloko remains the build/VM worker; tall-bridge may prepare/transfer Flatpak caches under the user's separate explicit acceleration instruction.

terra replaces superserv1 for new infrastructure builds, validation and publishing. Existing laboratory runs on superserv1 may finish; their evidence is retained. The Arch mirror already operates at /opt/mirror on terra. Integration into its stack is permitted, and a complete standalone deployment must also be supplied.

Public base: https://mirror.nw-sys.ru/archipelago/.

Relative route Purpose
/ Project homepage and ISO portal
iso/ Immutable eligible ISO artifacts/checksums/signatures
ostree/layers/ Native OSTree archive repository for layer artifacts
ostree/images/ Native OSTree archive repository for complete deployable images
v1/ Pinned metadata, release/channel discovery and other RFC-0010 namespaces

Paths are deployment bindings. Consumers must retain the /archipelago/ prefix. Private staging is a separate access-controlled service/storage root, not a hidden directory under the public static root. No unvalidated experimental ISO is promoted merely because the homepage is public. Existing Arch mirror routes remain operational.

Builder and publication

Use the archipelago CLI to resolve YAML registries plus pinned mirror inputs, construct layer artifacts, upload them to the artifact repository, compose an image from exact repository commits, then construct an ISO from that image and publish it. Do not regenerate managed layers by silently reinstalling packages during composition. Retain the D-068 split between builder, KVM validator and publisher, exact inputs, offline finalization and immutable publication before an atomic signed channel update. The current monolithic experimental ISO builder is not this completed pipeline.

Cron, snapshots, public release gates and signing requirements remain D-063/D-068. The mirror is transport, not snapshot identity. Physical dataset selection, storage quotas, secret custody and reproducibility proof remain deployment/implementation work.

Current sequencing (D-072/D-073)

The active mirror uses /opt/mirror/data on Btrfs; tank/mirror is a separate copy. D-072 chooses a separate tank/archipelago ZFS dataset for future captures and caps retention at three monthly snapshots. Referenced release/lock inputs must remain available; if none can be safely retired, stop before creating a fourth snapshot. Snapshot count does not itself prove a byte quota or bound retained build caches.

D-073 subsequently defers snapshot creation and bulk mirror copying. Experimental builds use the live mirror and record/verify exact per-run inputs; changed/missing inputs are errors. Work on repeatable outputs and RFC conformance continues, but a live mirror is not a sealed Snapshot. Frozen inputs and full gates remain necessary for public release. The prepared capture tool is disabled; snapshot cron stays off.

D-074 requests daily experimental Core construction from current source commits and the live mirror to exercise build/distribution/update workflows. Changed image commits become candidates for explicit host updates. Include linux-firmware as an explicit Core and live-installer requirement, with the normal Arch dependency closure. Do not infer that every device is supported or every firmware blob is open-source. Daily candidate evidence does not authorize testing/stable publication.

Homepage

Material You-inspired responsive presentation with an Arch-related visual identity, project description, source/documentation links and verified ISO listings. Clearly identify Archipelago as an independent distribution based on Arch Linux, with an upstream link and trademark attribution; do not imply Arch Linux endorsement. Use original artwork rather than assuming rights to modified upstream logos. Planned or unvalidated variants have no active download links.

Updates and desktop frontends

Implement registry-backed CLI update check/plan/apply first: authenticated discovery, exact image/lock verification, plan preconditions under the mutation lock, atomic full-set Host Extension reapplication, validation and native OSTree staging. Failures preserve booted/pending state; activation requires explicit reboot. Custom composition and managed-overlay intent must never be silently discarded by an official-base update.

Then implement a PackageKit adapter and integration with GNOME Software and KDE Discover (the software/update UI; KDE Store itself is a content marketplace). The UI must present an OS-image update transaction, not run live pacman -Syu or pretend independently selectable package updates are supported. UI and CLI share planning, locks, progress, cancellation, errors, privilege checks and reboot-required state. A failed extension reapplication cannot become an automatic clean-base fallback.

GUI milestones: API/Polkit contract and capability mapping; PackageKit backend; GNOME Software/Discover discovery and staging; reboot activation and failure tests on both Purposes. PackageKit backend feasibility and need for frontend plugins must be verified against selected package versions; no working GUI integration is implied.