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
+31 -4
View File
@@ -39,9 +39,8 @@ platform without pulling layers. `docker compose config --format json` checks th
effective service configuration. Compose receives only Docker connection/trust,
proxy and executable-discovery host variables; application parameters come from
the prepared environment file. Raw Docker output is never copied into reports.
Each Docker command has a 15-second bound. No release is currently certified merely
because controlled manifest tests pass: publication and real pull acceptance belong
to the publication/execution tickets.
Each preflight Docker command has a 15-second bound. Public image publication is
verified separately; controlled manifest tests alone do not certify host acceptance.
## External checks and bounds
@@ -85,7 +84,35 @@ is generated. Credential rotation invalidates the plan. Added/deleted/changed
workspace files invalidate it as well. Changes during the checks abort publication.
Plan output never overwrites an existing plan or key.
Execution and resumption must call `VerifyPlanInputs` **and repeat live checks and
Execution and resumption call `ReadExecutionPlan` **and repeat live checks and
credential reads before mutations**. A valid seal alone does not certify current
network availability, Docker state or runtime readiness. Keep both plan files
private and outside the workspace repository; they are installation-local artifacts.
## Non-interactive platform execution
`tht --installation ABS_DESCRIPTOR installation apply --plan ABS_PLAN [--json]`
requires an operator whose version and revision match the manifest. Plans must
include the manifest and bootstrap paths; regenerate older plans. The only permitted
absent-input transition is materialization of a standard release transport overlay
with exactly its packaged digest. All other input changes invalidate execution.
The local profile uses the preparing non-root Unix operator's UID/GID for core,
maintenance, migrations and PostgreSQL. Original private authentication directory
and credential mounts remain authoritative. A pinned, offline one-shot helper seeds
only installation-owned volumes, retaining a root-owned initialization marker for
interruption recovery. Existing ready volumes are never recursively chowned.
Account collisions and foreign volumes stop execution. This requires local Docker;
Windows runs inside WSL2 rather than the native Windows shell.
The lifecycle lock excludes concurrent operations. Asset publication and journal
updates are atomic. Every retry repeats reconciliation, even after a completed
journal stage. Pull and service startup have 30-minute bounds; Catalog startup and
migration have 5-minute bounds; final health inspection has a 1-minute bound.
Cancellation cleans up named one-shot containers and releases the lock. Hard-killed
processes require explicit stale-owner inspection; automatic destructive repair is
not performed. Errors contain a stage/action without raw Docker output or secrets.
Success reports `platform_ready: true` and `workspace_ready: false`: services and
local authentication protection are checked, while binding import, workspace
preprocessing, model use and final readiness remain separate obligations.