# Archipelago infrastructure Accepted deployment: terra, https://mirror.nw-sys.ru/archipelago/ (D-071). Source registries: `Archipelago/core`, `Archipelago/purposes`; contracts: `Archipelago/rfc`. ## Private build control (2026-11-09) Personal portal on terra: **http://100.64.0.11:8099/** (Tailscale) or **http://192.168.88.104:8099/** (LAN). No Ingress integration. Start/stop, timer control, actual stage/action history and full paginated/downloadable logs: [deployment and API](control/README.md). New builds run on terra SSD worker; artifacts and retained logs on ZFS. Schedule (D-098): **OSTree refs every three days** on an anchored interval (anchor 2026-11-09 00:00 UTC) and **ISO media on calendar day 30**, dispatched by a daily 00:00 UTC timer. A run publishes `cargo test --workspace` + portal contract evidence instead of installed-VM acceptance; boot/firmware/GUI coverage is an explicit user manual check. Contract: [rfc/spec/release-cadence-and-testing.md](../rfc/spec/release-cadence-and-testing.md). The older yabloko/daily/15-30 descriptions below are historical. Temporary hardware-testing topology/retention and publication procedure: [`deploy/HARDWARE-TEST.md`](deploy/HARDWARE-TEST.md). Builds/tests now run on yabloko; repositories and published artifacts remain on terra. The hardware-test publisher is separate from testing/stable release gates. ## Release pipeline (D-098) All preparation, Flatpak downloads and builds run on the terra worker. Terra stores, signs and publishes. On terra: ```sh archipelago-release run archipelago-release status archipelago-release logs ``` Sequence: refresh persistent Flatpak cache → build Core → build GNOME/KDE from Core → run the frozen-source Rust/contract checks → transfer artifacts → sign/publish → verify HTTPS refs; ISO media are built and verified only on day-30 runs. The dispatcher runs daily at 00:00 UTC and starts the driver only on a matching day. A failed Flatpak refresh can use only a verified matching cached seed and is shown explicitly in status. See [the operational guide](deploy/RELEASE-CYCLE.md) for paths and failure handling. ## Standalone web deployment 1. Copy `.env.example` to `.env`, set an immutable Caddy image and `PUBLIC_ROOT`. 2. Create a generation under `PUBLIC_ROOT/.generations/initial` with `iso`, `ostree/layers`, `ostree/images`, `v1` directories and a relative `current` symlink. Initialize both native archive repositories and `history.json` as `{"core": [], "gnome": []}`; alternatively let the hardware-test publisher create the first complete generation before starting the web service. 3. Initialize `PUBLIC_ROOT/current/releases.json` from `deploy/releases.empty.json` only on a fresh deployment. Never overwrite a populated catalog during code deployment. 4. `docker compose up -d web` serves the complete `/archipelago/` prefix on localhost port 8098. Put your HTTPS reverse proxy in front; no mirror dependency is required. ## Existing terra mirror Run `docker compose -f compose.yaml -f compose.mirror.yaml up -d web`, then as root run `python3 deploy/integrate-mirror.py`. The helper backs up and validates Caddy, inserts an explicit `/archipelago/` route before the existing fallback, reloads and restores the original configuration on reload failure. Existing `/archlinux` and rsync routes are preserved. The web container mounts public artifacts read-only and never receives a Docker socket, signing key, private staging or build workspace. The homepage is public; only explicitly accepted hardware-test candidates or eligible testing/stable releases may enter public storage. An empty catalog represents the absence of publications. Source-only Material You-inspired styling and original artwork require no remote fonts, scripts or upstream logo redistribution. ## External ingress For the known Moscow Docker Caddy ingress sites, run as root: `python3 deploy/integrate-ingress.py /path/to/conf/Caddyfile`. The helper inserts `/archipelago` and `/archipelago/*` routes into the single `mirror.nw-sys.ru` block, forwarding to terra at `100.64.0.1:80`. It validates inside `caddy-caddy-1`, saves a restricted backup and restores on reload failure. Host paths: south `/app/caddy/conf/Caddyfile`, north `/home/no1_tx/apps/caddy/conf/Caddyfile`, west `/opt/caddy/conf/Caddyfile`. ## Native OSTree storage `compose.storage.yaml` runs the CLI storage administrator without network, capabilities, signing keys or a Docker socket, with a read-only container root. Build `containers/storage.Dockerfile` and pin its resulting image ID as `STORAGE_IMAGE`; its Debian OSTree is administrative tooling, not the target OS OSTree version. The image retains `/usr/share/archipelago/storage-packages.tsv`. Set `ARCHIPELAGO_BINARY` and `REGISTRY_ROOT` to one public or private storage root: ```sh docker compose -f compose.storage.yaml run --rm storage registry init /registry/layers docker compose -f compose.storage.yaml run --rm storage registry init /registry/images docker compose -f compose.storage.yaml run --rm storage registry verify /registry/layers ``` These commands initialize/verify native archive repositories and create no releases. Private staging is never mounted into the web container. `tests/storage.sh` exercises native HTTP pull, locking, incompatible paths/modes and corrupted-object rejection in disposable storage. `tests/layer-conformance.py` compares the Rust parser/schema checker to approved fixtures and checks source registry YAMLs. ## Experimental daily Core `pipeline/daily-core.py CONFIG.json` drives a real CLI build and QEMU acceptance. It records exact source-file hashes, Core Git revision, tools image ID, binary/ISO digests and resulting image commit. Failures and overlapping runs are recorded; only successful VM validation advances the private `latest-candidate.json` evidence pointer. This is not a signed release/channel document or an update client. The first backend is the existing monolithic `archipelago build iso`, executed in host-managed Arch nspawn. Rust compilation uses a digest-pinned Docker container. It does not claim the future nested-Docker build-worker isolation profile or independently built Layer v1 artifacts. The selected Core YAML must match the reviewed profile digest; unsupported YAML changes fail rather than being ignored. The daily builder requires root on a dedicated build host, nspawn, Docker, QEMU/KVM, OVMF and Python pexpect. Source tree includes all CLI path dependencies and `rfc`. Deployment configuration keys: `private_root`, `source_root`, `build_cache`, `cargo_cache`, `package_cache`, `bootstrap`, `tools_image`, `supported_core_sha256`, `ovmf_code`, `ovmf_vars`. Terra's binding is `/opt/archipelago/daily-core.json`. `deploy/daily-core.cron` schedules 03:00 in the host timezone; install only after a manual successful run. Changes to code are deployed into `source_root` explicitly; Core `main` is fetched and pinned per run. A new Git commit alone is not proof of a changed image. Build workspaces are retained for diagnosis; no automatic GC yet. Snapshots and bulk mirror copying are **disabled** by D-073. Future capture policy is in `deploy/snapshot-policy.json`, with the approved three-monthly-snapshot cap. The prepared capture tool refuses execution while disabled; it does not run in cron. An enabled capture would still be transport evidence, not signature validation or a sealed Archipelago Snapshot. Retiring snapshots requires reference-aware GC; until implemented the tool stops at the cap instead of destroying retained inputs. ## Remaining build and update pipeline The existing CLI ISO experiment is not yet a YAML-driven, independently built layer pipeline. Required sequence: strict Layer parser and locks → independent layer build → artifact upload → image composition from registry → ISO from exact image → validation/reproducibility → signed publication. Add builder/validator/publisher services only with a verified worker isolation profile; do not deploy a cron job that advertises missing CLI commands as successful work. Registry-backed CLI update and PackageKit/GNOME Software/KDE Discover integration follow the staged transaction contract in RFC-0009 and D-071. Public signing keys, release wire schemas and complete update/reapplication evidence remain required.