feat: prepare installation workspaces through existing readiness services

This commit is contained in:
Codex
2026-10-06 18:23:24 +02:00
parent af4c7b5df9
commit 785d96ea50
15 changed files with 378 additions and 42 deletions
+15 -4
View File
@@ -127,8 +127,19 @@ Reruns compare live configuration and encrypted-store contents, retain equivalen
and stop on divergence. No bootstrap document becomes runtime authority. The application
tests the imported connection; a successful host probe alone is insufficient.
Success reports `platform_ready: true`, `bindings_ready: true`, `workspace_ready: false`.
Success reports `platform_ready: true`, `bindings_ready: true`, `workspace_ready: true`.
The bounded `binding_import` report distinguishes authentication, workspace reconciliation,
binding reconciliation and container connectivity failures. Workspace preprocessing,
model use and final readiness remain separate obligations. Published preview.5 predates
binding import; use a subsequent matching image/operator release for this extension.
binding reconciliation and container connectivity failures. `workspace_preparation`
reports existing Catalog synchronization and preprocessing outcomes. Pending destructive
review returns exit 3 with `schema_review_required`; resolve it in Administration and
repeat apply. Other failures return exit 1. No confirmation, curation overwrite, AI
description generation or Memory clearing is implicit. Current completed stages are reused.
`runtime_checks` retains workspace diagnostics (DWH, Evidence, Qdrant and embedding),
workflow diagnostics and Pi/default-provider smoke as pending/passed/failed. These
checks use bounded named one-shot containers, preserving cancellation cleanup. The
Pi smoke sends a short provider request with no DWH context and may incur usage.
Runtime failure preserves platform/binding success but leaves workspace readiness false.
`functional_acceptance` stays false: only a real human-reviewed question provides that
acceptance. Published preview.5 predates binding import and readiness; use a subsequent
matching image/operator release for this extension.
+20 -4
View File
@@ -223,10 +223,26 @@ secret store. It verifies the remote, branch, revision and exact contents agains
prepared plan, without silently retargeting an existing checkout. Database connectivity
is tested again by the application in the containers.
`platform_ready: true, bindings_ready: true, workspace_ready: false` confirms the platform,
authentication and database connections. Workspace preprocessing and model checks remain
necessary before a question. The three curated examples remain deferred. This extension
requires a bundle newer than preview.5; preview.5 only certifies platform startup.
Execution continues through existing Catalog Sync Runs and preprocessing, reusing
source comments, curated descriptions and Evidence without AI description generation
or Memory clearing. Evidence may be absent; an invalid configured source blocks
preparation. Completed, current work is not duplicated. SSH supports metadata
diagnostics but not sessions; select direct or REST transport for a usable workspace.
A destructive synchronization awaiting review returns exit code 3 and
`schema_review_required`, with workspace and run identifiers. Open Administration,
review the diff through its existing domain gate, then repeat `apply`. The installer
never confirms the diff or asks for configuration interactively.
Before reporting `workspace_ready: true`, it checks DWH connectivity, Evidence,
Qdrant/embedding dimensions, workflow configuration and Pi with the default model.
**The Pi check sends a short provider request and can incur usage charges**; it
contains no DWH data and creates no user session. `runtime_checks` retains each
check as `pending`, `passed` or `failed`. `platform_ready` and `bindings_ready`
remain distinct from full workspace readiness. `functional_acceptance: false`
means a real human-reviewed question still needs testing in the UI. The three
curated examples remain deferred. This extension requires a bundle newer than
preview.5; preview.5 only certifies platform startup.
An equivalent rerun does not duplicate bindings or credentials. Administrative changes
or deletion stop import with `binding_reconciliation_required`: compare the bootstrap
+22 -5
View File
@@ -231,11 +231,28 @@ secret store esistente. Verifica che remoto, branch, revisione e contenuti coinc
con i documenti del piano; non cambia implicitamente un checkout già presente.
La connessione al DWH viene riprovata dall'applicazione nei container.
Il risultato `platform_ready: true, bindings_ready: true, workspace_ready: false`
conferma piattaforma, autenticazione e collegamenti database. Preprocessing del
workspace e prova modello rimangono necessari prima di una domanda. I tre database
di esempio restano differiti. Questa estensione richiede un bundle successivo a
preview.5; preview.5 certifica soltanto l'avvio della piattaforma.
L'esecuzione prosegue con i Catalog Sync Runs esistenti e con il preprocessing:
riusa commenti, descrizioni curate ed Evidence senza generare descrizioni con AI
e senza cancellare Memory. Evidence assenti sono ammesse; una fonte configurata
ma non valida blocca la preparazione. Un run già completato e ancora valido non
viene duplicato. SSH supporta i controlli di metadati, ma non le sessioni: per un
workspace utilizzabile scegliere un trasporto diretto o REST.
Se una sincronizzazione distruttiva richiede revisione, `apply` termina con codice
3 e `schema_review_required`, riportando workspace e run. Aprire Amministrazione,
valutare il diff e decidere nel controllo di dominio esistente, poi ripetere
`apply`. L'installatore non conferma il diff e non chiede parametri interattivi.
Prima di dichiarare `workspace_ready: true`, esegue anche i controlli DWH,
Evidence, Qdrant/dimensioni embedding, configurazione del workflow e una prova Pi
sul provider/modello predefinito. **La prova invia una breve richiesta al provider
e può consumare credito**; non contiene dati DWH e non crea una sessione utente.
`runtime_checks` mostra ogni controllo come `pending`, `passed` o `failed`.
`platform_ready` e `bindings_ready` rimangono distinti dalla readiness completa.
`functional_acceptance: false` ricorda che la domanda reale con revisione umana
va ancora collaudata nell'interfaccia. I tre database di esempio restano differiti.
Questa estensione richiede un bundle successivo a preview.5; preview.5 certifica
soltanto l'avvio della piattaforma.
Un secondo avvio non duplica binding o credenziali. Se un amministratore ha modificato
o eliminato un binding, il codice `binding_reconciliation_required` ferma l'import:
@@ -0,0 +1,36 @@
# Installation workspace readiness — T07/#49
Implemented on `codex/guided-standalone-install`, following binding import T06.
`installation apply` now calls existing authenticated Catalog Sync Runs and
workspace preprocessing services. It polls existing work, skips current completed
preparation and never confirms destructive schema changes. Pending human review
returns exit 3, the workspace/run identifier and an Administration instruction.
It does not generate AI descriptions, clear Memory or overwrite curated content.
Optional Evidence remains optional; invalid configured Evidence blocks readiness.
Named, bounded one-shot containers run the existing workspace, workflow and
Pi/default-provider diagnostics. Reports preserve pending/failed runtime checks
and distinguish platform, bindings, workspace readiness and functional acceptance.
A real human-reviewed question remains manual acceptance. The Pi smoke sends a
short provider request without DWH context and can incur usage charges.
## Verification
- Focused backend tests: 55 passed, including actual Catalog APIs preserving the
same destructive review and source comments across two installation retries.
- Full backend suite on Node 24.16.0: 1,436 passed, 41 skipped, one failure in the
existing concurrent OIDC state-creation test. Its isolated 48-test group passed
on immediate rerun. Repeating the full suite with two workers passed all 1,437
tests (41 skipped, 114 files passed).
- TypeScript typecheck and full Go suite passed.
- Rebuilt native macOS arm64 bundle: public prepare/validate/plan/apply/retry test
passed with closed stdin and no language runtimes in PATH. Docker is an external
process fixture in that test, so this is not a real OS/platform acceptance.
- Strict documentation build passed; release-bundle packaging regression passed.
- Standards and Spec reviews found no actionable violations.
The current public preview.5 predates this code. These checks do not constitute a
published-image consumer proof, a real provider acceptance, or Windows/WSL2,
Omarchy or macOS manual acceptance. Integrated source mode and comprehensive
interruption recovery are subsequent T08/T09 increments.