Consolidate the native migration roadmap and simplified cache design
This commit is contained in:
@@ -2,49 +2,29 @@
|
|||||||
|
|
||||||
## Purpose And Status
|
## Purpose And Status
|
||||||
|
|
||||||
Working notepad for the CommandKit decisions that will be incorporated into the
|
Discussion record for the decisions incorporated into the
|
||||||
[master PromptKit-native migration roadmap](promptkit.md). Record the proposal,
|
[master native migration roadmap](promptkit.md). That roadmap now owns the
|
||||||
open questions, evidence, and decisions here as we discuss them.
|
selected design, remaining choices, implementation phases, removal inventory,
|
||||||
|
and acceptance criteria. This notepad retains discussion detail and evidence;
|
||||||
|
it is not a second implementation checklist.
|
||||||
|
|
||||||
**Direction agreed:** Make a full cutover to a CommandKit-native application as
|
**Direction agreed and incorporated:** Make a full cutover to native CommandKit,
|
||||||
part of the same migration as modern PromptKit, in separate, reviewable
|
ConfigKit, and PromptKit workflows in one coordinated migration. Adopt upstream
|
||||||
implementation steps. Adopt CommandKit's public-facing conventions and
|
public conventions fully. CLI backward compatibility is a non-goal; provide
|
||||||
recommendations to the fullest extent. Bring its design decisions forward and
|
release migration guidance instead.
|
||||||
complete adoption before the overall cutover.
|
|
||||||
|
|
||||||
The master roadmap currently places CommandKit in a subsequent Phase 7 and leaves
|
All six items below are incorporated, including the accepted-artifact cache,
|
||||||
its details in U10. That sequencing has not yet been revised. Item 6 selects how
|
small completion report and native text template, debug inventory/depth,
|
||||||
to incorporate the agreed decisions into its dependency baseline, implementation
|
`/tmp/notarius-debug` default, `latest`, and explicit-empty directory behavior.
|
||||||
phases, removal inventory, and acceptance criteria while preserving remaining
|
No application or dependency changes have been implemented through this
|
||||||
choices explicitly. No application or dependency changes have been implemented
|
planning work. Implementation remains pending.
|
||||||
through this discussion.
|
|
||||||
|
|
||||||
Item 1 selects the dependency versions and standard capabilities, including
|
The roadmap resolves U10's CommandKit scope, tracks the pending upstream
|
||||||
PromptKit v0.23.3 in place of the master roadmap's initial v0.23.2 target.
|
message-content hash in U1, replaces U8's checkpoint design, and narrows U9 to
|
||||||
Item 2 selects the application command structure and input conventions. Item 3
|
implementation details within the agreed output/debug contracts. Schema handling,
|
||||||
selects native composition, shared loaders, and application preflight. Item 4
|
role-specific correction/fallback policy, worker defaults, and concrete cache
|
||||||
selects artifact-first output, a small native completion report, and outcomes.
|
controls/transition remain visible there. Item-level directions below record the
|
||||||
Item 5 selects conditional debug capture through the shared `--debug` flag,
|
accepted design; the roadmap is the authority for sequencing and current status.
|
||||||
native diagnostics, and a run/operation bundle with a `latest` symlink. Its
|
|
||||||
capture inventory, depth, and
|
|
||||||
explicit-empty directory behavior are resolved below. Item 6 selects verification,
|
|
||||||
migration guidance, and incorporation into the master roadmap; that incorporation
|
|
||||||
is still pending.
|
|
||||||
|
|
||||||
The cache follow-up in item 4 replaces the earlier checkpoint design with an
|
|
||||||
accepted-artifact cache keyed by initial message content. The output/report
|
|
||||||
direction is settled: deliver artifacts as files and render a small structured
|
|
||||||
completion value through CommandKit, with a native text template for ordinary
|
|
||||||
human output. Detailed diagnostics belong in optional debug capture. Function
|
|
||||||
signatures, debug filenames other than `latest`, and similar implementation
|
|
||||||
details do not reopen the selected architecture. Broader PromptKit choices
|
|
||||||
remain with the master roadmap.
|
|
||||||
|
|
||||||
The PromptKit ownership direction remains in force. The revised
|
|
||||||
[cache decision](promptkit-architecture-discussion.md#5-accepted-artifact-cache)
|
|
||||||
supersedes earlier checkpoint matching and provenance requirements. Master-roadmap
|
|
||||||
incorporation is pending, including U1 (the upstream content-hash capability),
|
|
||||||
U8 (cache migration), U9 (records/reporting), and U10 (CommandKit adoption).
|
|
||||||
|
|
||||||
## Agreed Proposal
|
## Agreed Proposal
|
||||||
|
|
||||||
@@ -129,8 +109,8 @@ Two application needs already identified for deliberate treatment are:
|
|||||||
4. Complete command and reporting migration before final end-to-end verification
|
4. Complete command and reporting migration before final end-to-end verification
|
||||||
and migration documentation.
|
and migration documentation.
|
||||||
|
|
||||||
Item 6 selects the replacement phase sequence for incorporation into the master
|
Item 6 records the incorporation decision. The master roadmap now owns the
|
||||||
roadmap. The master roadmap has not yet been updated.
|
resulting six-phase sequence; implementation is pending.
|
||||||
|
|
||||||
## 1. Adoption Scope And Dependency Baseline
|
## 1. Adoption Scope And Dependency Baseline
|
||||||
|
|
||||||
@@ -201,11 +181,10 @@ The standard capability suite needs no identified upstream addition. The later
|
|||||||
cache decision does require a native message-content hash, which is not the
|
cache decision does require a native message-content hash, which is not the
|
||||||
existing v0.23.3 rendered-prompt hash. Confirm the supplying API/release before
|
existing v0.23.3 rendered-prompt hash. Confirm the supplying API/release before
|
||||||
implementing cache lookup; the version table remains the reviewed baseline, not
|
implementing cache lookup; the version table remains the reviewed baseline, not
|
||||||
a claim that the new hash is already available. On roadmap
|
a claim that the new hash is already available. The master roadmap now records
|
||||||
reconciliation, incorporate these versions into U1, replace U10's open standard
|
this baseline, the pending upstream requirement, the resolved CommandKit scope,
|
||||||
capability selection with this decision, and incorporate the application wiring
|
and the application wiring/presentation decisions. Superseded durable-record
|
||||||
and presentation decisions from items 2–5. Retire superseded durable-record
|
requirements have been removed from that plan.
|
||||||
requirements as directed by item 6.
|
|
||||||
|
|
||||||
## 2. Native Command Surface And Inputs
|
## 2. Native Command Surface And Inputs
|
||||||
|
|
||||||
@@ -352,8 +331,8 @@ Application handlers still validate meaningful input combinations and translate
|
|||||||
typed inputs into pipeline selections. Native `--debug` supplies reporting
|
typed inputs into pipeline selections. Native `--debug` supplies reporting
|
||||||
behavior and conditional artifact capture as selected in item 5.
|
behavior and conditional artifact capture as selected in item 5.
|
||||||
Items 3–4 select loader behavior, the small completion report, and native outcome
|
Items 3–4 select loader behavior, the small completion report, and native outcome
|
||||||
presentation. Reconcile U9 with these decisions rather than expanding durable
|
presentation. The master roadmap limits U9 to implementation details within
|
||||||
metadata.
|
these decisions.
|
||||||
|
|
||||||
Evidence: [CommandKit command/input conventions](../../../commandkit/docs/cli.md#registered-command-syntax),
|
Evidence: [CommandKit command/input conventions](../../../commandkit/docs/cli.md#registered-command-syntax),
|
||||||
[reusable PromptKit flags](../../../commandkit/docs/consumers/guide.md#request-builders-and-loading),
|
[reusable PromptKit flags](../../../commandkit/docs/consumers/guide.md#request-builders-and-loading),
|
||||||
@@ -570,7 +549,7 @@ model execution or a claim of validation under a changed policy.
|
|||||||
|
|
||||||
Concrete cache flags and legacy-checkpoint handling remain implementation-planning
|
Concrete cache flags and legacy-checkpoint handling remain implementation-planning
|
||||||
choices. The output/report discussion must not reintroduce cache metadata solely
|
choices. The output/report discussion must not reintroduce cache metadata solely
|
||||||
to populate a report. The master roadmap still needs this replacement policy.
|
to populate a report. The master roadmap now incorporates this replacement policy.
|
||||||
|
|
||||||
### Artifacts Are The Deliverable
|
### Artifacts Are The Deliverable
|
||||||
|
|
||||||
@@ -760,8 +739,8 @@ The current [run-result contract](../integrations/run-result.md) and
|
|||||||
[CLI failure mapping](../internal/cli.md#failure-mapping-and-terminal-reporting)
|
[CLI failure mapping](../internal/cli.md#failure-mapping-and-terminal-reporting)
|
||||||
document migration impact. Item 6 of the
|
document migration impact. Item 6 of the
|
||||||
[PromptKit discussion record](promptkit-architecture-discussion.md#6-inspection-and-execution-bookkeeping)
|
[PromptKit discussion record](promptkit-architecture-discussion.md#6-inspection-and-execution-bookkeeping)
|
||||||
retains the native bookkeeping boundary. Reconcile U9 with this simpler contract,
|
retains the native bookkeeping boundary. The master roadmap now incorporates
|
||||||
including retirement of superseded durable-record requirements.
|
this contract and retires superseded durable-record requirements.
|
||||||
|
|
||||||
## 5. Debug Capture And Optional Diagnostics
|
## 5. Debug Capture And Optional Diagnostics
|
||||||
|
|
||||||
@@ -1137,8 +1116,8 @@ The current [debug lifecycle](../internal/state.md#debug-bundles) and
|
|||||||
**Discussion / decision:** Agreed. Complete one coordinated native cutover, with
|
**Discussion / decision:** Agreed. Complete one coordinated native cutover, with
|
||||||
CommandKit composition introduced early, verification focused on Notarius's
|
CommandKit composition introduced early, verification focused on Notarius's
|
||||||
integration and domain responsibilities, and practical release migration guidance.
|
integration and domain responsibilities, and practical release migration guidance.
|
||||||
Incorporate these decisions into the existing master roadmap; another replacement
|
These decisions are incorporated into the existing master roadmap; no replacement
|
||||||
document is unnecessary. Implementation and master-roadmap incorporation are pending.
|
document was needed. Implementation is pending.
|
||||||
|
|
||||||
### Focused Verification Of Application Behavior
|
### Focused Verification Of Application Behavior
|
||||||
|
|
||||||
@@ -1225,39 +1204,22 @@ Keep future behavior in roadmap documents until implemented.
|
|||||||
|
|
||||||
### Incorporation Into The Master Roadmap
|
### Incorporation Into The Master Roadmap
|
||||||
|
|
||||||
Replace the deferred CommandKit Phase 7 with adoption throughout the existing
|
**Completed:** The [master roadmap](promptkit.md#implementation-sequence) now
|
||||||
master roadmap. Use this phase sequence:
|
integrates CommandKit throughout six phases, beginning with native composition
|
||||||
|
and shared loaders, proving a representative pipeline through the new CLI, and
|
||||||
|
finishing cache/output/capture integration before final verification. The old
|
||||||
|
separate Phase 7 is retired.
|
||||||
|
|
||||||
1. Establish the agreed dependency baseline and remaining contract decisions.
|
Its dependency baseline includes the selected versions and pending upstream hash
|
||||||
2. Build native application composition, shared loaders, standard commands, and
|
request. U10 is resolved; U8 now concerns cache operation/transition, and U9
|
||||||
the dedicated preflight package alongside native source assembly.
|
concerns implementation details within the selected output/debug contracts.
|
||||||
3. Prove a representative native pipeline through the actual command surface,
|
Earlier receipt/manifest inventories are retired. Remaining schema, correction,
|
||||||
including reporting and useful debug capture.
|
fallback, worker, and cache-transition choices are explicit in its
|
||||||
4. Migrate remaining roles and remove the adapter, scheduler, retry machinery,
|
[unresolved-choice table](promptkit.md#unresolved-choices).
|
||||||
and custom CLI infrastructure.
|
|
||||||
5. Complete cache migration, the selected output/report contract, and capture behavior.
|
|
||||||
6. Verify the assembled application and finish migration documentation.
|
|
||||||
|
|
||||||
Each phase delivers a reviewable result with appropriate verification. Tests and
|
The master roadmap owns sequencing and implementation status. This notepad and
|
||||||
documentation proceed throughout; the final phase checks integration and
|
the PromptKit discussion remain discussion records, not competing implementation
|
||||||
completeness. The phases do not require separate releases or an intermediate
|
checklists.
|
||||||
compatibility framework.
|
|
||||||
|
|
||||||
Resolve U1's dependency baseline and U10's CommandKit scope from items 1–4. Narrow
|
|
||||||
U9 to item 4's selected artifact-first output/completion contract and item 5's
|
|
||||||
debug implementation details within the resolved inventory, depth, and controls.
|
|
||||||
Retire earlier receipt/manifest field inventories rather than treating them as
|
|
||||||
unresolved requirements to recreate.
|
|
||||||
Update U1 for the upstream message-content hash and replace U8's checkpoint
|
|
||||||
identity/provenance plan with the accepted-artifact cache decision.
|
|
||||||
Reconcile removal inventory and acceptance criteria, including old
|
|
||||||
inspection-command and machine-output compatibility assumptions. Preserve
|
|
||||||
unresolved schema handling, role-specific retry/fallback policy, worker defaults,
|
|
||||||
checkpoint transition choices, and other concrete choices until actually settled.
|
|
||||||
|
|
||||||
Once incorporated, the master roadmap owns implementation sequencing and status;
|
|
||||||
both migration notepads remain discussion records. Do not maintain competing
|
|
||||||
implementation checklists in the notepads.
|
|
||||||
|
|
||||||
### Completion Checks
|
### Completion Checks
|
||||||
|
|
||||||
|
|||||||
@@ -2,20 +2,17 @@
|
|||||||
|
|
||||||
## Purpose And Status
|
## Purpose And Status
|
||||||
|
|
||||||
The original decisions in items 1–6 were incorporated into the
|
The decisions in items 1–6, the subsequent CommandKit discussion, and the
|
||||||
[PromptKit-native architecture migration roadmap](promptkit.md). That roadmap
|
simplified cache/output designs are incorporated into the
|
||||||
is the implementation plan and owns current unresolved choices, sequencing,
|
[master native migration roadmap](promptkit.md). It owns the selected target,
|
||||||
acceptance criteria, and implementation status.
|
unresolved choices, sequencing, acceptance criteria, and implementation status.
|
||||||
|
|
||||||
The subsequent CommandKit discussion replaces item 5's checkpoint proposal with
|
The [CommandKit discussion record](commandkit-migration-discussion.md) retains
|
||||||
the accepted-artifact cache below and clarifies PromptKit's execution ownership.
|
the related CLI, preflight, output, debug, and migration rationale. The master
|
||||||
Those updates have not yet been incorporated into the master roadmap. They
|
roadmap replaces earlier checkpoint matching/provenance proposals with the
|
||||||
supersede its earlier checkpoint matching and provenance requirements. The
|
accepted-artifact cache and retires mandatory manifests, extensive receipts,
|
||||||
[CommandKit notepad](commandkit-migration-discussion.md) records the related CLI
|
and durable execution ledgers. The upstream message-content hash remains pending;
|
||||||
and debug decisions. Its [item 4](commandkit-migration-discussion.md#4-reports-machine-output-and-outcomes)
|
incorporation does not claim it is already available or implemented.
|
||||||
selects artifact files and a small native completion report, superseding earlier
|
|
||||||
mandatory manifest, receipt, and durable-execution-record proposals here and in
|
|
||||||
the master roadmap.
|
|
||||||
|
|
||||||
This document retains the discussion, rationale, and evidence, including item 7's
|
This document retains the discussion, rationale, and evidence, including item 7's
|
||||||
completed Audita comparison. Item-level questions and follow-ups below record
|
completed Audita comparison. Item-level questions and follow-ups below record
|
||||||
@@ -475,7 +472,7 @@ This is a concrete upstream hash requirement. The reviewed PromptKit v0.23.3
|
|||||||
hashing the entire `PreparedRun` would include volatile execution metadata.
|
hashing the entire `PreparedRun` would include volatile execution metadata.
|
||||||
Neither is the selected key. Expose the content hash through native preparation
|
Neither is the selected key. Expose the content hash through native preparation
|
||||||
rather than implementing another message-hashing policy in Notarius. Confirm
|
rather than implementing another message-hashing policy in Notarius. Confirm
|
||||||
the supplying upstream API/release during roadmap incorporation; do not claim
|
the supplying upstream API/release before cache implementation; do not claim
|
||||||
the proposed field already exists or silently substitute a broader fingerprint.
|
the proposed field already exists or silently substitute a broader fingerprint.
|
||||||
|
|
||||||
### Compute Early, Store After Acceptance
|
### Compute Early, Store After Acceptance
|
||||||
@@ -548,10 +545,10 @@ compatibility requirement. Select straightforward cache reuse/bypass/refresh
|
|||||||
controls and legacy-file handling during implementation planning; do not infer
|
controls and legacy-file handling during implementation planning; do not infer
|
||||||
new flag spellings or a migration framework from this decision.
|
new flag spellings or a migration framework from this decision.
|
||||||
|
|
||||||
**Follow-up:** Incorporate this design and the upstream hash requirement into the
|
**Follow-up:** The master roadmap now includes this design and the upstream hash
|
||||||
master roadmap. Verify that a downstream failure leaves earlier accepted
|
requirement. During implementation, verify that a downstream failure leaves
|
||||||
artifacts reusable, corrected answers are stored under the initial hash, changed
|
earlier accepted artifacts reusable, corrected answers are stored under the
|
||||||
messages miss, settings-only changes can hit, and a hit makes no model calls or
|
initial hash, changed messages miss, settings-only changes can hit, and a hit makes no model calls or
|
||||||
new semantic-validation claims. Keep output/report contract decisions separate.
|
new semantic-validation claims. Keep output/report contract decisions separate.
|
||||||
|
|
||||||
## 6. Inspection And Execution Bookkeeping
|
## 6. Inspection And Execution Bookkeeping
|
||||||
@@ -670,7 +667,7 @@ Evidence: [current inspection wrapper](../../internal/framework/llm/promptkit_in
|
|||||||
Select application scope and observer/group enrollment for the agreed diagnostics.
|
Select application scope and observer/group enrollment for the agreed diagnostics.
|
||||||
Implement the selected completion report and retire superseded manifest, receipt,
|
Implement the selected completion report and retire superseded manifest, receipt,
|
||||||
and execution-ledger machinery. Coordinate command migration and debug capture
|
and execution-ledger machinery. Coordinate command migration and debug capture
|
||||||
with the CommandKit notepad and master roadmap reconciliation. The core
|
with the incorporated design in the master roadmap. The core
|
||||||
bookkeeping ownership change needs no new PromptKit capability; any remaining
|
bookkeeping ownership change needs no new PromptKit capability; any remaining
|
||||||
upstream request should identify a concrete unmet requirement.
|
upstream request should identify a concrete unmet requirement.
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user