Add ConfigKit typed configuration loading core

This commit is contained in:
2026-09-30 02:08:20 +00:00
parent 5f7b19403f
commit 2b847ac2ae
8 changed files with 497 additions and 1 deletions

View File

@@ -10,6 +10,19 @@ and the internal engine assembles them behind the public facade's source options
The [framework format reference](../formats.md) owns the exact file fields,
validation modes, built-in catalog, and source precedence.
## Typed Configuration Loading
`internal/configuration` now contains a private ConfigKit adapter for keyed
backend, profile, and prompt mappings. It performs one layered load, records
effective field presence (including explicit null), normalizes backend and
profile fields through ConfigKit resolution, and validates final backend and
profile domain values. A lower-layer domain value replaced before the handoff
is not separately validated. Its focused tests exercise real ConfigKit loading.
This loader is not yet wired into engine assembly. The public engine continues
to use the source and repository behavior described below; prompt resource
capture and full prompt validation are subsequent implementation work.
## Prompt Definitions
`internal/promptdef` uses one source-neutral flow for prompt selection and