feat: apply sealed installation plans without interactive setup

This commit is contained in:
Codex
2026-10-06 15:45:18 +02:00
parent c3c9f509bf
commit 8b9a086fd6
31 changed files with 1542 additions and 45 deletions
+41 -6
View File
@@ -13,9 +13,11 @@ The first two steps of the new flow work without Docker, Node, Python, Pi or an
installation descriptor. Use the platform bundle with **both** `tht` and
`tht-workspace-documents` in the same directory (`.exe` on Windows). Put that directory
on `PATH`, or invoke the absolute executable path. Older packages containing only
`tht` do not provide this capability. Maintainers can currently build the bundle;
publishing assets and Docker Hub images belongs to a later delivery step. The rest
of this guide still describes the existing installation path.
`tht` do not provide this capability. Download bundles from the
[public releases](https://git.tylconsulting.it/mptyl/ThothII/releases); core and frontend
images are published on Docker Hub. `installation apply` requires a bundle containing
that command: the first preview provided preparation and preflight only. On Windows,
use the Linux bundle inside Ubuntu WSL2.
1. Choose a new directory outside the application checkout, with an existing parent:
@@ -179,8 +181,8 @@ tht --installation /path/installation/thothii-installation.yaml installation pla
This repeats document checks, verifies image digests and Compose, Git, available
external databases and Evidence, then saves the plan and its separate private
`.key` file. It does not execute setup. Missing images and unavailable existing
dependencies block the plan. Actual Docker Hub publication remains the next ticket;
an invented manifest cannot bypass publication.
dependencies block the plan. The manifest and executables must belong to the same
release; an invented manifest cannot bypass these checks.
Correct `error` outcomes and read `warning` outcomes. `deferred-to-runtime` entries
are mandatory checks after startup, not readiness already achieved. After changing
@@ -192,7 +194,40 @@ incur ordinary service request charges. See the
[preflight reference](installation-preflight.md) for limits, the manifest
format and runtime obligations.
## Before you start: the two repositories
## Start the platform from verified documents
Use the same non-root operator that prepared the documents, with access to local
Docker. The command asks no questions and accepts closed stdin:
```sh
tht --installation /path/installation/thothii-installation.yaml installation apply \
--plan /path/installation/installation-plan.json --json
```
It repeats live checks and plan verification, copies verified assets, pulls images,
initializes new installation volumes, starts PostgreSQL, applies Catalog and Memory
migrations, and starts services. It never builds sources. The initial administrator
comes from the prepared authentication documents. Secrets retain private permissions;
services that read them run with the operator's UID. This path does not convert an
existing stack with incompatible volume ownership.
`platform_ready: true, workspace_ready: false` confirms platform startup and protected
endpoints, **not** readiness to query a database. Binding import, workspace activation
and preprocessing, and a model smoke test are subsequent steps. The three curated
example databases remain deferred.
After a failure, correct the cause and repeat `apply`. The private journal under
`.tht/<installation>/installation-apply.json` records stages; actual service state is
checked again. Retries preserve data, never reset volumes and never fall back to
building sources. Changed documents or credentials require a new plan. Ctrl+C releases
the lock; after a forcibly killed process, confirm that its owner is no longer running
before explicitly removing a stale lock. A different release requires the upgrade
path rather than this command.
## Manual source path: the two repositories
The remaining sections describe the existing manual path. Do not run its build/setup
commands over an installation created with `installation apply`.
There are two separate repositories: