Align adoption plans with main-relative loading releases
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# PromptKit Adoption Outline
|
||||
|
||||
**Updated:** 2026-11-09
|
||||
**Updated:** 2026-11-10
|
||||
|
||||
**Status:** Adoption direction and automatic operator-source selection resolved;
|
||||
implementation remains pending. Follow the [master roadmap](library-adoption.md)
|
||||
@@ -13,7 +13,7 @@ Audita currently uses PromptKit v0.14.0. Its
|
||||
[LLM runtime](../internal/llm-runtime.md) uses a shared engine, application-owned
|
||||
backend overrides, curated profile inspection, and prepared execution.
|
||||
|
||||
Adopt PromptKit v0.20.0 through its native configuration and execution APIs.
|
||||
Adopt PromptKit v0.21.0 through its native configuration and execution APIs.
|
||||
Retain the built-in OpenRouter backend and bundled profiles. They must be usable
|
||||
through the normal selection and credential mechanisms, not merely visible in
|
||||
an inventory while Audita rejects them for lacking a duplicate registration.
|
||||
@@ -26,9 +26,9 @@ proposal/validation role selection, transcript processing, domain decisions,
|
||||
response contracts, and truthful partial-success reporting. Remove the existing
|
||||
application-only endpoint and credential restrictions as described below.
|
||||
|
||||
Use the pinned [migration guide](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/8ff9aa3efdc9f16b9d2729e0a29ea083eb3c3eaf/docs/consumers/configuration-migration.md),
|
||||
[format reference](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/8ff9aa3efdc9f16b9d2729e0a29ea083eb3c3eaf/docs/formats.md),
|
||||
and [v0.20 release notes](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/8ff9aa3efdc9f16b9d2729e0a29ea083eb3c3eaf/docs/releases/v0.20.0.md).
|
||||
Use the pinned [migration guide](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/171fb11f4e967a1da3af57843c6467954b14ba09/docs/consumers/configuration-migration.md),
|
||||
[format reference](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/171fb11f4e967a1da3af57843c6467954b14ba09/docs/formats.md),
|
||||
and [v0.21 release notes](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/171fb11f4e967a1da3af57843c6467954b14ba09/docs/releases/v0.21.0.md).
|
||||
The bundle is default-on; older migration prose about catalog removal does not
|
||||
mean the current release has no bundled resources. It does not select an implicit
|
||||
execution profile or make provider calls during construction.
|
||||
@@ -121,9 +121,10 @@ This workflow is required PromptKit adoption scope and uses native composition.
|
||||
### Automatic Prompt Sources — Resolved
|
||||
|
||||
Automatically compose optional `./prompts.yml` and YAML files recursively under
|
||||
`./prompts/`. Both locations are relative to the invocation's working directory,
|
||||
independent of the selected Audita configuration file's location. The same
|
||||
loading applies when no main application configuration file is found.
|
||||
`./prompts/`, relative to the selected main application configuration file's
|
||||
directory. Follow the shared [resource-base and overlay rule](configkit.md#companion-resource-base-and-overlays--resolved).
|
||||
When no main context exists, skip these automatic inputs and retain the embedded
|
||||
Audita prompts and bundled catalog; do not fall back to the working directory.
|
||||
|
||||
Supply one operator-source underlay with these native ConfigKit imports:
|
||||
|
||||
@@ -138,11 +139,16 @@ config:
|
||||
pattern: ["*.yml", "*.yaml"]
|
||||
```
|
||||
|
||||
Enable imports and provide the declaration's host filesystem context through
|
||||
ConfigKit's public input APIs, rooted at the invocation's working directory.
|
||||
Keep this host context separate from the embedded prompt filesystem. ConfigKit
|
||||
owns traversal, composition, inheritance, and provenance; do not add an Audita
|
||||
directory walker, YAML parser, or replacement mechanism.
|
||||
Construct the engine after application loading. Enable imports and supply the
|
||||
operator declaration's concrete filesystem context from ConfigKit's recorded
|
||||
application main source/context evidence, preserving its resolved lookup base,
|
||||
containment root, and source accounting. `Input.MainRelative` inside PromptKit
|
||||
refers to the engine's own main input; it does not automatically refer to Audita's
|
||||
separately loaded main. Do not feed the application document into PromptKit's
|
||||
schema or rediscover/reload it to obtain a directory. When no main context exists,
|
||||
omit the automatic operator inputs. Keep embedded prompt contexts separate.
|
||||
ConfigKit owns traversal, composition, inheritance, and provenance; do not add
|
||||
an Audita directory walker, YAML parser, or replacement mechanism.
|
||||
|
||||
Compose the engine's layers from lowest to highest priority:
|
||||
|
||||
@@ -157,7 +163,7 @@ gains priority from declaration, filename, or discovery order; duplicate resourc
|
||||
identities in that tier are errors. At the boundary above embedded defaults,
|
||||
native same-ID replacement replaces the complete matching record while retaining
|
||||
unmatched defaults. Follow the upstream
|
||||
[source and profile precedence](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/8ff9aa3efdc9f16b9d2729e0a29ea083eb3c3eaf/docs/formats.md#source-and-profile-precedence).
|
||||
[source and profile precedence](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/171fb11f4e967a1da3af57843c6467954b14ba09/docs/formats.md#source-and-profile-precedence).
|
||||
|
||||
Use native PromptKit documents at the document root, with namespaces and IDs
|
||||
declared in their content. Each file may define one or several resources,
|
||||
@@ -175,8 +181,9 @@ manifest; repeated inclusion within the tier retains ConfigKit's native error.
|
||||
Use one shared engine-loading path for processing, configuration/resource
|
||||
inspection, request preview, validation, and smoke commands. All must observe
|
||||
the same layers and captured definitions for the same invocation inputs.
|
||||
`--config` continues to select Audita's application configuration; it does not
|
||||
change the working-directory base of these automatic resource imports.
|
||||
`--config` selects Audita's application configuration and therefore determines
|
||||
the companion lookup base. Selecting an application overlay does not relocate
|
||||
that base to the overlay's directory. All engine consumers share this handoff.
|
||||
|
||||
### Profile Inspection and Summary — Resolved
|
||||
|
||||
@@ -247,9 +254,12 @@ Verify the embedded `audita` prompts work without external prompt definitions.
|
||||
Cover both automatic locations absent, each present alone, and both present with
|
||||
distinct resources, including nested YAML files. Exercise missing optional
|
||||
sources, unreadable/invalid sources, and same-tier identity conflicts through
|
||||
native loading. Confirm that an explicit application config elsewhere and absent
|
||||
main-file discovery both retain the invocation working directory as the automatic
|
||||
source base. Check manifest imports of shared libraries and source-relative
|
||||
native loading. Confirm that explicit and discovered application mains elsewhere
|
||||
anchor imports beside that main, independently of the working directory. With no
|
||||
main context, confirm automatic imports are skipped while bundled and embedded
|
||||
resources remain available. Verify the recorded-context handoff to the separate
|
||||
engine, including source accounting and overlay selection without relocation.
|
||||
Check manifest imports of shared libraries and source-relative
|
||||
message files, with provenance and consumed-source collision protection intact.
|
||||
Exercise both individual-prompt and complete-set replacements using native
|
||||
collection IDs, checking that unreplaced defaults remain available. Demonstrate
|
||||
|
||||
Reference in New Issue
Block a user