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: