Plan shared preflight preparation and provider checks
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Dedicated Preflight Command
|
||||
|
||||
Status: Design decisions agreed; ready for implementation planning.
|
||||
Implementation has not begun.
|
||||
Status: Design decisions agreed. The ordered work is defined in the
|
||||
[implementation plan](implementation.md). Implementation has not begun.
|
||||
|
||||
## Purpose and Targeted End State
|
||||
|
||||
@@ -72,7 +72,7 @@ changes where warranted. Minimizing the diff or preserving current helper/packag
|
||||
boundaries is not a design objective. Keep the resulting design proportionate;
|
||||
this feature needs a shared preparation path, not a new workflow framework.
|
||||
|
||||
### 1. Shared Local Preparation
|
||||
### Shared Local Preparation
|
||||
|
||||
Both commands use the same argument bindings and acquisition path, retaining
|
||||
ConfigKit's source composition, configured secrets bootstrap, CLI precedence,
|
||||
@@ -98,7 +98,7 @@ stage selections independently again. This is shared code and invocation-local
|
||||
data, not a persisted plan, cross-process cache, or a promise that a subsequent
|
||||
invocation reuses the same configuration snapshot.
|
||||
|
||||
### 2. Provider Verification
|
||||
### Provider Verification
|
||||
|
||||
After local readiness succeeds, default standalone preflight calls PromptKit's
|
||||
native structured-output smoke diagnostic once per distinct selected profile ID.
|
||||
@@ -130,7 +130,7 @@ credential-relaxation mode or alter ConfigKit bootstrap behavior. Use upstream
|
||||
defaults for diagnostic execution controls unless an existing applicable setting
|
||||
must be passed through; add no new retry loop, aggregate budget, or timeout policy.
|
||||
|
||||
### 3. Output Resources and Processing
|
||||
### Output Resources and Processing
|
||||
|
||||
Standalone preflight checks intended output paths and the existing collision and
|
||||
placement rules without creating or truncating transcript/report files, initializing
|
||||
@@ -197,31 +197,16 @@ write probes and configured secrets bootstrap apply, and provider verification
|
||||
is enabled by default. Link upstream documentation for standard diagnostic
|
||||
behavior rather than maintaining an Audita copy of the smoke-test reference.
|
||||
|
||||
## Work to Reach the Target
|
||||
## Delivery Scope
|
||||
|
||||
1. Refactor shared acquisition and local preparation. Extract destination checking
|
||||
from output-session preparation, move normalization and chunk planning to the
|
||||
shared path, and have processing consume the resulting plan. Add temporary
|
||||
sibling write probes and cleanup for standalone preflight's active regular-file
|
||||
destinations, reusing the output adapter's checks without a throwaway processing
|
||||
session. Processing's real resource preparation continues to establish its own
|
||||
write readiness. Remove obsolete duplicate preparation and adjust error ownership
|
||||
with the new boundaries.
|
||||
2. Add `preflight` using shared processing argument definitions and the default-on
|
||||
`--smoke` flag. Wire it to local preparation without starting output sessions.
|
||||
Register `run` as an alias of `process` using the existing command framework
|
||||
and document it in command help and the CLI reference.
|
||||
Share the quiet-mode destination requirement with processing.
|
||||
3. Add the native smoke adapter and selected-profile orchestration. Reuse the
|
||||
existing PromptKit runtime and CommandKit reporting; preserve cancellation and
|
||||
classify native observations correctly. Keep domain preparation independent
|
||||
of provider-specific transport types wherever practical.
|
||||
4. Validate behavior at the boundaries described below. Refactor existing tests
|
||||
to protect the target behavior rather than preserving outdated call order.
|
||||
5. Update canonical CLI, operations, subprocess integration, and internal pipeline,
|
||||
preflight, and output-lifecycle documentation as the implementation lands.
|
||||
Provide a small domain-neutral example. Narratio can adopt the readiness command
|
||||
independently; no D&D-specific processing rules belong in Audita.
|
||||
Delivery includes the shared local execution plan, standalone `preflight`,
|
||||
default native structured-output verification, non-destructive final-destination
|
||||
checks with temporary probes, and `run` as an alias of `process`. The
|
||||
[implementation plan](implementation.md) owns the ordered refactoring and
|
||||
implementation steps. Canonical CLI, operations, subprocess and internal
|
||||
pipeline/output documentation will describe delivered behavior when it lands.
|
||||
Narratio can adopt readiness independently; D&D-specific processing rules and
|
||||
consumer adapter changes remain outside Audita.
|
||||
|
||||
## Validation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user