Load shared PromptKit settings with native secrets bootstrap

This commit is contained in:
2026-11-23 03:25:05 +00:00
parent 90a3790f44
commit 69ef533d7e
5 changed files with 170 additions and 73 deletions

View File

@@ -89,6 +89,19 @@ Build failures from removed schema APIs or old fixtures are expected at this poi
## Stage 2 — Replace The Configuration Schema And Loader
**Status: Complete.** Embedded native PromptKit settings and composed its
definition with application validation and normalization. Configuration loading
now bootstraps the selected source once, retains its native report and typed
errors, and performs one layered load with the bundled underlay. Retired fields
and raw backend/profile keys are rejected at their effective paths; native
sensitivity is composed with the application raw-key boundary.
The offline configuration package tests pass on Go 1.27.4, covering native
extensions, diagnostics, discovery, overrides, server normalization, and
configured bootstrap preservation, overwrite, exhaustion, and failure effects.
The old conversion and callers remain temporarily for the next stage, so the
assembled application is not yet expected to compile or pass its full suite.
**Files:** `internal/config/document.go`, `load.go`, their tests,
`internal/defaults/defaults.go`; remove obsolete settings definitions when callers
are migrated in Stage 3.