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.
|
||||
|
||||
@@ -29,6 +29,13 @@ operation invokes a model.
|
||||
|
||||
## Requests And Fixed Operation Inputs
|
||||
|
||||
Explicit pipeline preflight inventories selected initial profiles and access
|
||||
scopes, then invokes native smoke diagnostics using request-scoped overrides.
|
||||
It interprets supported/applicable reports and affirmative facts rather than
|
||||
treating a nil error as readiness. Smoke reports and usage remain separate from
|
||||
ordinary execution observer totals. The [native smoke contract](https://forge.maximumdirect.net/base-layer/promptkit/src/tag/v0.25.0/smoke_diagnostics.go)
|
||||
owns diagnostic mechanics.
|
||||
|
||||
Core owns the shared engine. A model module prepares transcript, references, contextual identity projections, and any
|
||||
normalization candidate mapping once. It constructs a `promptkit.RunRequest`
|
||||
with its selected prompt, profile/session, native artifact inputs, and variables.
|
||||
|
||||
@@ -19,6 +19,9 @@ and statically selected prompt IDs. Specs can be inspected without constructing
|
||||
modules. The resolver applies model-profile selections only to model roles.
|
||||
Static initial/correction dependencies use the same constants as request builders;
|
||||
they are preflight declarations, not asset manifests or execution fingerprints.
|
||||
The separate initial-prompt selection identifies independently targeted initial
|
||||
requests; correction dependencies remain in the complete offline list. Validator
|
||||
prompt declarations identify assessment requests.
|
||||
|
||||
[BuildRequest](../../internal/framework/pipeline/construction.go) supplies
|
||||
dependencies, option values, and prepared references; one-shot validators may
|
||||
|
||||
@@ -12,6 +12,8 @@ cmd/notarius -> internal/cli: native commands, one selected config result/engine
|
||||
-> resolve + offline preflight + materialize + typed preparation
|
||||
-> pipeline: parse -> chunk -> ordered lane work -> logical files
|
||||
-> internal/cli: publication -> requested capture finish -> report
|
||||
-> explicit preflight: shared local preparation -> destination checks
|
||||
-> native target diagnostics -> capture finish -> readiness report
|
||||
```
|
||||
|
||||
The executable supplies build identity. The composition root owns native command
|
||||
@@ -27,7 +29,7 @@ streams or roots. Standard inspection/preflight paths do not become runs.
|
||||
| Application configuration | [internal/core/config](../../internal/core/config/) | Composed ConfigKit/native settings definition, source-aware normalization, detached runtime conversion, application validation, effective domain resolution. |
|
||||
| Generic source and typed contracts | [internal/core/source](../../internal/core/source/), [internal/framework/contracts](../../internal/framework/contracts/) | Documents/units/chunks, typed production/assessment, source references, codecs, native execution selections, and small cache/evidence collaborators. |
|
||||
| Pipeline framework | [internal/framework/pipeline](../../internal/framework/pipeline/) | Registries, typed resolution, core-invoked preparation and execution, complete candidate assessment, ready-job workers, ordered handoffs, reuse eligibility, evidence/output assembly. |
|
||||
| Offline dependency preflight | [internal/preflight](../../internal/preflight/) | Known native prompt/profile checks on already resolved composition and supplied engine; no synthetic request or execution input reads. |
|
||||
| Pipeline preflight | [internal/preflight](../../internal/preflight/) | Offline known-resource checks plus selected-target discovery and explicit native smoke observation interpretation. |
|
||||
| Semantic reconciliation | [internal/framework/semanticreconcile](../../internal/framework/semanticreconcile/) | Prepared reconciliation operations, bounded candidate/window inputs, request-local proposal safety, typed fresh application, and evaluation-scoped details. |
|
||||
| Embedded content | [assets](../../assets/) | Content-only native prompt/profile/schema/message files imported with filesystem contexts; no behavioral registry. |
|
||||
| Accepted-result cache | [internal/framework/artifactcache](../../internal/framework/artifactcache/) | Raw accepted artifact/plan bytes under native content keys, confined atomic publication, and deployment-owned creation permissions. |
|
||||
|
||||
@@ -55,6 +55,9 @@ registries and the shared native engine. Builders receive independently owned
|
||||
build requests. Exact Go type, codec, evidence-projector, registration, and
|
||||
constructor checks happen before source parsing. There is no correction transport,
|
||||
asset registry, or persistent execution identity to collect.
|
||||
`PreparedPipeline.ParseSource` shares the constructed adapter's parsing and
|
||||
generic document validation with explicit preflight. The runner uses that same
|
||||
operation and creates its source index once; preflight does not chunk or execute.
|
||||
Pure [profile and binding copies](../../internal/framework/pipeline/profile_copy.go)
|
||||
detach supported mutable options, references, and controls without interpreting
|
||||
names or defaults; decoding and resolution perform their own normalization.
|
||||
|
||||
@@ -122,6 +122,12 @@ in [CLI Reference](../cli.md#output-streams-and-exit-statuses) and the
|
||||
|
||||
## Capture Lifecycle
|
||||
|
||||
Explicit preflight uses the same allocation and terminalization lifecycle, with
|
||||
temporary output/cache access probes instead of a run directory or cache store.
|
||||
It records performed native smoke reports separately from execution observations;
|
||||
capture failure stops remaining diagnostics and is independent of assessment
|
||||
and report delivery. See [preflight operation](../operations.md#preflight-lifecycle).
|
||||
|
||||
[Debug selection](../../internal/cli/run_debug.go) preserves native boolean and
|
||||
supplied directory semantics independently of verbosity. The run path alone
|
||||
calls [debug.Start](../../internal/framework/debug/recorder.go).
|
||||
|
||||
Reference in New Issue
Block a user