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
+29
View File
@@ -97,6 +97,35 @@ THT_INSTALLATION_TEST_CLI=/absolute/path/dist/workspace-tools/darwin-arm64/tht \
go test ./cmd/tht -run TestNativeInstallationPlanBeforeContainersExist -count=1
```
## Non-interactive platform apply (issue #47)
With the matching released operator and a fresh sealed plan:
```sh
tht --installation /absolute/path/thothii-installation.yaml \
installation apply --plan /absolute/path/installation-plan.json --json
```
The command repeats checks, pulls immutable images, initializes local runtime identity
and volumes, migrates Catalog/Memory and starts the platform without stdin prompts.
It preserves original protected authentication files and uses the non-root preparing
operator's UID. Retry reconciles services and preserves existing data. Platform success
does not claim workspace readiness. See the IT/EN guides for recovery and limitations.
The native fixture test above also exercises apply and retry with closed stdin and
without host Node/Python/Bun. An additional opt-in proof uses the already-published
preview images to test Linux volume ownership, interrupted initialization, PostgreSQL
startup with a private password file and data preservation across restart:
```sh
cd tools/tht
THT_INSTALLATION_DOCKER_TEST=1 go test ./internal/installapply \
-run TestPublishedImagesAcceptProtectedOperatorIdentity -count=1 -v
```
This proof needs the pinned amd64 images pulled locally. Emulation on another CPU is
a runtime compatibility check, not platform certification.
## Shell configuration
The schema-v2 `thothii-installation.yaml` accepts this optional section: