Consolidate migration planning into the master roadmap
This commit is contained in:
@@ -8,13 +8,19 @@ presentation directly. Retain the application work of producing, assessing,
|
||||
publishing, and reusing typed artifacts. Historical duplication of library
|
||||
behavior is not a requirement to preserve it.
|
||||
|
||||
This roadmap incorporates the [PromptKit architecture discussion](promptkit-architecture-discussion.md)
|
||||
and all six items of the [CommandKit discussion](commandkit-migration-discussion.md),
|
||||
including the subsequent accepted-artifact cache and artifact-first output
|
||||
decisions. The notepads retain rationale and Audita evidence; this document owns
|
||||
the selected target, unresolved choices, implementation sequence, removal
|
||||
inventory, and acceptance criteria. All implementation phases are pending.
|
||||
Recording these decisions has not changed application behavior.
|
||||
This is the single migration plan for PromptKit, ConfigKit, CommandKit,
|
||||
accepted-artifact caching, and artifact-first output. It owns the selected target,
|
||||
remaining choices, implementation sequence, removal inventory, acceptance
|
||||
criteria, and supporting evidence. The earlier discussion documents are retired;
|
||||
Git history preserves the discussion. All implementation phases are pending.
|
||||
Recording these decisions has not changed application behavior. Unrelated future
|
||||
work remains in the [separate backlog](future.md).
|
||||
|
||||
Notarius predates many modern PromptKit capabilities: the library grew out of
|
||||
mechanics shared by Notarius and related applications. Historical duplication
|
||||
and slight behavioral differences do not express an intentional application
|
||||
requirement. Evaluate remaining machinery against actual domain needs, and
|
||||
consider upstream features when a reusable capability is missing.
|
||||
|
||||
Complete one coordinated cutover for configuration, PromptKit resources, and the
|
||||
CLI. Adopt native public conventions fully; preserving old CLI behavior is a
|
||||
@@ -23,6 +29,10 @@ parallel parsers, or compatibility wrappers for legacy behavior. CommandKit is
|
||||
part of the main migration, not a later follow-up. Release preparation and
|
||||
publication remain separate work.
|
||||
|
||||
Adopting the kits together lets standard inspection and execution share the same
|
||||
loaders and native facts. It avoids building temporary command and reporting
|
||||
adapters while those boundaries are already being replaced.
|
||||
|
||||
## Baseline And Dependency Target
|
||||
|
||||
At Notarius revision `12eeb6369e40746b2c18c55397a289a1e1b5908d`, the application
|
||||
@@ -38,22 +48,27 @@ The selected reviewed baseline is:
|
||||
| `go.maximumdirect.net/ckconfig` | `v0.9.0` |
|
||||
| `go.maximumdirect.net/ckprompt` | `v0.10.0` |
|
||||
| `go.maximumdirect.net/configkit` | `v1.2.1` |
|
||||
| `go.maximumdirect.net/promptkit` | `v0.23.3`, pending the message-content hash addition below |
|
||||
| `go.maximumdirect.net/promptkit` | `v0.23.3`, subject to U1's hash-capable release review |
|
||||
|
||||
Keep Go's consumer minimum at 1.27, adopt stable go-yaml v4, and resolve compatible
|
||||
validation dependencies. PromptKit v0.23.3 supersedes the initial v0.23.2 target
|
||||
for its timeout/cancellation fixes. These are selected versions, not a claim
|
||||
that they are the latest releases. The local tag review and integration guidance
|
||||
are recorded in [CommandKit item 1](commandkit-migration-discussion.md#1-adoption-scope-and-dependency-baseline).
|
||||
The tagged [release notes][release], [migration guide][migration],
|
||||
[format reference][formats], and [Go consumer guide][consumer] supply the baseline.
|
||||
validation dependencies. The selected CommandKit integration releases document
|
||||
compatibility with PromptKit v0.23.2. Select v0.23.3 explicitly for its timeout
|
||||
attribution and cancellation/error identity fixes; that patch requires no
|
||||
configuration or request API migration from v0.23.2 and retains its dependencies.
|
||||
The original review used local release tags and tagged dependency manifests;
|
||||
remote release lookup was unavailable, so these are selected versions, not a
|
||||
claim that they are the latest releases. See the
|
||||
[integration version guidance](../../../commandkit/docs/consumers/guide.md#module-selection)
|
||||
and tagged [release notes][release], [migration guide][migration],
|
||||
[format reference][formats], and [Go consumer guide][consumer].
|
||||
|
||||
The cache requires the proposed native `MessageContentHash`. The
|
||||
[upstream request](../../../promptkit/docs/roadmap/notarius-request.md) is pending;
|
||||
v0.23.3's `RenderedPromptHash` is not a substitute. Confirm the supplying API and
|
||||
tagged release, then verify the assembled dependency set. Independent composition
|
||||
and pipeline work can proceed while that addition is pending; the completed
|
||||
cache must use the upstream capability. Do not add a local hash-policy fork.
|
||||
The cache requires native `MessageContentHash`; v0.23.3's `RenderedPromptHash`
|
||||
is not a substitute. The sibling PromptKit repository has retired the original
|
||||
feature request, and its [v0.24.0 release notes](../../../promptkit/docs/releases/v0.24.0.md)
|
||||
document the addition and a ConfigKit v1.3.0 dependency. U1 remains open to review
|
||||
the supplying API/release and verify a compatible assembled dependency set before
|
||||
changing the selected baseline. Independent work can proceed; completed cache
|
||||
integration must use the upstream capability. Do not add a local hash-policy fork.
|
||||
Neither a cross-backend global limit nor a comprehensive execution fingerprint
|
||||
is required. Remove obsolete imports and catalog dependencies when unused;
|
||||
avoid permanent `replace` directives and update [attribution](../oss/attribution.md)
|
||||
@@ -480,8 +495,8 @@ Prepare initial request -> obtain MessageContentHash -> look up cache/<hash>.jso
|
||||
-> on final acceptance, store the artifact under the INITIAL hash
|
||||
```
|
||||
|
||||
Use the proposed upstream hash of ordered message roles and exact text. Include
|
||||
message boundaries and order, excluding model/settings, session/execution IDs,
|
||||
Use the upstream message-content hash of ordered message roles and exact text.
|
||||
Include message boundaries and order, excluding model/settings, session/execution IDs,
|
||||
timing, provider cache hints, and other non-content metadata. Add no stage,
|
||||
prompt-ID, library-version, whole-configuration, schema-policy, or implementation
|
||||
fingerprint. Actual input or schema text rendered into messages participates as
|
||||
@@ -499,7 +514,7 @@ prepared snapshot for execution on a miss using `PrepareExecution`/`RunPrepared`
|
||||
where supported, and discard the handle on a hit. `OnPrepared` execution hooks
|
||||
alone cannot short-circuit execution. v0.23.3's `RenderedPromptHash` includes
|
||||
session identity and cache hints; it is not the requested hash. The upstream
|
||||
request in U1 must land before completing this cache integration.
|
||||
API/release review in U1 must finish before completing this cache integration.
|
||||
|
||||
Keep the initial key throughout corrections. Cache the final Notarius artifact
|
||||
through its existing codec, not an intermediate response, `RunResult`, exchange,
|
||||
@@ -548,7 +563,9 @@ diagnostics; split preparation has a separate purpose for cache lookup. Native
|
||||
observations provide terminal facts even without a returned `RunResult`.
|
||||
`OnPrepared` is absent on preparation/admission failures and is not a completion
|
||||
record. Keep synchronous callbacks lightweight, compose capture/accounting
|
||||
observers, and synchronize shared state where operations overlap.
|
||||
observers, and synchronize shared state where operations overlap. `OnPrepared`
|
||||
runs while admission is held; persist retained evidence at normal operation
|
||||
boundaries.
|
||||
|
||||
Use native `RunID`/`ParentRunID` with application step/lane/chunk/validator scope.
|
||||
Remove `LLMExecutionSummary`, duplicate usage types, conversions, cloning,
|
||||
@@ -751,7 +768,7 @@ reopen the architecture. IDs retain continuity with the earlier roadmap.
|
||||
|
||||
| ID | Remaining choice or dependency | Resolve for |
|
||||
| --- | --- | --- |
|
||||
| U1 | Supplying PromptKit API/release for the requested message-content hash; verify the final compatible dependency set against the selected baseline. The upstream request is pending. | Track in Phase 1; required to finish cache integration in Phase 5. |
|
||||
| U1 | Review the message-content hash API/release documented upstream in v0.24.0, including its ConfigKit dependency; verify the final compatible dependency set against the selected baseline. | Track in Phase 1; required to finish cache integration in Phase 5. |
|
||||
| U4 | Role-specific initial/repair definitions, response contracts, and profile selection within complete replacement and fixed operation inputs. | Phases 3–4. |
|
||||
| U5 | Producer/validator retry-setting migration to native controls and semantic budgets: field names/defaults, non-LLM failure handling, and any justified recovery beyond native exhaustion. | Phases 3–4 and configuration migration. |
|
||||
| U6 | Detailed terminal/fallback policy, especially whether an earlier safe candidate survives a later failed turn. No implicit best-so-far acceptance. | Phases 3–4. |
|
||||
@@ -787,7 +804,7 @@ major boundary changes in successor ADRs without rewriting accepted decisions.
|
||||
|
||||
### Phase 1: Establish The Migration Baseline
|
||||
|
||||
- Record the selected dependency set and track U1 against the upstream request.
|
||||
- Record the selected dependency set and review U1 against the upstream release.
|
||||
Keep the cache dependency explicit without blocking independent work.
|
||||
- Map affected ADRs, current callers, contracts, and removal inventory. Carry
|
||||
forward Audita evidence without adopting its application wrappers.
|
||||
@@ -795,8 +812,9 @@ major boundary changes in successor ADRs without rewriting accepted decisions.
|
||||
execution, assets/schemas, CommandKit, debug, cache, or output ownership.
|
||||
|
||||
**Completion evidence:** reviewed dependency baseline, upstream dependency, scope,
|
||||
and outstanding choices are explicit. This phase does not claim that the hash
|
||||
already exists or that the migration is implemented.
|
||||
and outstanding choices are explicit. Upstream availability alone does not
|
||||
establish compatibility of the assembled Notarius dependencies or completion
|
||||
of the migration.
|
||||
|
||||
### Phase 2: Build Native Composition, Sources, And Preflight
|
||||
|
||||
@@ -869,7 +887,8 @@ including failures after publication and quiet-mode capture.
|
||||
- Complete the acceptance checks and removal inventory, including dependency
|
||||
cleanup, maintained examples, and the assembled command surface.
|
||||
- Finish release migration guidance, attribution, successor ADRs, and affected
|
||||
canonical documentation. Reconcile future-work notes and notepad status.
|
||||
canonical documentation. Update this roadmap's status and reconcile the
|
||||
separate future-work backlog.
|
||||
- Confirm no compatibility scaffold, deferred CommandKit adoption, local hash
|
||||
policy, or obsolete metadata requirement remains in the finished migration.
|
||||
|
||||
@@ -968,7 +987,52 @@ Record significant changes in successor ADRs, including
|
||||
[PromptKit configuration](../adr/0019-adopt-native-promptkit-configuration.md),
|
||||
admission, caching, and CLI/reporting ownership. Preserve accepted decision text
|
||||
and update supersession status under [documentation policy](../policy/documentation.md#architecture-decision-records).
|
||||
Notepads retain discussion history; this roadmap owns implementation status.
|
||||
This roadmap owns implementation status; Git history retains earlier discussions.
|
||||
|
||||
## Evidence And Reading
|
||||
|
||||
These sources support the selected design, not a claim of completed Notarius
|
||||
implementation. Sibling links assume the local repositories are available; the
|
||||
tagged PromptKit links below preserve the reviewed baseline.
|
||||
|
||||
### Native Library Guidance
|
||||
|
||||
- [CommandKit consumer guide](../../../commandkit/docs/consumers/guide.md) and
|
||||
[CLI conventions](../../../commandkit/docs/cli.md): module selection, native
|
||||
aliases/inputs, shared loaders, reporting modes, outcomes, and delivery failures.
|
||||
- [ckconfig](../../../commandkit/integrations/ckconfig/README.md) and
|
||||
[ckprompt](../../../commandkit/integrations/ckprompt/README.md): standard suites
|
||||
supplied with application loaders and request builders.
|
||||
- [ConfigKit](../../../ConfigKit/README.md): native loading and inspection.
|
||||
- [PromptKit consumer guide][consumer] and
|
||||
[capacity behavior](../../../promptkit/docs/internal/capacity.md): native
|
||||
preparation/execution, continuation, observations, and admission.
|
||||
|
||||
### Audita Comparison
|
||||
|
||||
The comparison was completed on 2026-11-18 against Audita revision
|
||||
`da5b8913d1206a8e8f0a784b2322760385548a60`, using PromptKit v0.23.2,
|
||||
ConfigKit v1.2.1, CommandKit v0.7.0, ckconfig v0.9.0, and ckprompt v0.10.0.
|
||||
The observations below concern that revision; linked sibling files may evolve.
|
||||
|
||||
| Evidence | Lesson carried into this roadmap |
|
||||
| --- | --- |
|
||||
| [Engine assembly](../../../audita/internal/framework/llm/runtime.go), [source tests](../../../audita/internal/framework/llm/engine_sources_test.go), and [assembly failure tests](../../../audita/internal/framework/llm/runtime_assembly_test.go) | One captured engine, native underlays and main-source-relative companions, whole-record replacement, preserved file contexts, strict peer conflicts, and no silent fallback on operator-source errors. |
|
||||
| [Adapter tests](../../../audita/internal/framework/llm/adapter_test.go) | Ordinary embedded schemas and complete per-request output contracts work with operator prompt replacement. U2 chooses prompt-declared defaults for Notarius; Audita's schema registry and per-call overrides are not requirements to copy. |
|
||||
| [Native coordination bridge](../../../audita/internal/framework/llm/coordinate.go), [repair flow](../../../audita/internal/framework/runner/repair.go), [conversation tests](../../../audita/internal/framework/llm/conversation_test.go), and [repair tests](../../../audita/internal/framework/runner/repair_test.go) | Captured exchanges, accumulated history, complete candidate revalidation, final-turn assessment, and canceled/undelivered response handling. |
|
||||
| [Prompt guidance](../../../audita/docs/internal/prompts.md) | Durable system instructions, an initial user task, and subsequent repair assignments suit native continuation. |
|
||||
| [Observations](../../../audita/internal/framework/llm/observations.go) and [CLI composition](../../../audita/internal/cli/app_wiring.go) | Native execution totals with application scope and explicit nested-validator enrollment; standard CommandKit suites using shared loaders. |
|
||||
|
||||
Audita repairs individual transcript corrections in independent branches;
|
||||
Notarius's selected unit is a whole producer operation and typed artifact.
|
||||
Audita's wrappers, response-schema registry, per-proposal policies, and absence
|
||||
of a cache do not define Notarius requirements.
|
||||
|
||||
At the reviewed revision, focused LLM, prompt/schema, runner, and proposal-generation
|
||||
tests passed, together with subprocess checks for correction conversations,
|
||||
cancellation during repair, and repair-disabled/output selections using a local
|
||||
fake provider. These historical checks do not establish live-model quality or
|
||||
completion of Notarius's migration acceptance checks.
|
||||
|
||||
[release]: https://forge.maximumdirect.net/base-layer/promptkit/src/tag/v0.23.3/docs/releases/v0.23.3.md
|
||||
[migration]: https://forge.maximumdirect.net/base-layer/promptkit/src/tag/v0.23.3/docs/consumers/configuration-migration.md
|
||||
|
||||
Reference in New Issue
Block a user