The matched integrations select these ConfigKit, PromptKit, and core versions.
Their Go minimum remains 1.27.0, matching Audita. The reviewed module manifests
require no additional upgrade to Audita's existing YAML, JSON Schema, Cobra,
pflag, or ReleaseKit selections.
The review covered intervening ConfigKit v1.3.0, PromptKit v0.23.3 and v0.24.0,
ckconfig v0.10.0, and ckprompt v0.11.0 as well as the target releases. Upstream
release notes, migration guidance, public APIs, and Audita's consumers were
compared directly.
## Current Baseline
-`internal/core/config.Load` produces an application-only ConfigKit result,
with application defaults, glossary companions, imports, overlays, recorded
resolution, and explicit CLI overrides.
-`internal/framework/llm/runtime.go` separately constructs a PromptKit engine.
It reconstructs the application's main filesystem context to discover prompt
companions, selects the bundled catalog and embedded prompts, and installs
embedded response schemas through `WithSchemaFS`.
- Prompt companions are wrapperless PromptKit fragments. Embedded definitions
contain `collections.audita`; operator fragments can contain profiles,
backends, and collections. Resource identities do not include a configuration
path prefix.
- Processing replaces each prompt's output contract with an Audita-owned schema
and explicit structural-repair budget. Semantic correction repair uses native
exchanges and `Engine.Coordinate`, separately from structural repair.
- The LLM adapter records native execution facts for operation outcomes and
optional detailed debug evidence. Its debug collector projects token fields
into Audita DTOs and uses a native execution group. There is no ordinary
invocation-wide token/cost flag.
- Command assembly already uses `ckconfig` and `ckprompt`. Source collision
checks recover message-file paths by rendering effective PromptKit YAML and
decoding a partial projection with root-relative metadata paths.
A compile-only compatibility probe used a temporary alternate module file with
all five target versions. Audita's module files were unchanged. The unchanged
application does not compile: `WithSchemaFS` is unavailable and
`RunRequest.Validation` now requires `*OutputContractInput` instead of
`*OutputContract`. Prompt registry tests also use the removed schema option.
These are confirmed initial migration points, not an exhaustive runtime check.
## ConfigKit: Share the Completed Load
ConfigKit v1.3.0 adds explicit configured secrets-directory bootstrap and
overwrite selection. v1.4.0 adds `Result.Value` and `Result.InspectSubtree`, which
let a library capture its typed settings and focused inspection from an
application-owned result. The latter is directly useful to Audita's PromptKit
adoption. See the [component handoff guide](https://forge.maximumdirect.net/base-layer/configkit/src/tag/v1.4.0/docs/consumers/README.md#component-handoff).
### Recommended end state
The application configuration includes native `promptkit.Settings` under
`yaml:"promptkit"`. Compose Audita's ConfigKit definition with
`promptkit.Configure`, preserving Audita's defaults, application version rule,
recorded domain resolution, glossary identities, and validation. Pass the whole
successful result to `promptkit.NewFromConfig` with the runtime HTTP client.
Compose the bundled OpenRouter catalog, embedded prompts, schema-root input,
glossary companions, and operator prompt companions as native inputs before the
load. Select `BundledOpenRouterUnderlay` explicitly: `NewFromConfig` does not
add the standalone constructor's default bundle. Main configuration, selected
overlay, and explicit overrides should then operate on the combined document
using ConfigKit's normal precedence.
Use `MainRelative` for companion imports instead of reconstructing host roots
and base directories in the LLM adapter. Keep optional companion discovery
anchored to the selected main source; the absence of a main source should retain
the existing embedded/default behavior. Keep source-local message resolution
and effective origins intact.
One completed result should serve a processing acquisition and its engine.
Comparison still acquires each side independently, including equal selections;
this proposal does not establish a process-global cache or a universal
one-load-per-invocation rule. Native loading and validation remain distinct from
processing readiness and provider execution.
### Inspection and source ownership
Keep the existing `app` and `promptkit` command scopes. The app scope describes
the combined application result; the PromptKit scope uses native focused
inspection at `/promptkit`. Explicit metadata queries retain application-root
paths, and focused comparisons can include ancestor changes. A focused view is
not an isolation or confidentiality boundary.
Use the captured typed settings and recorded source contexts when identifying
consumed message files. Remove the YAML encode/decode projection where the
shared result makes it unnecessary, and update metadata lookups to their native
`/promptkit/...` paths. Preserve the existing output-collision protections.
`FromConfigKitSubtree` is available if another concrete configuration scope is
needed later; this upgrade does not need additional inspection commands.
Core v0.8.0 provides invocation features for shared flags, context decoration,
and final diagnostic reports. ckconfig v0.11.0 includes native subtree support
and a help-only preflight exemption. ckprompt v0.12.0 installs `--show-tokens`
through the existing nonempty PromptKit family, including application-owned
commands. See the [consumer guide](https://forge.maximumdirect.net/base-layer/commandkit/src/tag/integrations/ckprompt/v0.12.0/docs/consumers/guide.md).
Adopt that built-in flag and presentation. Propagate `Invocation.Context` through
proposal, validator, and coordinated repair work, including derived cancellation
contexts, and continue joining owned work before returning. The integration's
contextual observer then sees executions across nested clients and engines,
including failures. Audita should retain explicit request observers for domain
operation counts and debug attribution without installing the same collector
twice or implementing another CLI total/report callback.
The native summary is opt-in, goes to diagnostics, follows deferred completion
messages, respects quiet, and precedes terminal failure explanations. It does
not require debug artifacts or ordinary reporting. Help, version, completion,
and input errors skip feature startup; bare `config explain` has the same help
exemption. Preserve the current transcript stream and completion behavior.
Adopt native inspection additions and smoke-report changes: backend provider and
| [Documentation policy](../policy/documentation.md#upstream-dependencies) | Completed: adopted upstream v1.13's dependency-documentation rule from revision `5b9088601290564647a9e20c13f95c0da9f4cb15`. Apply it to the remaining documentation work below. |
| [Configuration](../config.md) | Retain Audita's schema, source selection, companion mounts, role settings, and overrides. Link to ConfigKit for composition and secrets controls, and to PromptKit for its settings and resource formats; avoid reproducing their field/default references. |
| [CLI](../cli.md) | Identify the installed CommandKit integrations and link to the upstream command reference. Describe Audita's `process` command and application-specific stream/exit mapping locally. Introduce native usage reporting with a brief workflow example and an upstream link; leave the detailed flag, report layout, and formatting reference upstream. |
| [LLM integration](../integrations/openai-compatible-llm.md) | Reduce the document to Audita's adapter boundary, role/schema/budget choices, and mapping of model failures into processing outcomes. Link upstream for transport, provider conventions, credentials, retry/repair mechanics, admission, and token/cost semantics. |
| [Operations](../operations.md) and [subprocess integration](../integrations/subprocess.md) | Describe when Audita invokes secrets bootstrap and how startup failure affects processing/output preparation. Link to ConfigKit for bootstrap behavior and to CommandKit for native diagnostic reporting; retain Audita-owned output lifecycle and subprocess handling. |
| [LLM runtime](../internal/llm-runtime.md), [prompt registry](../internal/prompts.md), [diagnostics internals](../internal/diagnostics-reporting.md), and [CLI/configuration recipes](../internal/cli-config.md) | Retain Audita's component wiring, call sites, domain attribution, and change recipes. Replace standalone explanations of upstream loading, coordination, observation, schema resolution, and metrics with focused upstream links. |
| [Maintained examples](../../examples/README.md) and [migration guides](../migrations/) | Keep minimal runnable Audita projects, application-specific prompt inputs, and actual Audita conversion steps. Link upstream for general library tutorials and native command syntax rather than expanding local walkthroughs into library manuals. |
Use links to canonical documentation for the selected upstream releases, using
the release identities recorded above. Refresh outdated upstream references as
part of current guidance; migration guides should link to the source or target
release appropriate to the conversion they describe. Link to the owning topic
or section, rather than copying the upstream reference into another local page.
Preserve immutable release records and accepted ADR decisions; this work
concerns maintained documentation. Keep attribution notices in their existing
canonical location.
Completion requires the adopted libraries to be discoverable through brief
adoption statements and canonical upstream links. Apply that approach to the
new secrets, schema, provider, and token/cost capabilities rather than adding
local feature references. Review the affected documents for duplicated library
explanations while checking that Audita-specific choices and workflows remain
understandable. No new library reference pages or recurring documentation gates