Plan the coordinated library adoption sprint

This commit is contained in:
2026-11-23 03:07:00 +00:00
parent 12fd2fba6b
commit 82c52c8e7f
2 changed files with 529 additions and 60 deletions

View File

@@ -1,6 +1,6 @@
# ConfigKit, PromptKit, and CommandKit Upgrade
**Status:** Adoption decisions agreed; ready for implementation planning.
**Status:** Adoption decisions agreed; [implementation plan](implementation.md) prepared.
Implementation has not begun.
**Reviewed:** 2026-11-23, against Audita commit
@@ -24,7 +24,7 @@ one provenance model.
The tradeoff is broader configuration validation and inspection, described below.
This document records agreed adoption choices and the desired outcome.
A subsequent implementation plan can divide the work into bounded units.
The [implementation plan](implementation.md) owns the ordered work and validation.
## Reviewed Releases
@@ -416,66 +416,34 @@ explanations while checking that Audita-specific choices and workflows remain
understandable. No new library reference pages or recurring documentation gates
are needed.
## Work and Validation
## Acceptance Criteria
The implementation should cover the following outcomes:
- The selected dependency versions match the reviewed releases, with consistent
module metadata and commit-pinned attribution. The reviewed target
`COPYRIGHT` and `LICENSE` files are unchanged from the currently selected
releases; all five remain `LGPL-3.0-or-later`.
- One combined native result serves application settings and engine capture,
preceded by configured secrets bootstrap with prepared-source reuse and safe
startup evidence. Native inspection and processing use the same assembly.
- Prompt definitions own actual output contracts and structural budgets.
Audita's retired setting, per-call overrides, and redundant registry are gone.
Domain checks and recoverable JSON decoding retain the selected behavior.
- Native execution facts and aggregation supply CLI usage reporting and the
new diagnostic envelope. Domain attribution, cancellation/joining, ordinary
reports, partial success, and output publication retain their contracts.
- Superseded source assembly, filesystem reconstruction, YAML round trips,
diagnostic engine reconstruction, metric projections, and tests dedicated to
those retired mechanisms are removed. No temporary compatibility path remains.
- Current documentation and maintained examples follow the upstream ownership
rule. Migration guidance and v4.1.0 release documentation explain actual
configuration, inspection, debug, and failure-classification changes.
- Representative offline integration coverage protects Audita's wiring and
selected behavior without repeating upstream test inventories. The complete
offline suite and required Linux builds pass for the completed source.
- Select all five target versions in `go.mod` and tidy module metadata. Adapt
changed public types, including affected tests and any positional literals.
- Replace separate PromptKit source assembly with the shared typed load and
native inputs; keep source evidence, relative resources, selected overlays,
and output protection coherent across both consumers. Apply the error
handling selected in [runtime failure classification](#runtime-failure-classification).
- 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 use prompt-defined output contracts
for ordinary and coordinated requests. Remove per-call schema and structural
budget overrides, redundant registry machinery, and the root/stage
`llm.repair_attempts` setting and any CLI bindings. Migrate explicit structural
budgets to native prompt definitions; retain domain decoding and checks.
- Adopt native usage reporting and retain useful new metadata in optional debug
evidence. Preserve cancellation causes, recoverable timeouts, and joined work.
- Remove superseded source assembly, filesystem-context reconstruction, YAML
encode/decode round trips, the embedded-only diagnostic engine construction,
and redundant accounting projections as their replacements land. Adopt the
agreed diagnostic envelope and native evidence representation. Remove or
consolidate tests that only protect those retired mechanisms; retain
behavioral coverage for the application contracts they served. Cleanup is a
completion outcome of this upgrade.
- Update canonical configuration, CLI, operations, LLM integration, and internal
documentation plus maintained examples under the ownership and consolidation
direction above. Replace duplicated library guidance with canonical upstream
links. Review old source paths and scripts consuming native reports, and add
migration guidance for actual Audita input or inspection changes.
- Prepare release notes for v4.1.0 describing the delivered features, breaking
changes, and required migration steps. The maintainer's versioning override
is recorded only in this roadmap and must not appear in the release notes.
- Update the five attribution entries and commit-pinned notice/source links.
The reviewed target `COPYRIGHT` and `LICENSE` files are unchanged from the
selected releases, and all five remain `LGPL-3.0-or-later`. Reuse applicable
local standard texts; inspect any newly selected transitive material.
Use focused offline tests at Audita's integration boundaries: representative
source selection and mounting with relative resources; shared configuration
handoff; secrets bootstrap with prepared-source reuse and startup failure
reporting; prompt-defined contracts for proposal, validation, and repair,
including operator replacements, shared schemas, and native default/explicit
zero/nonzero structural budgets; recoverable response JSON syntax/type errors
and fatal invalid decode targets; retained domain checks; inspection
scopes and comparison acquisitions; context propagation and failure
classification; and domain attribution across proposal, validation, and repair.
Check transcript/diagnostic stream separation, quiet/help behavior, and
coexistence with debug capture using controlled clients or HTTP responses.
Where Audita transforms usage or cost evidence, verify that it preserves native
availability and completeness. Keep the existing partial-success and
output-lifecycle coverage. Select representative cases that detect Audita wiring
errors without rebuilding ConfigKit's environment/overwrite matrix or
PromptKit's accounting and provider-decoding suites.
Run the complete offline suite and required Linux builds after implementation.
Do not duplicate upstream's provider-decoding or lifecycle test inventories.
The compile probe in this review establishes incompatibility, not successful
adoption; no runtime validation of the upgraded application has been claimed.
The [implementation plan](implementation.md) identifies the owning components,
ordered changes, and focused checks. The earlier compile probe establishes
incompatibility, not successful adoption; implementation has not been validated.
## Scope and Release Impact