diff --git a/README.md b/README.md index 1c50a49..5424b98 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ ## Documents - **[Accepted contract registry](spec/contract-registry.md)** — consolidated scope, - approval basis, normative sources and open implementation boundaries (D-001–D-074). + approval basis, normative sources and open implementation boundaries (D-001–D-078). - [`rfc/RFC-0001-architecture.md`](rfc/RFC-0001-architecture.md) — system architecture, boundaries, core invariants. - [`rfc/RFC-0002-layers-and-overlays.md`](rfc/RFC-0002-layers-and-overlays.md) — OSTree-backed layers, purpose layers, managed overlays and host extensions. @@ -36,6 +36,8 @@ ## Implementation contracts and drafts +- [GNOME Desktop, Flatpak and shared Desktop Toolbx](spec/gnome-desktop.md), D-075/D-076. + - [Terra deployment and desktop updates](spec/terra-infrastructure.md), accepted D-071: source registries, mirror integration, standalone deployment and CLI/UI direction. diff --git a/rfc/RFC-0007-ostree-platform-integration.md b/rfc/RFC-0007-ostree-platform-integration.md index 09f97b4..837bf84 100644 --- a/rfc/RFC-0007-ostree-platform-integration.md +++ b/rfc/RFC-0007-ostree-platform-integration.md @@ -178,6 +178,17 @@ failure reporting remain to be specified. D-049 excludes health-check-triggered automatic rollback: provide diagnostics and an explicit user command instead. Persistent-data schema migrations remain separate from OS rollback. +D-077 requires every successful deployment-creating operation to automatically +select the new deployment as the next-boot default, including installation, +update/rebase, Purpose changes, Managed Overlays and Host Extensions. No additional +activation command is required. For staged deployments, native successful +finalization materializes the boot entry; preparation does not reboot or change +the running root. Failure preserves the previous boot selection. Explicit rollback +selects its requested previous deployment; D-049 still forbids health-check-driven +automatic rollback. Merely building an image/layer commit does not select a boot +entry. Verify the actual systemd-boot choice, including stale saved/one-shot +overrides, rather than assuming OSTree deployment order is sufficient. + ### 6.1 Deployment retention and cleanup (D-046) Preserve at least: diff --git a/rfc/RFC-0010-docker-build-and-distribution.md b/rfc/RFC-0010-docker-build-and-distribution.md index bc0f32f..6c5e079 100644 --- a/rfc/RFC-0010-docker-build-and-distribution.md +++ b/rfc/RFC-0010-docker-build-and-distribution.md @@ -156,6 +156,12 @@ or in explicit private tests without replacing artifact verification. ## 6. Trust and publication transaction +D-078 accepts a temporary hardware-test binding: a separate OpenPGP key held only +on terra signs OSTree commits and summaries. Clients require verification of both; +the public key ships in new ISO binaries/images. Earlier images require an explicit +bootstrap or replacement installer. This does not freeze the general release wire +format, key rotation or testing/stable trust policy described below. + Proposed initial trust profile: Arch package signatures retain pacman verification; Archipelago OSTree commits and canonical metadata use detached OpenPGP signatures with purpose-separated keys. Public-key fingerprints/policy arrive through a trusted diff --git a/ru/README.md b/ru/README.md index ffc1998..8b235b7 100644 --- a/ru/README.md +++ b/ru/README.md @@ -1,7 +1,7 @@ # Archipelago — RFC v0 **[Реестр принятых контрактов](spec/contract-registry.md)** — единая точка входа: -объём, решения, нормативные источники и открытые детали реализации D-001–D-074. +объём, решения, нормативные источники и открытые детали реализации D-001–D-078. [English version](../README.md) @@ -39,6 +39,8 @@ ## Контракты реализации и проекты +- [GNOME Desktop, Flatpak и общий Desktop Toolbx](spec/gnome-desktop.md), D-075/D-076. + - [Развёртывание на terra и desktop updates](spec/terra-infrastructure.md), D-071: Git-реестры, mirror integration, standalone deploy и направление CLI/UI. diff --git a/ru/rfc/RFC-0007-ostree-platform-integration.md b/ru/rfc/RFC-0007-ostree-platform-integration.md index 7e223cb..69b3781 100644 --- a/ru/rfc/RFC-0007-ostree-platform-integration.md +++ b/ru/rfc/RFC-0007-ostree-platform-integration.md @@ -110,6 +110,17 @@ FAT32 ESP и ext4 root, systemd-boot, без шифрования и Secure Boot Для обычных обновлений использовать staged deployments с явной политикой хранения. D-046 задаёт базу retention ниже. UX pin/unpin и диагностику ошибок финализации при shutdown ещё нужно определить. D-049 исключает автоматический rollback по health checks: вместо этого предоставляются диагностика и явная пользовательская команда. Миграции схем постоянных данных отделены от отката ОС. +D-077 требует после любой успешной операции создания deployment автоматически +выбирать его default следующей загрузки: установка, update/rebase, смена Purpose, +Managed Overlays и Host Extensions. Дополнительная команда активации не нужна. +Для staged deployments boot entry оформляется штатной успешной финализацией; +подготовка не вызывает reboot и не меняет работающий корень. Ошибка сохраняет +предыдущий загрузочный выбор. Явный rollback выбирает запрошенный предыдущий +deployment; автоматический rollback по health checks по-прежнему запрещён D-049. +Сборка image/layer commit сама по себе не выбирает boot entry. Проверять реальный +выбор systemd-boot, включая устаревшие saved/one-shot overrides: одного порядка +deployments OSTree недостаточно для доказательства. + ### 6.1 Хранение и очистка deployments (D-046) Сохранять как минимум: diff --git a/ru/spec/contract-registry.md b/ru/spec/contract-registry.md index 02e7370..8782e61 100644 --- a/ru/spec/contract-registry.md +++ b/ru/spec/contract-registry.md @@ -2,7 +2,14 @@ [English](../../spec/contract-registry.md) -**Срез: 2026-11-05. Охват: D-001–D-074, RFC-0001–0011.** +**Срез: 2026-11-05. Охват: D-001–D-078, RFC-0001–0011.** + +### C-025 — Временная подпись hardware-test + +**Принято: D-078.** Отдельный OpenPGP-ключ хранится только на terra; commits и +summary подписываются и проверяются клиентом. Публичный ключ входит в новые ISO. +Общие форматы релизов, ротация/отзыв ключей и replay policy остаются открытыми. +Источник: [RFC-0010, §6](../../rfc/RFC-0010-docker-build-and-distribution.md). Это единая точка входа в принятые контракты. `C-xxx` — стабильные навигационные идентификаторы; `D-xxx` остаются идентификаторами утверждения и истории решений. Все записи ниже имеют статус **Accepted** в явно указанном объёме. Принятый @@ -38,7 +45,7 @@ | C-009 | Данные сохраняются при update/rebase/rollback/смене Purpose. Один stateroot archipelago, Silverblue-style persistence в /var, штатные deployment-local /etc и merge /usr/etc. | D-019, D-030, D-032 | [RFC-0007](../rfc/RFC-0007-ostree-platform-integration.md) | Persistence/migration adapters, прежде всего /opt; глобальная синхронизация accounts не подразумевается. | | C-010 | Стандартные sysusers/tmpfiles, сохранение UID/GID, без слияния build account DB. Удаляются только явно классифицированные human accounts; system/неоднозначные identities не удаляются. DynamicUser штатный. Первичный пользователь создаётся до следующих deployments; rollback edge case оговорён. | D-028, D-029, D-036, D-060 | [RFC-0006](../rfc/RFC-0006-system-accounts.md), [RFC-0007](../rfc/RFC-0007-ostree-platform-integration.md) | Надёжная классификация аккаунтов и конкретные reconciliation adapters. | | C-011 | Pacman-format DB принадлежит образу и расположена нестандартно; live-мутации блокируются. Рабочие/history DB extensions сохраняются с привязкой к базе независимо от deployments. | D-031 | [RFC-0007](../rfc/RFC-0007-ostree-platform-integration.md), [RFC-0008, EN](../../rfc/RFC-0008-manifests-locks-and-artifacts.md) | Стабильные пути и полностью проверенные DB/live-guard adapters. | -| C-012 | systemd-boot и staged deployments; сохранение booted/rollback/pending/pinned. Ограниченные boot checks разрешают cleanup только после успеха. Службы запускаются в target lifecycle. Rollback явный, reboot отдельно; отказ не переключает загрузку автоматически. | D-033, D-034, D-046, D-047, D-048, D-049 | [RFC-0007](../rfc/RFC-0007-ostree-platform-integration.md), [RFC-0009, EN](../../rfc/RFC-0009-cli-contract.md) | Общие boot/storage profiles, success records, shutdown-диагностика и retention implementation. | +| C-012 | systemd-boot и staged deployments; сохранение booted/rollback/pending/pinned. Успешное создание автоматически выбирает новый deployment default следующей загрузки. Ограниченные boot checks разрешают cleanup только после успеха. Службы запускаются в target lifecycle. Rollback явный, reboot отдельно; отказ не переключает загрузку автоматически. | D-033, D-034, D-046, D-047, D-048, D-049, D-077 | [RFC-0007](../rfc/RFC-0007-ostree-platform-integration.md), [RFC-0009, EN](../../rfc/RFC-0009-cli-contract.md) | Общие boot/storage profiles, saved/one-shot overrides, success records, shutdown-диагностика и retention implementation. | | C-013 | testing/stable продвигают тот же проверенный image без пересборки. Оба требуют полной воспроизводимости и функциональных gates. Core boot/login/extensions/overlays проверяются на каждом Purpose candidate, затем его службы/session. Эксперименты — закрытый staging. | D-045, D-050, D-051, D-052 | [RFC-0003](../rfc/RFC-0003-build-and-composition.md), [RFC-0010, EN](../../rfc/RFC-0010-docker-build-and-distribution.md) | Доказательство воспроизводимости, полная validation matrix и достоверные release attestations. | | C-014 | Реестры входят в начальную архитектуру. Docker Compose + host cron, отдельные builder/KVM validator/publisher, monthly combined snapshots и daily pinned candidates. HTTP/native OSTree, атомарный подписанный канал после проверки всех артефактов; общие identities update/net install/портала; разделённые OpenPGP keys. | D-006, D-063, D-068 | [RFC-0001](../rfc/RFC-0001-architecture.md), [RFC-0010, EN](../../rfc/RFC-0010-docker-build-and-distribution.md) | Топология/URL, хранение ключей, точные расписания/квоты и проверка изоляции workers. | | C-015 | RFC v0 утверждён; сначала сквозной профиль без сужения архитектуры и ослабления public gates. Основной бинарник и функциональные модули — Rust. | D-053, D-061, D-062 | [RFC-0001](../rfc/RFC-0001-architecture.md), [журнал](decision-log.md) | Этап реализации не означает полноты функциональности или заморозки module APIs. | @@ -71,6 +78,19 @@ snapshots с сохранением нужных release/lock inputs; capture и в Core и live installer со штатными зависимостями. Public gates сохраняются; воспроизводимость, update success и поддержка оборудования проверяются отдельно. +### C-023 — GNOME и lifecycle приложений Flatpak + +**Accepted: D-075.** [GNOME](gnome-desktop.md): первый Desktop Purpose, нативная +интеграция и first-user setup, согласованный native/Flathub набор, lifecycle Flatpak, +GUI OS update через общий backend Archipelago. Требуются Software/PackageKit adapter, +runtime evidence, inherited Core/GNOME/update/reproducibility/publication gates. + +### C-024 — Toolbx во всех Desktop Purpose + +**Accepted: D-076.** [Desktop Toolbx](gnome-desktop.md): upstream Toolbx, rootless +Podman, явная Arch-среда, независимый изменяемый lifecycle и persistent home/session. +Требуются OCI binding, subordinate-ID и runtime/transition checks для каждого Desktop. + ## Реализация и доказательства Статус реализации независим от принятия контракта. Источники фактических результатов @@ -86,5 +106,5 @@ Schema fixtures, успешный экспериментальный ISO или этот реестр EN/RU, открытые вопросы и примеры. C IDs сохраняются; замена или уточнение получает ссылку на решение, история не стирается. Новые предложения остаются в draft/ review до утверждения. Новому самостоятельному контракту добавляется строка; -уточнение отражается в существующей. Все принятые D-001–D-074 представлены хотя бы +уточнение отражается в существующей. Все принятые D-001–D-078 представлены хотя бы раз; пересечения намеренны. Само индексирование не создаёт нового решения архитектуры. diff --git a/ru/spec/decision-log.md b/ru/spec/decision-log.md index c6bc4d6..7e691bd 100644 --- a/ru/spec/decision-log.md +++ b/ru/spec/decision-log.md @@ -4,6 +4,14 @@ Текущий согласованный объём собран в [реестре контрактов](contract-registry.md). +## Временный профиль доверия обновлениям hardware-test + +| ID | Решение | Статус | +|---|---|---| +| D-078 | Отдельный OpenPGP-ключ на terra подписывает commits и summary OSTree для hardware-test. Клиент обязан проверять обе подписи. Публичный ключ входит в новые ISO; закрытый ключ не передаётся builder. Для старых ISO без updater/ключа нужен явный bootstrap либо новый ISO. Это временная привязка, не утверждение полного формата релизов, ротации ключей или приёмки обновлений. Явно одобрено пользователем 2026-11-05. | Accepted | + +## Предыдущие решения + | ID | Решение | Статус | |---|---|---| | D-001 | OSTree — основа неизменяемого хранения файловой системы, коммитов, refs, deployments, обновлений и отката. | Accepted | @@ -110,6 +118,19 @@ D-067–D-069 и план реализации package actions явно прин | D-072 | Для будущих captures отдельный ZFS dataset tank/archipelago, рабочее зеркало остаётся в /opt/mirror/data. Хранить не более трёх месячных snapshots. Уточнение D-063/D-068: нельзя молча удалять входы, необходимые retained releases/locks; если безопасное удаление невозможно, новый capture останавливается. Отдельное хранилище и лимит явно согласованы 2026-11-05. Включение capture затем отложено D-073. | Accepted | | D-073 | Пока проект созревает, не создавать snapshots и не копировать зеркало целиком. Экспериментальные образы формировать из живого зеркала; приоритет — работа над воспроизводимостью и соответствием RFC. Заморозка и релизы из snapshots — позже. Сохранять точные identities/checksums входов прогона; изменение/недоступность — ошибка, не молчаливая подмена. Живое зеркало и успешный эксперимент не являются sealed Snapshot/public release. D-050 и public release gates сохраняются. Явное указание пользователя 2026-11-05. | Accepted | +## GNOME Desktop и общий Desktop Toolbx + +| ID | Решение | Статус | +|---|---|---| +| D-075 | Первый Desktop Purpose — GNOME: полная интеграция GNOME, Flatpak из коробки, GNOME Software/PackageKit для whole-image updates Archipelago и GNOME Initial Setup для пользователя/timezone/settings. Нативно согласованы Shell/GDM/Settings/Software, Nautilus, Console, Disks, System Monitor. Stable Flathub: Web, Calculator, Calendar, Contacts, Text Editor, Loupe, Papers, Clocks, Weather; GNOME Nightly только opt-in. Lifecycle приложений принадлежит Flatpak отдельно от ОС. После Core+GNOME checks публиковать допущенные артефакты на портал/в registry; inherited Core, GNOME и public gates сохраняются. См. spec/gnome-desktop.md в EN-дереве. Явно согласовано 2026-11-05. | Accepted | +| D-076 | Каждый Desktop Purpose поддерживает upstream Toolbx с rootless Podman и явно выбранной Arch Linux средой, аналогично Silverblue. Переиспользовать проверенный upstream Arch Toolbx image, фиксировать OCI identity, проверять subordinate IDs/storage/network/session/home и сохранение при обновлении ОС. Пакеты контейнера отделены от Host Extensions, не меняют host /usr. Update не пересоздаёт и не удаляет пользовательские контейнеры. Точные image binding и adapters требуют evidence. Явно запрошено 2026-11-05. | Accepted | + +## Выбор загрузки после создания deployment + +| ID | Решение | Статус | +|---|---|---| +| D-077 | Любая успешная операция, создающая новый OSTree deployment целевой системы, автоматически выбирает его default для следующей загрузки: установка, update/rebase, смена Purpose, Managed Overlays и Host Extensions. Отдельная команда активации/выбора загрузки не нужна. Для staged deployments boot entry оформляется штатной успешной финализацией; подготовка не вызывает reboot и не меняет работающий корень. Ошибка операции сохраняет прежний загрузочный выбор. Явный rollback выбирает запрошенный предыдущий deployment; ошибки boot checks по-прежнему не вызывают автоматический rollback по D-049. Сборка layer/image commit сама по себе не создаёт deployment. Явное указание пользователя, 2026-11-05. | Accepted | + ## Правила статусов D-055 меняет требование D-041 «ровно один Purpose» на «ноль или один». Первый профиль реализации D-053 — этап поставки, а не ограничение композиции. diff --git a/ru/spec/gnome-desktop.md b/ru/spec/gnome-desktop.md new file mode 100644 index 0000000..e687ca5 --- /dev/null +++ b/ru/spec/gnome-desktop.md @@ -0,0 +1,36 @@ +# GNOME Desktop, Flatpak и Toolbx + +[Полный контракт, EN](../../spec/gnome-desktop.md) + +**Accepted: D-075/D-076, 2026-11-05.** GNOME выбран первым Desktop Purpose. +Нужны GNOME/Wayland/GDM/Settings, keyring/online accounts/portals, сеть/звук/устройства, +GNOME Software с whole-image updates Archipelago через общий transaction backend. +Штатный PackageKit ALPM backend для изменения immutable хоста не подходит. + +Первичная настройка — GNOME Initial Setup в new-user mode через GDM: аккаунт, +язык/клавиатура, сеть, timezone. Терминальный Core wizard не конкурирует с ним. +Archipelago наблюдает успешный обычный вход и проверяет identity/home/admin, +не создаёт второго пользователя и не повторяет onboarding при update/Purpose change. + +Согласованные нативные приложения: Shell/GDM/Settings/Software, Nautilus, Console, +Disks, System Monitor. Flatpak из stable Flathub: Web, Calculator, Calendar, +Contacts, Text Editor, Loupe, Papers, Clocks, Weather. GNOME Nightly — opt-in. +Flatpak владеет обновлением/удалением приложений независимо от OS deployment; +OS update не возвращает удалённые приложения. `/var/lib/flatpak` и home сохраняются. +Начальная установка, offline availability, retries и trust требуют проверки. + +Во **всех Desktop Purpose** обязателен Toolbx + rootless Podman с явно выбранной +Arch Linux средой. Проверить upstream OCI image/digest, subordinate IDs, networking, +storage, home/Wayland/session и сохранение среды при update/rollback. Пакеты Toolbx +не являются Host Extensions; пользовательские контейнеры не пересоздаются update. + +В live mirror проверены GNOME Software 51.1-1 (Flatpak есть, PackageKit plugin нет), +PackageKit 1.4.0-1 (ALPM backend), Initial Setup 51.1-1, GDM 51.1.1-1, +Toolbx 0.3-2 и Podman 6.1.4-1. Это inventory, не готовность desktop/runtime. +Потребуется адаптация Software и общий backend обновлений Archipelago. + +Приёмка: чистая установка и настоящий graphical onboarding/session, настройки и +службы; lifecycle Flatpak; rootless Arch Toolbx; CLI/GUI OS update, отказ/rollback, +сохранение полного набора Host Extensions; inherited Core checks на полном GNOME +candidate. Публикация в portal/registry — после применимых gates D-050–D-052/D-069, +включая воспроизводимость. Успешный отдельный Core и частный GNOME probe их не заменяют. diff --git a/ru/spec/open-questions.md b/ru/spec/open-questions.md index a6217c3..f1a3b3c 100644 --- a/ru/spec/open-questions.md +++ b/ru/spec/open-questions.md @@ -66,6 +66,9 @@ runtime evidence и адаптеры остаются открытыми в со 15. Какие Git-хостинг и реализация CI выбираются первыми? 16. Какой транспорт OSTree и серверная реализация реестра выбираются? 17. Как управляются аутентификация реестров, ключи подписей, корни доверия и ротация ключей? + D-078 выбирает временный OpenPGP-ключ hardware-test на terra, подписи commits + и summary OSTree и встроенный публичный ключ установщика. Общие форматы, + ротация, отзыв ключей и защита от повторного предъявления старых релизов открыты. 18. Какие пакетные репозитории и snapshots Arch Linux Archive поддерживаются? D-063 планирует ежемесячные snapshots через ZFS на хосте зеркала после рабочего экспериментального Core ISO. Точные протоколы захвата, хранения и публикации открыты. @@ -103,6 +106,9 @@ D-064 выбирает отложенное создание основного ## Runtime-нагрузки 37. Какие менеджеры нагрузок входят в MVP: Flatpak, Distrobox, Podman, Docker, k3s? + D-075 выбирает Flatpak для GNOME apps, D-076 — Toolbx с rootless Podman и + Arch-средой для каждого Desktop Purpose. Остальные managers, точные workload + seed/trust schemas и runtime/transition evidence остаются открытыми. 38. Где граница владения между неизменяемыми бинарниками/units и постоянными данными нагрузок? 39. Как нагрузки согласуются при смене Purpose? 40. Какой контракт резервного копирования/миграции нужен для состояния `/var`? @@ -160,7 +166,7 @@ D-064 выбирает отложенное создание основного 66. D-045/D-050 выбирают публичные testing/stable с полной воспроизводимостью и успехом обязательных проверок, ограниченный разработчиками staging и воспроизводимые локальные эксперименты. Продвижение того же коммита и публикация объектов/метаданных предшествуют обновлению каналов. Какие точные протокол публикации, общая публичная матрица, критерии продвижения, контроль доступа staging, формат офлайн-набора и корни retention обеспечивают гарантии? 67. Решено D-060: D-029 запрещает удаление постоянных системных/служебных записей через Archipelago. Штатное выделение/освобождение `DynamicUser=` systemd остаётся обычным lifecycle службы без собственного механизма Archipelago. 68. D-037 принимает выбор пакета по имени из snapshot базы и точные локальные файлы с разрешением зависимостей по этому snapshot и проверкой совместимости. D-038 требует отдельных явных запросов замены целого пакета; детали схемы запросов/поколений открыты (вопрос 29). -69. Решено D-049: rollback и смена default следующей загрузки требуют явной команды пользователя. При ошибке выдавать диагностику, совет и применимую команду отката без автоматической смены загрузочного выбора или reboot. Точный CLI и представление цели восстановления открыты. +69. Решено D-049/D-077: rollback требует явной команды пользователя, а успешное создание нового deployment автоматически выбирает его для следующей загрузки без отдельной активации. Ошибка не меняет загрузочный выбор и не вызывает reboot. Точный CLI, представление цели восстановления и сверка с saved/one-shot overrides загрузчика остаются работой реализации. 70. Как доказывается полная воспроизводимость D-050 для testing/stable: канонические метаданные коммита, детерминированные генераторы/toolchain-входы, сравнение образов и релизных артефактов, обработка подписей/аттестаций и независимые пересборки? Как фиксируются изменения локального дерева исходников для воспроизводимости экспериментов? 71. D-051 задаёт минимальные функциональные условия публичных каналов: загрузка/локальный вход Core, установка Host Extension, применение Managed Overlay и работа заявленных служб Purpose в чистой среде. Какие тестовые пакеты/overlays, поддерживаемые VM/аппаратные профили, пробы служб и автоматизированный harness это реализуют? Функциональные тесты не заменяют доказательство воспроизводимости из вопроса 70. D-052 требует выполнения всех проверок Core на каждом полном релизном кандидате Core + Purpose в дополнение к проверкам его служб. diff --git a/spec/contract-registry.md b/spec/contract-registry.md index df4fa7c..d9ab30d 100644 --- a/spec/contract-registry.md +++ b/spec/contract-registry.md @@ -2,12 +2,19 @@ [Русская версия](../ru/spec/contract-registry.md) -**As of 2026-11-05. Coverage: D-001–D-074, RFC-0001–0011.** +**As of 2026-11-05. Coverage: D-001–D-078, RFC-0001–0011.** This is the consolidated index of accepted contracts, not a new approval or an implementation claim. `C-xxx` identifiers are stable navigation keys; `D-xxx` remain the approval/history identifiers. All entries below are **Accepted**, with the explicitly limited scope shown. A frozen format is identified separately. +### C-025 — Temporary hardware-test signing + +**Accepted: D-078.** A separate OpenPGP key remains on terra; commits and summaries +are signed and verified by clients. Public trust is embedded in new ISO images. +General release formats, rotation/revocation and replay policy remain open. +Normative source: [RFC-0010](../rfc/RFC-0010-docker-build-and-distribution.md), §6. + ## Authority and interpretation - [Decision log](decision-log.md) records approval and subsequent refinements. @@ -38,7 +45,7 @@ the explicitly limited scope shown. A frozen format is identified separately. | C-009 | Preserve persistent data across update/rebase/rollback/Purpose changes. One archipelago stateroot; Silverblue-style /var persistence; native deployment-local /etc and /usr/etc merge semantics. | D-019, D-030, D-032 | [RFC-0007](../rfc/RFC-0007-ostree-platform-integration.md) | Package persistence/migration adapters, especially /opt; no implicit global account sync. | | C-010 | Standard sysusers/tmpfiles, preserve existing IDs, never merge build account DBs. Human-only explicit deletion; ambiguous/system identities cannot be deleted. Native DynamicUser remains native. Initial single-user onboarding precedes later deployments; rollback account edge case is explicit. | D-028, D-029, D-036, D-060 | [RFC-0006](../rfc/RFC-0006-system-accounts.md), [RFC-0007](../rfc/RFC-0007-ostree-platform-integration.md) | Reliable account classification and concrete reconciliation adapters. | | C-011 | Per-image pacman-format DB at a non-default location; prevent live mutations. Retain base-matched extension working/history DBs independently of deployments. | D-031 | [RFC-0007](../rfc/RFC-0007-ostree-platform-integration.md), [RFC-0008](../rfc/RFC-0008-manifests-locks-and-artifacts.md) | Stable paths and fully validated DB construction/live-guard implementations. | -| C-012 | systemd-boot and staged deployments; retain booted, previous rollback, pending and pinned. Bounded per-boot checks gate cleanup. Target lifecycle only for service starts. Explicit rollback and separate reboot; no automatic boot-entry switch on failure. | D-033, D-034, D-046, D-047, D-048, D-049 | [RFC-0007](../rfc/RFC-0007-ostree-platform-integration.md), [RFC-0009](../rfc/RFC-0009-cli-contract.md) | General boot/storage profiles, success records, shutdown diagnostics and retention implementation. | +| C-012 | systemd-boot and staged deployments; retain booted, previous rollback, pending and pinned. Successful creation selects the new deployment as next-boot default automatically. Bounded per-boot checks gate cleanup. Target lifecycle only for service starts. Explicit rollback and separate reboot; no automatic boot-entry switch on failure. | D-033, D-034, D-046, D-047, D-048, D-049, D-077 | [RFC-0007](../rfc/RFC-0007-ostree-platform-integration.md), [RFC-0009](../rfc/RFC-0009-cli-contract.md) | General boot/storage profiles, saved/one-shot overrides, success records, shutdown diagnostics and retention implementation. | | C-013 | testing/stable publish the same verified immutable image on promotion. Both require full reproducibility and all functional gates. Core boot/login/extensions/overlays are inherited by each Purpose candidate, which adds service/session checks. Experiments remain private staging. | D-045, D-050, D-051, D-052 | [RFC-0003](../rfc/RFC-0003-build-and-composition.md), [RFC-0010](../rfc/RFC-0010-docker-build-and-distribution.md) | Reproducibility proof, complete validation matrix and trustworthy release attestations. | | C-014 | Registries are initial architecture. Docker Compose + host cron, separated builder/KVM validator/publisher, monthly combined snapshots and daily pinned candidates. HTTP/native OSTree distribution, atomic signed channel discovery after full artifact verification; shared update/net-install/portal identities; purpose-separated OpenPGP keys. | D-006, D-063, D-068 | [RFC-0001](../rfc/RFC-0001-architecture.md), [RFC-0010](../rfc/RFC-0010-docker-build-and-distribution.md) | Deployment topology/URLs, key custody, exact schedules/quotas and worker isolation validation. | | C-015 | RFC v0 architecture ratified; implement an end-to-end profile first without narrowing the architecture or weakening public gates. Primary binary and functional modules are Rust. | D-053, D-061, D-062 | [RFC-0001](../rfc/RFC-0001-architecture.md), [decision log](decision-log.md) | Delivery milestones are not claims of complete implementation or frozen module APIs. | @@ -71,6 +78,21 @@ to exercise infrastructure and updates by image commit. Explicit `linux-firmware in Core and the live installer, with its dependency closure. Public gates remain; hardware-wide support, reproducibility and update success need separate evidence. +### C-023 — GNOME and Flatpak application lifecycle + +**Accepted: D-075.** [GNOME contract](gnome-desktop.md): first Desktop Purpose, +native GNOME integration and first-user setup, approved native/Flathub application +split, Flatpak-owned application lifecycle, GUI OS updates through the Archipelago +transaction backend. Remaining: Software/PackageKit adaptation, onboarding/Flatpak +runtime evidence, inherited Core/GNOME/update/reproducibility/publication gates. + +### C-024 — Toolbx on every Desktop Purpose + +**Accepted: D-076.** [Desktop Toolbx contract](gnome-desktop.md): upstream Toolbx, +rootless Podman, explicit Arch environment, independent mutable container lifecycle +and persistent home/session integration. Remaining: OCI binding, subordinate-ID and +runtime/transition verification on each Desktop Purpose. + ## Implementation and evidence Implementation status is independent of contract approval. Evidence lives in the @@ -88,5 +110,5 @@ decision log, this registry (both languages), open questions and affected exampl Keep C IDs stable; record replacement/refinement links instead of silently rewriting history. New proposals remain in draft/review documents until approved. Add a row when a new independently identifiable contract is accepted; use existing rows for -refinements. This register covers every accepted D-001–D-074 at least once; overlapping +refinements. This register covers every accepted D-001–D-078 at least once; overlapping references are intentional. No new architectural decision is created by indexing them. diff --git a/spec/decision-log.md b/spec/decision-log.md index 2e10f9a..9e94573 100644 --- a/spec/decision-log.md +++ b/spec/decision-log.md @@ -110,6 +110,25 @@ on 2026-11-04. Implementation and the explicitly open details remain pending. | D-072 | Use a separate tank/archipelago ZFS dataset for future mirror captures, leaving the live mirror at /opt/mirror/data. Retain at most three monthly snapshots. This refines D-063/D-068 retention: referenced release/lock inputs cannot be silently destroyed to satisfy the cap; if no snapshot can be safely retired, capture must stop. User explicitly approved separate storage and the three-monthly-snapshot cap on 2026-11-05. Capture activation is subsequently deferred by D-073. | Accepted | | D-073 | Defer snapshot creation and bulk mirror copying while the project matures. Use the live mirror for experimental image construction, prioritize reproducibility work and RFC conformance, and move to frozen snapshots for release construction later. Retain exact per-run input identities/checksums, reject changed or unavailable inputs rather than silently substituting them, and do not treat a mutable mirror or a successful experiment as a sealed Snapshot/public release. D-050 and public release gates remain. User explicitly directed this sequencing on 2026-11-05. | Accepted | +## GNOME Desktop and shared Desktop Toolbx + +| ID | Decision | Status | +|---|---|---| +| D-075 | Implement GNOME as the first Desktop Purpose with full GNOME integration, Flatpak out of the box, GNOME Software/PackageKit integration with Archipelago whole-image updates and GNOME Initial Setup for first-user/timezone/settings onboarding. Approved native applications: Shell/GDM/Settings/Software, Nautilus, Console, Disks, System Monitor. Approved stable Flathub apps: Web, Calculator, Calendar, Contacts, Text Editor, Loupe, Papers, Clocks, Weather; GNOME Nightly is opt-in. Flatpak owns application lifecycle independently of OS deployments. Build/test Core+GNOME and publish eligible artifacts to portal/repository; inherited Core, GNOME and public gates remain. See spec/gnome-desktop.md. Explicitly approved 2026-11-05. | Accepted | +| D-076 | Every Desktop Purpose must support upstream Toolbx with rootless Podman and an explicitly selected Arch Linux execution environment, analogous to Silverblue's mutable development environment. Reuse a reviewed upstream Arch Toolbx image where suitable; record OCI identity, validate subordinate IDs/storage/network/session/home integration and persistence across OS updates. Container package management is separate from Host Extensions and cannot mutate host /usr. Do not recreate/delete user containers on OS update. Exact image binding and adapters require evidence. Explicitly requested 2026-11-05. | Accepted | + +## Default selection after deployment creation + +| ID | Decision | Status | +|---|---|---| +| D-077 | Every successful operation creating a new target-system OSTree deployment automatically selects it as the default for the next boot: installation, update/rebase, Purpose changes, Managed Overlays and Host Extensions. No separate activation/boot-selection command is required. Staged deployments materialize the boot entry through native successful finalization; preparation alone does not reboot or switch the running root. Failed operations preserve the existing boot selection. Explicit rollback selects its requested previous deployment; failed boot checks still do not trigger automatic rollback under D-049. Building a layer/image commit alone is not deployment creation. Explicit user direction, 2026-11-05. | Accepted | + +## Temporary hardware-test update trust + +| ID | Decision | Status | +|---|---|---| +| D-078 | Use a separate OpenPGP signing key on terra for the temporary hardware-test OSTree repositories. Sign commits and summary; update clients must verify both. Embed the public key in new installer images; never send the private key to the build host. Existing images without the updater/key require an explicit bootstrap or a new ISO. This selects an experimental trust binding, not the testing/stable release format, key-rotation policy or full update acceptance. Explicit user approval, 2026-11-05. | Accepted | + ## Status guidance D-055 revises D-041's exactly-one Purpose requirement to zero-or-one. D-053's first diff --git a/spec/gnome-desktop.md b/spec/gnome-desktop.md new file mode 100644 index 0000000..4a91403 --- /dev/null +++ b/spec/gnome-desktop.md @@ -0,0 +1,85 @@ +# GNOME Desktop, Flatpak and Toolbx + +**Accepted direction: D-075/D-076, 2026-11-05.** Package-level implementation, +transition evidence and release readiness are separate from this approval. + +## Product contract + +GNOME is the first Desktop Purpose to implement. Provide GNOME Shell/Wayland, +GDM, Settings, keyring, online accounts, portals, audio, networking and device +integration. GNOME Software manages Flatpak applications and exposes whole-image +Archipelago updates through the shared checked transaction backend. PackageKit must +not mutate the immutable host through its ALPM backend. + +GNOME Initial Setup runs in GDM new-user mode before normal login, covering account, +language/keyboard, network, timezone and other supported initial settings. Core's +terminal onboarding must not compete with it. Observe a successfully authenticated +normal user session and account/home/admin consistency before recording Archipelago +onboarding completion. Existing provisioned Core accounts are inherited; adding +GNOME later must not create another initial user. Retry and rollback must preserve +identities and administrator settings. + +The user approved this initial application split: + +| Lifecycle | Applications | +|---|---| +| Native OS image | Shell, GDM, Settings, Software, Files/Nautilus, Console, Disks, System Monitor | +| Flatpak, stable Flathub | Web (`org.gnome.Epiphany`), Calculator, Calendar, Contacts, Text Editor, Loupe, Papers, Clocks, Weather | + +GNOME Nightly is opt-in, not a default source for these stable applications. Flatpak +and its GNOME Software plugin work out of the box. Apps/runtimes/remotes and their +updates/removal belong to Flatpak. Distribution seeding is a first-install operation; +later OS updates cannot silently reinstall an app the user removed. Keep system +installation state in `/var/lib/flatpak`, user state under persistent home. Initial +refs/commits and trust inputs need build evidence; mutable application updates are +not OS-image deployments. A Flatpak service is not allowed to delay offline user +creation indefinitely. Offline ISO availability and online retry need explicit tests. + +## Toolbx on every Desktop Purpose + +D-076 requires upstream Toolbx (`toolbox` executable/package) and rootless Podman +for every Desktop Purpose, including future KDE. Configure an Arch Linux environment +explicitly, with a reviewed Arch Toolbx OCI image and recorded digest. Reuse upstream +image/integration where possible. User-created environments have normal mutable Arch +package management, persistent home integration and a lifecycle independent of OS +deployments and Host Extensions. This does not change the host support status by +itself and does not imply isolation from the shared home or host resources. + +Native account provisioning must provide valid subuid/subgid mappings and working +rootless storage/networking. Verify plain `toolbox create`, `toolbox enter/run`, +Arch `/etc/os-release`, package installation confined to the container, shared home, +Wayland/session access and persistence over OS update/rollback. No automatic deletion +or recreation of user environments on image updates. Optional creation at first use +must not prevent offline desktop onboarding. + +## Current integration findings + +Inspected terra's live Arch mirror on 2026-11-05 (observations, not a sealed snapshot): +GNOME Software 51.1-1 has Flatpak/fwupd plugins but no PackageKit plugin. PackageKit +1.4.0-1 supplies the ALPM backend. Therefore installing stock packages is insufficient: +build a reviewed GNOME Software adaptation with PackageKit support and an Archipelago +backend, or validate a native Software plugin with the same update contract. Do not +claim GUI updates until real discover/plan/stage/reboot/failure tests pass. + +GNOME Initial Setup 51.1-1 and GDM 51.1.1-1 provide the setup session and upstream +AccountsService/Polkit integration. Toolbx 0.3-2 and Podman 6.1.4-1 are available. +Upstream provides `quay.io/toolbx/arch-toolbox`; image compatibility and default +selection must be verified on the target rather than inferred from its name. +Package records/file inventories are under `/opt/archipelago/evidence/gnome/` on terra. + +## Delivery and acceptance + +1. Complete the current Core/firmware run, then build a distinct Core+GNOME candidate. +2. Validate full package-action coverage, GDM/new-user onboarding and real session, + settings/network/audio/portals and native applications. +3. Validate default Flatpak installation, launch, update, removal and persistence; + then the Desktop Toolbx scenarios above. +4. Validate authenticated CLI and GUI OS updates, full Host Extension reapplication, + stale-plan rejection, failed-update state preservation and explicit reboot. +5. Run inherited Core boot/login/overlay/extensions checks on the GNOME candidate, + plus reproducibility and all applicable publication gates. Publish the same + validated artifacts to the repository and ISO portal, with correct variant metadata. + +Passing an independent Core image is insufficient. D-050/D-051/D-052 and D-069 +remain in force; this direction does not assert completed GUI integration or grant +an exception to public publication criteria. diff --git a/spec/open-questions.md b/spec/open-questions.md index 902834b..78d8f10 100644 --- a/spec/open-questions.md +++ b/spec/open-questions.md @@ -79,6 +79,9 @@ remain open; these bindings alone do not complete the pipeline or update client. 15. Which Git hosting and CI implementation is targeted first? 16. Which OSTree transport and registry server implementation is selected? 17. How are registry authentication, signing keys, trust roots and key rotation managed? + D-078 selects a temporary hardware-test OpenPGP key on terra, signed OSTree + commits/summary and an embedded installer public key. General release metadata, + rotation, revocation and replay policy remain open. 18. Which package repositories and Arch Linux Archive snapshots are supported? D-063 plans monthly ZFS-backed snapshots on the mirror host after the working experimental Core ISO milestone. Exact capture, retention and publication protocols remain open. @@ -116,6 +119,9 @@ question 72 tracks the remaining control-layer integration contract. ## Runtime workloads 37. Which workload managers are in MVP: Flatpak, Distrobox, Podman, Docker, k3s? + D-075 selects Flatpak for GNOME application lifecycle; D-076 selects Toolbx with + rootless Podman and Arch environments for every Desktop Purpose. Other managers, + exact workload seed/trust schemas and runtime/transition evidence remain open. 38. What is the ownership boundary between immutable binaries/units and persistent workload data? 39. How are workloads reconciled during a Purpose switch? 40. What backup/migration contract is required for `/var` state? @@ -193,7 +199,7 @@ The baseline and deletion policy are accepted as D-028/D-029; see 66. D-045/D-050 select public testing/stable with full reproducibility and successful required checks, developer-restricted experimental staging and reproducible local experiments. Same-commit promotion and publication of objects/metadata precede channel updates. What exact publication protocol, common public validation matrix, promotion criteria, staging access control, offline bundle format and retention roots implement these guarantees? 67. Resolved by D-060: D-029 prohibits deletion of persistent system/service account records through Archipelago. Standard systemd `DynamicUser=` allocation/release remains normal service lifecycle without a custom Archipelago mechanism. 68. D-037 accepts package-by-name selection from the base snapshot plus exact local package files, with dependencies resolved against that snapshot and compatibility validation. D-038 requires separate explicit whole-package replacement requests; request/generation schema details remain open (question 29). -69. Resolved by D-049: rollback and changing the next-boot default require an explicit user command. On failure, provide diagnostics, advice and an actionable rollback command, without changing boot selection or rebooting automatically. Exact CLI syntax and recovery-target presentation remain open. +69. Resolved by D-049/D-077: rollback requires an explicit user command, while successful creation of a new deployment automatically selects it for the next boot without a separate activation command. Failure does not change boot selection or reboot automatically. Exact CLI syntax, recovery-target presentation and verification against saved/one-shot bootloader overrides remain implementation work. 70. How is D-050 full reproducibility demonstrated for testing/stable: canonical commit metadata, deterministic generators/toolchain inputs, image and release-artifact comparison, signature/attestation handling and independent rebuild evidence? How are local source-tree changes captured so experimental builds are reproducible? 71. D-051 defines minimum public-channel functional gates: Core boot/local login, Host Extension package installation and Managed Overlay application, and declared Purpose service functionality in a clean environment. Which package/overlay fixtures, supported VM/hardware profiles, service-specific probes and automated harness implement these gates? Functional tests do not replace question 70's reproducibility evidence. D-052 requires every Core gate to run against each complete Core + Purpose