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

@@ -23,20 +23,22 @@ Item 1 selects the dependency versions and standard capabilities, including
PromptKit v0.23.3 in place of the master roadmap's initial v0.23.2 target. PromptKit v0.23.3 in place of the master roadmap's initial v0.23.2 target.
Item 2 selects the application command structure and input conventions. Item 3 Item 2 selects the application command structure and input conventions. Item 3
selects native composition, shared loaders, and application preflight. Item 4 selects native composition, shared loaders, and application preflight. Item 4
selects native reporting, machine output, and outcomes. Item 5 selects conditional selects artifact-first output, a small native completion report, and outcomes.
debug capture through the shared `--debug` flag, native diagnostics, and a run/ Item 5 selects conditional debug capture through the shared `--debug` flag,
operation bundle with a `latest` symlink. Its capture inventory, depth, and 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, explicit-empty directory behavior are resolved below. Item 6 selects verification,
migration guidance, and incorporation into the master roadmap; that incorporation migration guidance, and incorporation into the master roadmap; that incorporation
is still pending. is still pending.
The cache follow-up in item 4 replaces the earlier checkpoint design with an 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 accepted-artifact cache keyed by initial message content. The output/report
contract has been reopened around consumer needs; it is not merely waiting for direction is settled: deliver artifacts as files and render a small structured
field names and versions. Function signatures, bundle filenames other than completion value through CommandKit, with a native text template for ordinary
`latest`, and similar implementation details do not human output. Detailed diagnostics belong in optional debug capture. Function
reopen the selected architecture. Broader PromptKit choices remain with the signatures, debug filenames other than `latest`, and similar implementation
master roadmap. details do not reopen the selected architecture. Broader PromptKit choices
remain with the master roadmap.
The PromptKit ownership direction remains in force. The revised The PromptKit ownership direction remains in force. The revised
[cache decision](promptkit-architecture-discussion.md#5-accepted-artifact-cache) [cache decision](promptkit-architecture-discussion.md#5-accepted-artifact-cache)
@@ -93,13 +95,13 @@ spending migration effort recreating existing CLI conventions.
| Standard configuration and PromptKit inspection commands | ckconfig and ckprompt, supplied with application loaders and request builders. | | Standard configuration and PromptKit inspection commands | ckconfig and ckprompt, supplied with application loaders and request builders. |
| Configuration composition and model execution | ConfigKit and PromptKit, using the native boundaries already selected. | | Configuration composition and model execution | ConfigKit and PromptKit, using the native boundaries already selected. |
| Pipeline execution and listing, pipeline-specific preflight, artifact publication, accepted-artifact caching, and domain outcomes | Notarius application handlers and framework. | | Pipeline execution and listing, pipeline-specific preflight, artifact publication, accepted-artifact caching, and domain outcomes | Notarius application handlers and framework. |
| Receipt content, debug artifact lifecycle, and application outcome meaning | Notarius, expressed through CommandKit's reporting and outcome conventions. | | Completion-summary content, debug artifact lifecycle, and application outcome meaning | Notarius, expressed through CommandKit's reporting and outcome conventions. |
Adopt the standard capability suite selected in item 1, including upstream Adopt the standard capability suite selected in item 1, including upstream
commands and recommendations beyond the existing Notarius surface. Items 2–4 commands and recommendations beyond the existing Notarius surface. Items 2–4
select application inputs, composition, and reporting; items 5–6 select debug select application inputs, composition, and reporting; items 5–6 select debug
capture principles, verification, and migration. Concrete record details remain capture, verification, and migration. The earlier extensive receipt/manifest
open as identified below. proposal is superseded by item 4's artifact-first contract.
Pipeline and domain code should remain independent of CommandKit. Native Pipeline and domain code should remain independent of CommandKit. Native
PromptKit observations supply execution facts; Notarius attaches application PromptKit observations supply execution facts; Notarius attaches application
@@ -108,9 +110,9 @@ meaning and selects report content. CommandKit supplies presentation mechanics.
Two application needs already identified for deliberate treatment are: Two application needs already identified for deliberate treatment are:
- The current `run --json` publishes a receipt after output publication. Item 4 - The current `run --json` publishes a receipt after output publication. Item 4
records native reporting mechanics, but the output/report contract has been replaces that contract with artifact files and a small completion summary,
reopened around artifact delivery and optional metadata. Its earlier mandatory rendered natively as text, YAML, or JSON. No automatic metadata bundle or
run-report proposal is subject to that discussion. separately persisted report is required.
- Item 5 uses native `--debug` for diagnostic verbosity and for capture when an - Item 5 uses native `--debug` for diagnostic verbosity and for capture when an
effective debug directory is available, including an application default. effective debug directory is available, including an application default.
Capture selection remains independent of the final reporting mode. Capture selection remains independent of the final reporting mode.
@@ -202,8 +204,8 @@ 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. On roadmap
reconciliation, incorporate these versions into U1, replace U10's open standard reconciliation, incorporate these versions into U1, replace U10's open standard
capability selection with this decision, and incorporate the application wiring capability selection with this decision, and incorporate the application wiring
and presentation decisions from items 2–5. Preserve the remaining record choices and presentation decisions from items 2–5. Retire superseded durable-record
explicitly as directed by item 6. requirements as directed by item 6.
## 2. Native Command Surface And Inputs ## 2. Native Command Surface And Inputs
@@ -336,8 +338,7 @@ Generic effective configuration and source explanations remain available through
`config show` and `config explain`. ConfigKit's safe inspection facilities do not `config show` and `config explain`. ConfigKit's safe inspection facilities do not
automatically redact an arbitrary application report; select appropriate report automatically redact an arbitrary application report; select appropriate report
content rather than dumping the raw typed configuration. Item 3 selects loader content rather than dumping the raw typed configuration. Item 3 selects loader
wiring; item 4 selects reporting conventions and identifies remaining run-report wiring; item 4 selects the artifact-first output and completion-report contract.
contract choices.
### Removals And Remaining Work ### Removals And Remaining Work
@@ -350,8 +351,9 @@ native `config show`, `config profile` with `promptkit show profile`, and bespok
Application handlers still validate meaningful input combinations and translate 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, report content categories, and outcome Items 3–4 select loader behavior, the small completion report, and native outcome
presentation; exact run-report fields and durable formats remain with U9. presentation. Reconcile U9 with these decisions rather than expanding durable
metadata.
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),
@@ -521,14 +523,12 @@ Evidence: [native suite and loader ownership](../../../commandkit/docs/consumers
## 4. Reports, Machine Output, And Outcomes ## 4. Reports, Machine Output, And Outcomes
**Discussion / decision:** Native reporting and outcome mechanics remain selected. **Discussion / decision:** Agreed. Deliver artifacts as files and use CommandKit
The output/report contract is reopened: consumers primarily need resulting to render a small structured completion report on stdout, with a native text
artifacts, metadata may be optional, failures need useful nonzero outcomes, and template for the ordinary successful case. Additional operational diagnostics
operators/developers use debug capture for detailed investigation. The earlier use stderr; detailed investigation uses optional debug capture. This supersedes
run-report and durable-metadata proposals below remain discussion material for the earlier extensive receipt, manifest, and durable-execution-record proposals.
that review, not requirements to preserve or expand. No new report/manifest Keep native outcome and delivery-failure handling. Implementation is pending.
schemas have been selected. Finalize the cache decision first; return to the
consumer output/report contract afterward. Implementation is pending.
### Accepted-Artifact Cache And PromptKit Ownership ### Accepted-Artifact Cache And PromptKit Ownership
@@ -572,45 +572,82 @@ Concrete cache flags and legacy-checkpoint handling remain implementation-planni
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 still needs this replacement policy.
### One Report Value For Human And Machine Output ### Artifacts Are The Deliverable
Application commands submit ordinary values through `Reporter.Report` and use Publish the accepted domain artifacts as files in the output directory. Their
native `--format text|yaml|json` rendering. Execution supplies one run-report contents and encoding are independent of CLI report formatting: `--format`
value with a concise text template for default human output; JSON and YAML render controls the completion summary, not the artifact payloads. Keep artifact
the same structured value. Do not maintain separate human-summary and JSON-receipt discovery understandable without requiring consumers to read execution metadata.
construction paths.
```sh Do not require a run manifest, metadata bundle, or persisted completion receipt
notarius run dnd-session --input-file transcript.json alongside the artifacts. Preserve information intrinsic to the domain artifacts
notarius run dnd-session --input-file transcript.json --format json and their existing schemas; do not add model, retry, validation-history, or
execution inventories to those payloads merely because it is available.
Detailed operational evidence belongs in item 5's optional debug bundle.
### Small Structured Completion Report And Native Text Template
Submit one small application value through `Reporter.Report`. Use these fields
for an ordinary successful run:
| Field | Meaning |
| --- | --- |
| `pipeline` | Selected pipeline identifier. |
| `artifact_count` | Number of deliverable artifacts produced, including reused artifacts; excludes internal intermediate results, cache entries, and debug files. |
| `output_directory` | Absolute path to the directory containing the published artifacts. |
| `debug_directory` | Optional absolute path to the completed run-specific debug bundle; omitted when capture is disabled. |
For example, without debug capture:
```json
{
"pipeline": "dnd-session",
"artifact_count": 6,
"output_directory": "/work/results/run-123"
}
``` ```
Standard configuration and PromptKit commands retain their upstream report shapes Supply a short native `text/template` to render that same value as:
and behavior. Do not wrap them in a universal Notarius result envelope. No current
run-report need requires raw output; reserve native `Output`/`RenderOutput` for an
operation whose actual product needs a byte stream.
### Compact Application Run Report ```text
Success: dnd-session produced 6 artifacts in /work/results/run-123
```
CommandKit owns presentation; Notarius owns the meaning and deliberate contract CommandKit automatically renders a string value as plain text. Here the value
of the application run report. Retain these content categories: is structured so JSON/YAML callers receive named fields instead of a success
sentence they must parse. The native text template provides the concise human
presentation; without it, a structured value would default to YAML. Use native
`--format text|yaml|json` selection and serializers, without separate encoders or
independent human/machine report construction.
| Content | Purpose | When a completed run includes rejected work or permitted incomplete validation,
| --- | --- | qualify the completion message clearly. Include the rejection count and/or
| Application report version | Identify the report contract for consumers. | incomplete-validation fact in the same structured value when applicable. Do not
| Run and pipeline identity | Identify completed work. | present unqualified success that conceals those outcomes, or make their visibility
| Published bundle directory and applicable index path | Locate artifacts without guessing filenames. | depend on verbose/debug mode. These are small outcome qualifications, not
| Accepted/normalized and rejected output counts | Summarize production results. | per-producer histories or a general metadata envelope.
| Validation completeness/status | Distinguish fully validated results from permitted incomplete validation. |
| Process-warning counts | Expose degradation independently of reporting verbosity. |
| Debug location, when applicable | Locate requested diagnostic artifacts. |
Detailed per-producer validation records, rejection reasons, and execution No report-version field, run-ID field, token totals, profile inventory, warning
provenance belong in the published bundle rather than duplicated collections in statistics, validation-summary collection, or durable execution ledger is required
the command report. Do not serialize the entire internal pipeline result or by this completion contract. The old receipt is migration context, not a shape
complete upstream runtime types as a durable contract. U9 will select exact to preserve. Standard configuration and PromptKit commands retain their native
fields, versioning, and durable record formats. The old CLI receipt's shape is report values and behavior without a universal Notarius wrapper.
migration evidence, not a requirement to reproduce it.
### Optional Machine Output And Saved Reports
Operators and subprocess callers select YAML or JSON through the native format
flag. The completion report is enough to find the artifacts and recognize any
qualified outcome. Consumers interested only in artifacts need no metadata file.
Save a report with ordinary shell redirection:
```sh
notarius run dnd-session --input-file transcript.json --format json > run-report.json
```
Do not add a separate report-file flag or automatically persist a duplicate report
for this design. Keep stdout as one completion report, with additional diagnostics
on stderr, so `--format json --verbose` still produces valid report JSON.
### Publication, Streams, And Machine Consumption ### Publication, Streams, And Machine Consumption
@@ -628,28 +665,37 @@ failure may leave partial stdout even though publication already succeeded.
These run-consumption rules do not replace the native report behavior of other These run-consumption rules do not replace the native report behavior of other
commands, including configuration commands that can report failed validation. commands, including configuration commands that can report failed validation.
### Native Visibility And Message Categories ### Native Visibility, Diagnostics, And Debug Location
| Native facility | Application use | Wire CommandKit's result destination to stdout and diagnostic destination to
| --- | --- | stderr. Use `Info`, `Warn`, `Debug`, `Progress`, and native outcome explanations
| `Report` | Requested command result. | for their respective categories; do not mix these messages into a JSON/YAML
| `Progress` | Pipeline progress. | completion report.
| `Warn` | Actionable process degradation. |
| `Info` | Supplementary operational information. |
| `Debug` | Diagnostic detail, distinct from durable artifact capture. |
| Outcome explanation | Terminal failure or usage guidance. |
Adopt native visibility rules directly: ordinary mode suppresses warning messages, | Mode | Stdout | Stderr |
and quiet mode suppresses command results. Include validation status and | --- | --- | --- |
process-warning counts in the primary run report and its human summary so those | Ordinary | Brief completion summary. | Failure explanation, if needed. |
facts do not depend on warning-message visibility. Operators request `--verbose` | `--verbose` | Same completion report. | Additional operational information, warnings, and any failure explanation. |
for warning details; machine callers expecting a report do not request `--quiet`. | `--quiet` | Nothing. | Failure explanation, if needed. |
Use native progress selection and failure visibility without custom bypasses. | `--debug` | Completion report, including capture location when enabled. | Native debug diagnostics, information, warnings, progress, and any failure explanation. |
Quiet suppression is not a delivery failure; native rendering errors can still
fail a quiet invocation.
Artifact-quality advisories retain their application classification. Do not Adopt native reporting-mode ordering, explicit progress selection, and failure
reclassify them as process warnings merely to make them visible. visibility. The table describes mode defaults; `--progress` can explicitly enable
progress outside quiet mode. Machine callers expecting a report do not request
`--quiet`. Quiet suppression is not a delivery failure; native rendering errors
can still fail a quiet invocation. Artifact-quality advisories keep their domain
classification rather than becoming process warnings solely for visibility.
When capture completes, the text template adds a line such as:
```text
Debug capture: /tmp/notarius-debug/run-123
```
Use `debug_directory` in the structured value for the same location. Provide the
path rather than mirroring the debug bundle to stdout. An explicitly empty debug
directory preserves native debug diagnostics but creates no capture or capture
path in the completion report. Item 5 owns capture controls and lifecycle.
### Native Outcomes And Domain Acceptance ### Native Outcomes And Domain Acceptance
@@ -669,14 +715,18 @@ have different causes; preserve that distinction and native error identity.
Command completion remains separate from domain acceptance. A successfully Command completion remains separate from domain acceptance. A successfully
published run can contain recorded rejections or validation-incomplete results published run can contain recorded rejections or validation-incomplete results
allowed by application policy; those facts appear in reports and artifacts and allowed by application policy; those facts qualify the completion report and do
do not automatically fail the command. A terminal pipeline failure does fail the not automatically fail the command. A terminal pipeline failure does fail the
command. Native status zero also does not replace reading standard PromptKit command. Native status zero also does not replace reading standard PromptKit
reports for partial discovery or unsupported smoke checks. reports for partial discovery or unsupported smoke checks.
Application handlers supply useful native outcome explanations and retain the Application handlers supply useful native outcome explanations and retain the
underlying error through native cause handling. CommandKit presents the terminal underlying error through native cause handling. CommandKit presents the terminal
result. Remove duplicate terminal-error printing and custom outcome wrappers. result. On failure, provide a useful explanation and nonzero status rather than
requiring a separate structured error-report protocol. `--format` controls the
completion report, not native diagnostics. If artifacts were published before a
later failure, include their location in the failure explanation. Remove duplicate
terminal-error printing and custom outcome wrappers.
### Delivery Failures, Progress, And Accounting ### Delivery Failures, Progress, And Accounting
@@ -687,16 +737,21 @@ fact. Do not rewrite pipeline history as failed execution or automatically rerun
model work because report delivery failed. model work because report delivery failed.
Notarius owns stage/lane/chunk progress, domain acceptance, and cache reuse. Notarius owns stage/lane/chunk progress, domain acceptance, and cache reuse.
PromptKit supplies native execution observations and `ExecutionGroup` totals; PromptKit supplies native execution observations and `ExecutionGroup` totals.
CommandKit presents the selected facts. Explicitly enroll the relevant initial, These facts support native operational diagnostics and optional debug capture;
continuation, and validator executions without double counting. Cache reuse they do not require a permanent consumer execution report. Explicitly enroll the
does not add historical token usage to current execution totals, and unavailable relevant initial, continuation, and validator executions without double counting.
usage remains distinguishable from zero. Cache reuse does not add historical token usage to current execution totals, and
unavailable usage remains distinguishable from zero.
Remove bespoke format selection, parallel receipt encoders, custom verbosity Remove bespoke format selection, parallel receipt encoders, custom verbosity
handling, duplicate execution accounting, and superseded terminal-reporting handling, duplicate execution accounting, and superseded terminal-reporting
machinery. Retain only application report content, publication facts, domain machinery. Retire automatic reporting-only metadata bundles, mandatory run
decisions, and small deliberate durable projections. manifests, per-producer provenance inventories, and durable execution-ledger
requirements. Do not preserve or rebuild those structures to populate the small
completion value. Use existing application outcome facts for its contents and
the debug overview. Artifact schemas remain domain contracts; detailed debug
representations remain diagnostic data.
Evidence: [native reporting](../../../commandkit/docs/consumers/guide.md#invocation-reporting), Evidence: [native reporting](../../../commandkit/docs/consumers/guide.md#invocation-reporting),
[visibility and delivery](../../../commandkit/docs/cli.md#reporting), and [visibility and delivery](../../../commandkit/docs/cli.md#reporting), and
@@ -705,7 +760,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 bookkeeping boundary; U9 still owns concrete durable record choices. retains the native bookkeeping boundary. Reconcile U9 with this simpler contract,
including retirement of superseded durable-record requirements.
## 5. Debug Capture And Optional Diagnostics ## 5. Debug Capture And Optional Diagnostics
@@ -817,7 +873,7 @@ notifications alone do not provide cache short-circuiting.
Conversation capture required for continuation remains in-process execution Conversation capture required for continuation remains in-process execution
state. Persisting its history requires enabled debug capture. Cached values are state. Persisting its history requires enabled debug capture. Cached values are
accepted domain artifacts, not conversation state or provenance records. The accepted domain artifacts, not conversation state or provenance records. The
separate output/report contract remains under discussion. separate artifact-first output and completion-report contract is selected in item 4.
### Capture Lifecycle And Failure Policy ### Capture Lifecycle And Failure Policy
@@ -951,7 +1007,7 @@ a fabricated model execution. Historical provenance is not required in cache
files or reconstructed solely for debug capture. files or reconstructed solely for debug capture.
Retain enough available context to investigate a run that fails before publishing Retain enough available context to investigate a run that fails before publishing
output. Do not depend entirely on a successful output manifest or automatically output. Do not depend entirely on successfully published artifacts or automatically
copy every original input and published artifact. Retain complete native copy every original input and published artifact. Retain complete native
conversation snapshots for successive turns as selected below. Do not build a conversation snapshots for successive turns as selected below. Do not build a
competing transcript model or deduplication system to eliminate repeated history. competing transcript model or deduplication system to eliminate repeated history.
@@ -1188,8 +1244,10 @@ completeness. The phases do not require separate releases or an intermediate
compatibility framework. compatibility framework.
Resolve U1's dependency baseline and U10's CommandKit scope from items 1–4. Narrow Resolve U1's dependency baseline and U10's CommandKit scope from items 1–4. Narrow
U9 to the reopened consumer output/report contract, and debug implementation U9 to item 4's selected artifact-first output/completion contract and item 5's
details within item 5's resolved inventory, depth, and directory controls. 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 Update U1 for the upstream message-content hash and replace U8's checkpoint
identity/provenance plan with the accepted-artifact cache decision. identity/provenance plan with the accepted-artifact cache decision.
Reconcile removal inventory and acceptance criteria, including old Reconcile removal inventory and acceptance criteria, including old

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