Include coordinated CommandKit upgrades in the ConfigKit roadmap

This commit is contained in:
2026-11-23 01:02:15 +00:00
parent 1701f0461f
commit b1ef8e20b6

View File

@@ -3,15 +3,17 @@
## Purpose
Adopt ConfigKit v1.4.0 and use its native configured-secrets bootstrap to reduce
Narratio-owned configuration machinery. ConfigKit owns configuration resolution
through the final handoff; Narratio owns startup ordering, domain interpretation,
and execution, as defined by [ADR 0003](../adr/0003-assign-configuration-ownership.md).
Narratio-owned configuration machinery. Adopt the coordinated CommandKit v0.8.0
and `ckconfig` v0.11.0 releases in the same scope, preserving current CLI behavior.
ConfigKit owns configuration resolution through the final handoff; Narratio owns
startup ordering, domain interpretation, and execution, as defined by
[ADR 0003](../adr/0003-assign-configuration-ownership.md).
This roadmap defines the target and required changes. A subsequent implementation
plan will define staged work. Audita adoption and session layout remain in the
separate [Audita](audita.md) and [workspace](workspace.md) roadmaps.
## Reviewed Upstream Release
## Reviewed Upstream Releases
ConfigKit v1.4.0 identifies commit
`4a7ae664a6287d71cba20f59c7c5b37b6f05b0a3`. Its
@@ -23,14 +25,32 @@ describe configured bootstrap; the
[v1.4.0 notes](https://forge.maximumdirect.net/base-layer/configkit/src/tag/v1.4.0/docs/releases/v1.4.0.md)
describe typed value access and focused inspection.
The Go consumer minimum remains 1.27.0. The existing CommandKit v0.7.0 and
`ckconfig` v0.9.0 APIs remain compatible. ConfigKit's license remains
LGPL-3.0-or-later, with unchanged license texts relative to v1.2.1.
The coordinated CLI releases are:
| Module | Target | Upstream commit |
| --- | --- | --- |
| CommandKit | v0.8.0 | `0b53a63648c536afe50c46f948159116f776adae` |
| `ckconfig` | v0.11.0 | `cd5cf483a46caeff7ca0a91fb4747d57188a3888` |
The [CommandKit release notes](https://forge.maximumdirect.net/base-layer/commandkit/src/commit/0b53a63648c536afe50c46f948159116f776adae/docs/releases/v0.8.0.md)
describe invocation features and help-only preflight. The
[`ckconfig` v0.10.0 notes](https://forge.maximumdirect.net/base-layer/commandkit/src/commit/cd5cf483a46caeff7ca0a91fb4747d57188a3888/integrations/ckconfig/docs/releases/v0.10.0.md)
describe native subtree scopes, and the
[v0.11.0 notes](https://forge.maximumdirect.net/base-layer/commandkit/src/commit/cd5cf483a46caeff7ca0a91fb4747d57188a3888/integrations/ckconfig/docs/releases/v0.11.0.md)
describe help-only preflight integration. `ckconfig` v0.11.0 requires core v0.8.0
and ConfigKit v1.4.0.
All three modules retain the Go 1.27.0 consumer minimum and LGPL-3.0-or-later
licensing. Their license texts are unchanged relative to Narratio's pinned
versions. Existing command and scope assembly remains compatible.
## Current Baseline
- Narratio pins ConfigKit v1.2.1. Pipeline discovery, YAML composition, typed
credential resolution, validation, and provenance already use ConfigKit.
- CommandKit v0.7.0 owns CLI mechanics and reporting; `ckconfig` v0.9.0 exposes
native configuration operations. Narratio uses neither invocation features nor
the separate `ckprompt` integration.
- `internal/app/secrets_bootstrap.go` selects `--secrets-dir` or automatically
probes `/usr/local/etc/narratio/secrets`. It delegates file loading to
`LoadSecretsIntoEnvironment`, retains invocation-level completion, and renders
@@ -138,9 +158,21 @@ concurrent-environment protection, or custom filesystem-hardening layer.
### Other native APIs
Keep configuration inspection delegated to `ckconfig`. ConfigKit's new
`InspectSubtree` and scoped `Diff` are available for future focused inspection;
they do not replace Narratio's separately loaded configuration scopes. Additional
CLI exposure belongs in the native adapter when needed.
`InspectSubtree` and scoped `Diff` are exposed through
`ckconfig.FromConfigKitSubtree` for future focused inspection. The existing app,
campaign, session, and party scopes remain separately loaded native results.
This scope adds no new inspection scopes.
CommandKit's invocation features support application-wide flags, context
decoration, and final diagnostic reports. These capabilities are opt-in and
remain available for future demonstrated needs. Current command declarations,
configuration acquisition, and domain lifecycle remain appropriate. The upgrade
requires no new invocation feature or lifecycle wrapper. `ckconfig` handles bare
`config explain` through core's native `ErrHelpRequested` preflight signal.
The separate `ckprompt` integration's token/cost reporting observes in-process
PromptKit work. It does not automatically collect usage from Narratio's
subprocess applications and is outside this adoption scope.
`Result.Value(path)` supports root-type-independent library consumers. Existing
typed field access remains appropriate for Narratio's current consumers. This
@@ -157,9 +189,16 @@ reuse evidence.
### Dependency and startup wiring
Update `go.mod` and `go.sum` to ConfigKit v1.4.0. Keep other dependency versions
unless dependency resolution requires a related adjustment. Update ConfigKit's
attribution entry and pinned contract links to the adopted revision.
Update `go.mod` and `go.sum` together to ConfigKit v1.4.0, CommandKit v0.8.0,
and `ckconfig` v0.11.0. Keep other dependency versions unless dependency
resolution requires a related adjustment. Update all three attribution entries
and affected pinned contract links to their adopted revisions.
Retain current command declarations, flags, reporting, and configuration scope
assembly. Review affected upstream struct literals for newly added exported
fields; use keyed literals where an adjustment is needed. The CLI dependency
upgrade itself requires no operator configuration migration or upstream feature
request.
Connect native pipeline source selection, configured bootstrap, and prepared-source
loading through the application/configuration boundary. Preserve pure library
@@ -200,10 +239,12 @@ Cover useful reports and typed errors on failure, including retained partial
effects, without duplicating ConfigKit's complete file-validation test suite.
Exercise invocation reuse, lazy non-pipeline inspection, acquisition-free CLI
paths, and primary-source comparison bootstrap. Retain existing tests for native
inspection, credential forwarding/redaction, separate domain derivation, and
semantic reuse. Update tests that deliberately encode the retired directory
fallback or environment precedence that is now operator-selectable.
paths, bare `config explain` help, and primary-source comparison bootstrap.
Verify the existing command tree and native configuration operations against the
coordinated dependency versions. Retain existing tests for native inspection,
credential forwarding/redaction, separate domain derivation, and semantic reuse.
Update tests that deliberately encode the retired directory fallback or
environment precedence that is now operator-selectable.
Run the repository's normal tests, race tests, vet, build, maintained-example,
and documentation checks in proportion to the implemented change. Default tests