Specify automatic PromptKit source discovery

This commit is contained in:
2026-11-09 15:49:42 +00:00
parent 866e4b9b23
commit 4920393204
4 changed files with 111 additions and 15 deletions

View File

@@ -45,8 +45,9 @@ instructing operators to change the version number.
### Discovery Locations and Import Selection — Resolved
An explicit `--config` selects exactly that file. A missing, inaccessible, or
invalid explicit file is an error; do not fall back to discovery.
For Audita's main application configuration, an explicit `--config` selects
exactly that file. A missing, inaccessible, or invalid explicit file is an error;
do not fall back to discovery.
Without an explicit file, search in this order using ConfigKit's native presets
and filename rules with application name `audita`:
@@ -66,6 +67,12 @@ higher-priority override layers. Missing optional imports may be absent;
operators use `required: true` for essential inputs. Invalid declarations,
unreadable selected files, and composition conflicts retain native errors.
The PromptKit outline owns [automatic prompt sources](promptkit.md#automatic-prompt-sources--resolved).
Those resource imports compose in the engine's operator underlay independently
of main application-file selection, using the same native import semantics.
Keep application configuration discovery and PromptKit resource acquisition
distinct while sharing their supported ConfigKit mechanisms.
### No Configuration File Found — Resolved
Use ConfigKit's optional-search behavior when automatic discovery finds no file:
@@ -116,7 +123,8 @@ file remain terminal.
remove Audita's separate backend mapping and LLM credential references from
its application schema. Native PromptKit resources own those settings and
their resolution. Coordinate the hard cutover and examples here, using the
resolved discovery and import policy above.
resolved discovery and import policy above and the
[automatic PromptKit source contract](promptkit.md#automatic-prompt-sources--resolved).
7. Account for the [root-default and stage-override model](glossary-stages.md#root-defaults-and-stage-overrides--resolved)
in version-3 schema design. Implement it during the glossary feature stage
after library adoption. Each stage resolves independently with explicit-value
@@ -170,6 +178,8 @@ integration. Verify that discovery exhaustion permits inspection and sufficientl
configured processing, while incomplete processing reports its missing inputs.
Cover absent-main provenance and filesystem context for selected overlays or
relative resources without weakening explicit-file error behavior.
Verify that application main-file selection and exhaustion preserve the separate
automatic PromptKit source context and precedence specified in its outline.
Verify acceptance of the final version-3 schema and rejection of obsolete
application versions. Check that no-main-file loading uses version-3 defaults,