Simplify the planned artifact output and completion report

This commit is contained in:
2026-11-20 03:28:14 +00:00
parent 305a88e8f4
commit c03d0bb987
2 changed files with 203 additions and 134 deletions

View File

@@ -11,8 +11,11 @@ The subsequent CommandKit discussion replaces item 5's checkpoint proposal with
the accepted-artifact cache below and clarifies PromptKit's execution ownership.
Those updates have not yet been incorporated into the master roadmap. They
supersede its earlier checkpoint matching and provenance requirements. The
[CommandKit notepad](commandkit-migration-discussion.md) records the related CLI,
debug, and output/report discussion; the output/report contract is being revisited.
[CommandKit notepad](commandkit-migration-discussion.md) records the related CLI
and debug decisions. Its [item 4](commandkit-migration-discussion.md#4-reports-machine-output-and-outcomes)
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
completed Audita comparison. Item-level questions and follow-ups below record
@@ -122,10 +125,11 @@ profile-recording plumbing, and duplicate execution accounting. Do not recreate
that wrapper stack around native calls.
Attach pipeline scope through native callbacks and observers. Use native
`ExecutionGroup` totals and small application projections for manifests and
optional debug artifacts, following item 6 and the reopened output/report
discussion. Item 5 now selects a simple accepted-artifact cache, without required
durable acceptance or execution-provenance records.
`ExecutionGroup` totals for operational diagnostics and optional debug artifacts,
following item 6. The small completion report follows the
[CommandKit output contract](commandkit-migration-discussion.md#4-reports-machine-output-and-outcomes).
Item 5 now selects a simple accepted-artifact cache, without required durable
acceptance or execution-provenance records.
Audita demonstrates shared engine assembly, native continuation, and CommandKit
integration. Its `RoleClient`, structured-output interface, and opaque exchange
@@ -202,8 +206,9 @@ Deferred decisions:
- Schema assembly, root/path selection, wrapper removal, and schema metadata.
Supplying the embedded filesystem as a native schema root remains a candidate,
not a selected design.
- Schema metadata for manifests and artifact compatibility. Item 5 settles that
checkpoint matching does not require exact schema identity.
- Schema metadata for artifact compatibility and inspection. Item 5 settles that
cache matching does not require exact schema identity; the CommandKit output
decision removes mandatory manifests.
Implementation questions:
@@ -354,7 +359,8 @@ and the native continuation evidence in item 7.
- Failure handling for non-LLM operations and any justified recovery beyond
native execution budgets.
- Item 2's deferred filesystem and schema assembly choices, item 5's remaining
cache implementation details, and the reopened output/report contract.
cache implementation details, and migration to the selected CommandKit output
contract.
**Follow-up:** Resolve the remaining details above, then reconcile the adoption
roadmap. Record the changed architecture in a successor to
@@ -553,8 +559,10 @@ new semantic-validation claims. Keep output/report contract decisions separate.
**Discussion / decision:** Direction agreed: use native PromptKit inspection
and execution facts, with CommandKit owning standardized operator presentation.
Remove duplicate LLM reporting and accounting machinery. Notarius retains
application context, domain decisions, durable artifacts, and their provenance.
No application changes have been implemented.
application context, domain decisions, artifact delivery, completion-summary
content, and optional debug capture. The CommandKit output decision below removes
mandatory durable execution provenance. No application changes have been
implemented.
### Ownership
@@ -565,7 +573,7 @@ No application changes have been implemented.
| Provider attempts, transport retries, structural repairs, execution failures, and token observations | PromptKit observations and results; `ExecutionGroup` for selected execution totals. |
| Step/lane/chunk/validator attribution and pipeline progress meaning | Notarius. |
| Acceptance, rejection, fallback, accepted-artifact reuse, and pipeline outcome | Notarius. |
| Artifact storage, durable provenance, receipts, and optional debug storage/disclosure | Notarius. |
| Artifact storage, completion-summary content, and optional debug storage | Notarius. |
### Native Inspection And Operator Presentation
@@ -588,8 +596,9 @@ schema, and credential requirements.
CommandKit supplies formatting, visibility, progress presentation, and delivery
error handling. Notarius supplies report content, domain outcomes, and exit-status
mapping. Preserve deliberate machine-output contracts rather than treating every
receipt as a generic formatted report.
mapping. Follow the small structured completion report and native text template
selected in [CommandKit item 4](commandkit-migration-discussion.md#4-reports-machine-output-and-outcomes);
do not preserve the old receipt shape or independent encoders.
### Native Execution Facts
@@ -605,9 +614,9 @@ receipt as a generic formatted report.
- Remove parallel `LLMExecutionSummary`, token-usage types, enum conversions,
cloning, and independent attempt/usage accumulators. Use native types internally
and project selected fields only at an application reporting or durable boundary.
- Replace the adapter's `LLMProfileRecorder` and provider-forwarding plumbing with
the application projection needed for actual-run provenance. Do not substitute
a catalog inventory for the profiles and targets actually used.
- Remove the adapter's `LLMProfileRecorder` and provider-forwarding plumbing.
Native snapshots provide the profiles and targets actually used for optional
diagnostics; do not reconstruct a durable profile inventory.
- Use `ExecutionGroup` for totals over selected executions. Explicitly enroll the
initial run, continuation runs, and nested validator runs as applicable.
Preserve terminal-coverage and token-usage completeness; unknown usage is not
@@ -622,31 +631,31 @@ application acceptance remain separate facts.
### Application Records And Durable Boundaries
Keep the facts needed to explain a pipeline: which stage/lane/chunk produced an
artifact, which validators assessed it, whether continuation or a safe fallback
was used, and whether the artifact was generated now or reused. PromptKit cannot
infer that meaning from provider execution alone.
Attach the application context needed to explain a pipeline in optional debug
capture: which stage/lane/chunk produced an artifact, which validators assessed
it, whether continuation or a safe fallback was used, and whether the artifact
was generated now or reused. PromptKit cannot infer that meaning from provider
execution alone. These diagnostic facts do not require consumer-facing histories.
Under the revised item 5, cache files contain accepted artifacts without required
historical execution or acceptance records. A current debug record can identify
reuse and show the loaded artifact without counting earlier token usage as
current work or claiming new validation.
The output/report contract is reopened in the CommandKit discussion; the earlier
manifest and receipt proposals below are not requirements to retain metadata
without a consumer need. They do not impose any additional cache records.
The selected CommandKit output contract delivers artifacts as files and a small
completion report through native rendering. It does not require a run manifest,
metadata bundle, separately persisted receipt, or durable execution ledger.
Existing [manifest](../integrations/json-output.md) and
[receipt](../integrations/run-result.md) contracts document migration impact;
their field inventories are not requirements to recreate. Preserve intrinsic
domain artifact content and reuse existing outcome facts for the completion
summary and debug overview.
Previously proposed small application projections for the
[published manifest](../integrations/json-output.md) and
[run-result receipt](../integrations/run-result.md), with explicit compatibility
decisions for changed fields, remain subject to that review. Durable contracts
should not become raw upstream type dumps or require parallel runtime
representations of every native result.
Keep application debug artifact placement, opt-in capture, retention, and
disclosure handling. Native callbacks supply execution data; they do not own
Notarius's storage policy. Detailed prepared messages belong in the selected
debug capture path, while ordinary provenance can retain only the needed fields.
Keep application debug artifact placement, opt-in capture, and lifecycle under
[CommandKit item 5](commandkit-migration-discussion.md#5-debug-capture-and-optional-diagnostics).
Native callbacks supply execution data; they do not own Notarius's storage policy.
Detailed prepared messages and execution history belong in that optional capture,
not a mandatory consumer metadata bundle.
Evidence: [current inspection wrapper](../../internal/framework/llm/promptkit_inspection.go),
[adapter bookkeeping](../../internal/framework/llm/promptkit_client.go),
@@ -658,11 +667,12 @@ Evidence: [current inspection wrapper](../../internal/framework/llm/promptkit_in
### Remaining Implementation Work
Select the minimal application scope and durable fields, observer/group
enrollment, and compatibility treatment for existing manifests, receipts, and
debug artifacts. Coordinate command migration with the roadmap's CommandKit
follow-up. The core ownership change needs no new PromptKit capability; any
remaining upstream request should identify a concrete unmet requirement.
Select application scope and observer/group enrollment for the agreed diagnostics.
Implement the selected completion report and retire superseded manifest, receipt,
and execution-ledger machinery. Coordinate command migration and debug capture
with the CommandKit notepad and master roadmap reconciliation. The core
bookkeeping ownership change needs no new PromptKit capability; any remaining
upstream request should identify a concrete unmet requirement.
**Follow-up:** Reconcile the adoption roadmap with items 1–6 and record the
significant boundary changes in successor ADRs. Update current-behavior
@@ -830,7 +840,8 @@ Item 4 now records agreement to use native admission with bounded application
workers. The revised item 5 selects an accepted-artifact cache and a focused
upstream message-content hash instead of comprehensive execution fingerprints.
Item 6 adopts native execution observations and CommandKit presentation;
consumer output/report requirements are being revisited separately.
the [CommandKit output decision](commandkit-migration-discussion.md#4-reports-machine-output-and-outcomes)
selects artifact files and a small native completion report.
The two requested capabilities already work with v0.23.2; no new PromptKit
feature is needed merely to provide replaceable defaults or domain-directed
continuation. Any remaining upstream request should identify the specific unmet