diff --git a/PROJECT_STATE.md b/PROJECT_STATE.md index 223b2aba..9ef9cf01 100644 --- a/PROJECT_STATE.md +++ b/PROJECT_STATE.md @@ -21,14 +21,18 @@ and invariants are in [AGENTS.md](AGENTS.md); prior snapshots remain in Git. with Docker Hub core/frontend images and a downloadable native operator bundle. See [publication instructions](docs/install/publishing-images.md) and [verification evidence](docs/reports/2026-09-28-installation-prerelease.md). - Ticket #47 implements `installation apply --plan PATH`: fresh checks, immutable + Ticket #47 delivers `installation apply --plan PATH`: fresh checks, immutable pulls, local operator UID, resumable volume initialization, Catalog/Memory migrations and service/authentication health. Tests cover the public native command with closed stdin and Linux volume/private-secret behavior using published images. Platform success - explicitly leaves workspace readiness false. Publication of the new operator and a - complete released-bundle run remain the #47 delivery gate. Binding import, workspace - readiness, real-host acceptance and curated examples remain pending; preview.1 does - not contain apply or certify a complete installer. + explicitly leaves workspace readiness false. The current + [preview.5 release](https://git.tylconsulting.it/mptyl/ThothII/releases/tag/installation-v0.1.0-install-preview.5) + publishes amd64/arm64 images and native bundles. Its unmodified arm64 archive passed + apply/retry, UI/admin login and live user revocation in a Linux consumer without host + language runtimes; see [verification evidence](docs/reports/2026-10-06-installation-apply.md). + Binding import, workspace readiness, integrated source/recovery paths, real-host + acceptance and curated examples remain pending. Earlier previews are superseded + for platform apply; no complete installer/OS acceptance is claimed. - React supports full/embedded rendering independently of local/OIDC/upstream auth, with EN/IT UI and immutable session interaction language. See @@ -96,11 +100,11 @@ A later deployment does not prove every earlier acceptance item passed. - The first installation acceptance uses an ad hoc [Chinook workspace without Evidence](docs/testing/chinook-installation-smoke.md), backed by a separate local PostgreSQL test container. Its fixture import, - read-only credentials and offline workspace validation were verified; full - installation/readiness and a human-reviewed question remain pending. Evidence + read-only credentials, offline validation and platform apply were verified; binding + import, workspace readiness and a human-reviewed question remain pending. Evidence acceptance and the three curated examples are separate later work. -- Fresh-machine Mac, Windows/WSL2 and Linux installation acceptance, including real - DWH/model endpoints, remains a separate operator exercise. +- Fresh-machine installation acceptance, including real DWH/model endpoints, remains + a separate operator exercise, ordered Windows/WSL2, then Omarchy, then macOS. - Real IdP/portal login, logout, embedded interaction and PSD semantic acceptance follow the [manual matrix](docs/testing/authentication-manual-acceptance.md) and delivery reports; synthetic tests do not close them. diff --git a/docs/install/publishing-images.md b/docs/install/publishing-images.md index d0d2bed7..6f586cf3 100644 --- a/docs/install/publishing-images.md +++ b/docs/install/publishing-images.md @@ -2,6 +2,12 @@ ## Italiano +Per l'avvio automatico usare la +[preview.5](https://git.tylconsulting.it/mptyl/ThothII/releases/tag/installation-v0.1.0-install-preview.5): +include `installation apply`, immagini e bundle Linux amd64/arm64. L'avvio della +piattaforma è stato verificato dal pacchetto pubblico; import dei binding, readiness +dei workspace e collaudi sui sistemi operativi restano passi successivi. + Questo comando è riservato al manutentore. L'utente finale scarica il pacchetto e le immagini già compilati. La prima prerelease riguarda **Linux amd64**, utilizzato da Ubuntu WSL2 su Windows e successivamente da Omarchy; non certifica ancora il @@ -62,6 +68,11 @@ questa macchina di pubblicazione non sostituisce il successivo collaudo Windows. ## English +Use [preview.5](https://git.tylconsulting.it/mptyl/ThothII/releases/tag/installation-v0.1.0-install-preview.5) +for automatic platform startup: it includes `installation apply`, Linux amd64/arm64 +images and native bundles. Platform startup was verified from the public archive; +binding import, workspace readiness and operating-system acceptance remain later steps. + This is a maintainer command. Consumers download precompiled images and the native operator bundle. The first prerelease targets **Linux amd64** for Ubuntu WSL2 and later Omarchy; full installation and real-host acceptance remain separate work. diff --git a/docs/reports/2026-10-06-installation-apply.md b/docs/reports/2026-10-06-installation-apply.md new file mode 100644 index 00000000..2ad0e18d --- /dev/null +++ b/docs/reports/2026-10-06-installation-apply.md @@ -0,0 +1,97 @@ +# Published installation platform apply + +Date: 2026-10-06. Scope: [Installare la piattaforma dal rilascio senza domande](https://git.tylconsulting.it/mptyl/ThothII/issues/47). + +The public [0.1.0-install-preview.5 release](https://git.tylconsulting.it/mptyl/ThothII/releases/tag/installation-v0.1.0-install-preview.5) +contains the native operator, validator and immutable Docker Hub image references for +Linux amd64 and arm64. Source revision: `24b03d4caf2998b424038435bf6d0d4e241469b5`. +Use this preview for platform apply; earlier previews do not establish this result. +Publication attempts 2 and 4 were interrupted in draft; preview 3 was superseded +after the full consumer trial exposed maintenance-profile and default-origin issues. + +## Result and scope + +The final trial downloaded the public arm64 archive and checksum anonymously, then +used its unmodified executables inside Ubuntu 24.04 with Docker CLI/Compose. The +consumer had no separately installed Node, Python, Bun, Go or application checkout. +Its bind-mounted input directory supplied the released bundle and private test +documents; no application source checkout was mounted or compiled by the consumer. + +The Linux consumer used Docker Desktop on an arm64 Mac host. This is an automated +platform execution proof, **not** Windows, Omarchy or macOS fresh-machine acceptance. +Manual acceptance remains ordered Windows/WSL2, then Omarchy, then macOS. + +| Check | Observed result | +| --- | --- | +| Workspace preparation and validation | Native released tools; ad hoc Chinook workspace, Evidence absent | +| Application preparation, credentials and validation | Native released tools; protected files, generated local administrator | +| Live plan | Released manifest, registry, Compose, HTTPS Git and real PostgreSQL reader probe passed | +| Platform apply | Closed stdin, no source build, immutable pulls, volume initialization, Catalog/Memory migrations, service startup | +| Repeat apply | Passed; existing installation reconciled | +| Frontend | HTTP 200 | +| Workspace API without authentication | HTTP 401 | +| Prepared administrator login | HTTP 200 | +| Native CLI user addition | New user could log in without restarting core | +| Native CLI user disable | Existing session immediately received HTTP 401 | +| Final readiness | `platform_ready: true`, `workspace_ready: false` | + +The completed trial timestamp was `2026-10-06T14:19:12.714Z`. Application test +containers were stopped afterwards; their volumes and private documents were retained. +The final user-add/disable probe intentionally changed authentication inputs, so a +subsequent apply requires a fresh plan rather than reusing the pre-mutation plan. + +The separate Chinook fixture contained 11 tables, 3,503 tracks, 412 invoices and +2,240 invoice lines. Preflight used `thoth_reader`, not the database administrator. +The HTTPS Git check used the public ThothII repository only as an accessible remote +for this platform fixture; it did not activate the local Chinook workspace from that +remote. Repository activation and matching workspace revisions remain part of binding +import. A synthetic provider key was used; no LLM generation or credential-validity +claim was made. No database binding was imported into the application Catalog. + +## Changes and regression coverage + +- `installation apply --plan` verifies the sealed inputs and repeats live checks, + then executes under the installation lifecycle lock with an atomic private journal. +- Runtime services use the preparing non-root operator's identity. Original private + authentication files stay authoritative; updates and revocation remain live. +- A pinned offline helper initializes only owned volumes. Ready volumes are never + recursively chowned. Pi home and harness configuration volumes preserve their seed + files; PostgreSQL uses a data subdirectory beneath its initialization marker. +- Migration execution bypasses Pi home initialization. The PostgreSQL health check + waits for TCP readiness rather than accepting the temporary `initdb` server. +- Compose validation explicitly includes both maintenance profiles. Authentication + preparation defaults to `http://127.0.0.1:8080`, and validation rejects incompatible + local origins before startup. +- Atomic publication propagates write/short-write errors and never exposes partial + final assets. Initialization markers remain root-owned across interrupted seeding. + +Validation included the full Go suite (`go test -p 1 ./...`), affected-package tests +after subsequent fixes, native public-command prepare/plan/apply/retry with closed +stdin, Windows CLI cross-compilation, release producer tests and strict documentation +build. A cancellation test hit its existing short deadline during the initial parallel +suite; its focused rerun and serialized suite passed. + +The opt-in Docker identity test used published images and actual Linux volume +ownership. It exercised an interruption immediately before the ready marker, private +password access, both migration scripts, Pi writes, PostgreSQL restart and preservation +of an inserted row. Final published-bundle execution then verified the complete +platform path independently of the controlled Docker boundary used by unit tests. + +## Published archive checksums + +| Archive | SHA-256 | +| --- | --- | +| `thothii-0.1.0-install-preview.5-linux-amd64.tar.gz` | `51393b1cfc99afed790fc947535f319c7ae37691eb024a8b27bb643983e9e0c3` | +| `thothii-0.1.0-install-preview.5-linux-arm64.tar.gz` | `9077ca5acf5a2c2997b9bf03edc0b7ba0cb966c4955b645c880a1a85b758781c` | + +Exact image digests are in each archive's `release-manifest.json`. Publication verified +anonymous pulls of all five image roles and core/frontend smoke checks on both CPUs. + +## Remaining work + +[Apply prepared Catalog bindings](https://git.tylconsulting.it/mptyl/ThothII/issues/48) +and [workspace runtime readiness](https://git.tylconsulting.it/mptyl/ThothII/issues/49) +remain separate increments. The explicit source-mode integration and recovery across +all stages are also pending. A human-reviewed question and the Windows/WSL2 acceptance +exercise follow those increments. Curated example databases and Evidence remain the +deferred examples subproject.