Include ConfigKit secrets bootstrap in the upgrade roadmap
This commit is contained in:
@@ -9,9 +9,10 @@
|
||||
|
||||
Upgrade the three libraries and both CommandKit integrations together. Adopt
|
||||
PromptKit's application-owned configuration handoff and CommandKit's native
|
||||
invocation usage reporting. This reduces Audita's configuration assembly and
|
||||
reporting responsibilities while retaining its correction, validation, repair,
|
||||
and output contracts.
|
||||
invocation usage reporting. Include ConfigKit's configured secrets bootstrap
|
||||
to keep startup consistent with other ConfigKit consumers. This reduces
|
||||
Audita's configuration assembly and reporting responsibilities while retaining
|
||||
its correction, validation, repair, and output contracts.
|
||||
|
||||
Keeping separate loads through `NewEngine` is a viable smaller adaptation,
|
||||
provided the new input and schema APIs are handled. The shared-load approach is
|
||||
@@ -129,14 +130,50 @@ needed later; this upgrade does not need additional inspection commands.
|
||||
|
||||
### Secrets bootstrap
|
||||
|
||||
Defer enabling configured secrets-directory bootstrap in Audita. The existing
|
||||
credential environment mechanism already serves processing, and bootstrap would
|
||||
introduce process-environment mutation and partial-write behavior requiring an
|
||||
explicit startup policy. The upstream helper is a useful future option if
|
||||
container or service deployments need directory-mounted secrets: use its
|
||||
prepared source for the subsequent load and preserve its overwrite semantics.
|
||||
This recommendation does not prohibit that future capability or add credential
|
||||
restrictions.
|
||||
Adopt `LoadSecretsIntoEnvironmentFromConfig` in the common configuration
|
||||
acquisition path, before the shared `LoadLayered` call and before concurrent
|
||||
model work. This is an agreed adoption choice for consistency with other
|
||||
ConfigKit consumers. Operators opt into directory loading through the native
|
||||
main-document controls:
|
||||
|
||||
```yaml
|
||||
config:
|
||||
secrets_dir: secrets
|
||||
secrets_overwrite: false
|
||||
```
|
||||
|
||||
Pass the selected host `File` or `SearchConfig` source to the helper, then use
|
||||
its returned prepared source as the layered load's main input. Reuse that
|
||||
captured main and its filesystem context rather than rediscovering or rereading
|
||||
the file. Engine construction consumes the completed result without repeating
|
||||
bootstrap. Missing optional discovery and configurations without `secrets_dir`
|
||||
retain the native no-op behavior.
|
||||
|
||||
Use upstream path resolution, eligible-file handling, and overwrite semantics.
|
||||
The directory is relative to the selected main file within its filesystem root.
|
||||
Existing environment values, including empty ones, win by default;
|
||||
`secrets_overwrite: true` explicitly enables replacement. Keep these controls
|
||||
at the main document root, as required upstream; imports, companions, and
|
||||
overlays do not own bootstrap policy. No additional Audita bootstrap flags or
|
||||
environment precedence rules are needed. The [upstream bootstrap contract](https://forge.maximumdirect.net/base-layer/configkit/src/tag/v1.4.0/docs/config.md#explicit-secrets-directory-bootstrap)
|
||||
owns the detailed file and resource limits.
|
||||
|
||||
Retain the returned `SecretsReport` even on failure. Use native safe diagnostics
|
||||
and the report's names, paths, and statuses for startup reporting, with routine
|
||||
entry details following existing verbose/debug controls. Bootstrap failure
|
||||
stops configuration preparation before outputs or provider work. Completed
|
||||
environment writes remain if a subsequent write or configuration load fails;
|
||||
follow upstream partial-effect semantics without adding rollback machinery.
|
||||
|
||||
Apply this startup path to configuration-consuming processing and inspection
|
||||
commands; help, version, and completion retain their configuration-free behavior.
|
||||
Inspection may therefore populate the process environment, while remaining
|
||||
independent of provider calls and processing readiness. Independent comparison
|
||||
acquisitions each prepare their selected main, and share the normal process
|
||||
environment; they do not receive isolated credential environments. Document
|
||||
these startup effects and the fact that bootstrap loads all eligible entries,
|
||||
including names not referenced by Audita or PromptKit. Credential selection
|
||||
after bootstrap continues to belong to PromptKit.
|
||||
|
||||
## PromptKit: Adapt Configuration and Schema Boundaries
|
||||
|
||||
@@ -261,6 +298,8 @@ The implementation should cover the following outcomes:
|
||||
- Replace separate PromptKit source assembly with the shared typed load and
|
||||
native inputs; keep error classification, source evidence, relative resources,
|
||||
selected overlays, and output protection coherent across both consumers.
|
||||
- Bootstrap configured secrets through the upstream helper before loading,
|
||||
reuse its prepared main, and retain its safe report and native failure facts.
|
||||
- Adapt embedded-schema installation and explicit request contracts, preserving
|
||||
canonical domain schemas and existing configured budgets.
|
||||
- Adopt native usage reporting and retain useful new metadata in optional debug
|
||||
@@ -275,7 +314,9 @@ The implementation should cover the following outcomes:
|
||||
local standard texts; inspect any newly selected transitive material.
|
||||
|
||||
Use focused offline tests for the consequential integration risks: main/import/
|
||||
companion/overlay precedence and source-relative message resolution; retained
|
||||
companion/overlay precedence and source-relative message resolution; configured
|
||||
secrets bootstrap, prepared-source reuse, existing and empty environment values,
|
||||
explicit overwrite, and startup failure reporting; retained
|
||||
schema validation and explicit zero/nonzero repairs; native inspection paths
|
||||
and independent comparison acquisitions; timeout/cancellation classification;
|
||||
and token/cost reporting across proposal, validation, and repair calls. Check
|
||||
@@ -293,8 +334,8 @@ adoption; no runtime validation of the upgraded application has been claimed.
|
||||
This is a coordinated integration change, rather than a version-only update.
|
||||
It does not require a toolchain increase, a new concurrency scheduler, new
|
||||
semantic repair policy, pricing estimates, spending limits, or a redesign of
|
||||
ordinary processing reports. ConfigKit secrets bootstrap and additional custom
|
||||
inspection scopes remain optional future choices.
|
||||
ordinary processing reports. ConfigKit secrets bootstrap is included in the
|
||||
adoption; additional custom inspection scopes remain an optional future choice.
|
||||
|
||||
The recommended fragment mounting should preserve existing valid Audita inputs;
|
||||
do not presume that an upstream pre-v1 breaking release forces an Audita major
|
||||
|
||||
Reference in New Issue
Block a user