Align internal guidance with pipeline preflight
This commit is contained in:
@@ -21,7 +21,7 @@ continue to use their caller-supplied contexts.
|
||||
The constructor wires:
|
||||
|
||||
- native help/version and installed shell completion;
|
||||
- application pipeline declarations and a native run alias;
|
||||
- application pipeline declarations and native run and preflight aliases;
|
||||
- ckconfig whole-application and focused PromptKit scopes, sharing one loader;
|
||||
- ckprompt resource/requirements inspection, concrete request validation,
|
||||
prepared preview, namespace selection, and explicit smoke testing.
|
||||
@@ -63,10 +63,11 @@ with production entries.
|
||||
- validating: domain resolution plus known-resource preflight, supplying the
|
||||
same captured engine only when model roles require it.
|
||||
|
||||
[Preflight](../../internal/preflight/preflight.go) accepts collaborators/data;
|
||||
it does not load configuration, register/construct modules, read execution
|
||||
inputs, render CLI reports, or allocate state. Partial profiles pass native
|
||||
inspection, with concrete request readiness deferred until preparation.
|
||||
[Offline dependency validation](../../internal/preflight/preflight.go) accepts
|
||||
collaborators and data without reading execution inputs or allocating state.
|
||||
Partial profiles pass inspection. The same package also discovers selected
|
||||
initial targets and orchestrates explicit native smoke checks; the CLI owns
|
||||
their input, destination, capture, and presentation boundaries.
|
||||
|
||||
## Run Inputs And Native Overrides
|
||||
|
||||
@@ -93,6 +94,15 @@ Framework/model code transports it rather than deriving another session.
|
||||
|
||||
## Run Orchestration
|
||||
|
||||
[pipeline_invocation.go](../../internal/cli/pipeline_invocation.go) shares
|
||||
loading, selection, reference materialization, construction, input reading,
|
||||
and session selection between run and
|
||||
[preflight](../../internal/cli/pipeline_preflight.go). The latter parses through
|
||||
the prepared pipeline, probes destinations, discovers targets, and hands native
|
||||
observations to its readiness report without invoking the runner or cache store.
|
||||
It finalizes requested capture before report delivery; assessment and capture or
|
||||
delivery outcomes remain independently meaningful.
|
||||
|
||||
The native command declaration in [pipeline_run.go](../../internal/cli/pipeline_run.go)
|
||||
creates a private owner for each invocation. That owner performs the ordered
|
||||
handoff and keeps capture and publication state local to that run:
|
||||
@@ -160,7 +170,8 @@ behavior. There is no universal Notarius envelope or parallel serializer.
|
||||
[schema tests](../../internal/cli/native_schema_load_test.go) cover native
|
||||
composition, captured contexts, and operator contracts.
|
||||
- [Pipeline command tests](../../internal/cli/pipeline_commands_test.go) cover
|
||||
listing/showing/preflight without execution inputs or state.
|
||||
offline listing, showing, and validation; [preflight tests](../../internal/cli/pipeline_preflight_test.go)
|
||||
cover readiness reporting and the explicit online route.
|
||||
- [Override tests](../../internal/cli/execution_overrides_test.go) and
|
||||
[run tests](../../internal/cli/pipeline_run_test.go) cover supplied values,
|
||||
routing, references, sessions, and run ordering.
|
||||
|
||||
Reference in New Issue
Block a user