Document pipeline preflight for consumers and operators

This commit is contained in:
2026-11-28 04:34:14 +00:00
parent 71cefdd154
commit 5382058b28
5 changed files with 94 additions and 8 deletions

View File

@@ -23,6 +23,8 @@ notarius completion bash
notarius pipeline list
notarius pipeline show PIPELINE_ID
notarius pipeline validate PIPELINE_ID
notarius pipeline preflight PIPELINE_ID --input-file PATH
notarius preflight PIPELINE_ID --input-file PATH
notarius pipeline run PIPELINE_ID --input-file PATH
notarius run PIPELINE_ID --input-file PATH
notarius config scopes
@@ -106,7 +108,8 @@ This is distinct from native configuration validation: request preparation and
dynamic selections are checked when used.
Show and validate accept configuration selection and native report controls.
They inspect the complete configured pipeline; lane selection belongs to run:
They inspect the complete configured pipeline; lane selection belongs to run
and preflight:
~~~sh
notarius pipeline list --config examples/dnd-complete/config.yml --format json
@@ -114,6 +117,44 @@ notarius pipeline show dnd-session --config examples/dnd-complete/config.yml
notarius pipeline validate dnd-session --config examples/dnd-complete/config.yml
~~~
### Preflight
`preflight PIPELINE_ID` is the native alias for `pipeline preflight PIPELINE_ID`.
Both accept the same required input, selection, reference, destination, debug,
and native override flags as [run](#run). Preflight constructs selected modules,
checks the supplied input and external references, checks output and applicable
cache access, and invokes available native reachability, authentication, and
structured-generation checks for selected model targets. Checks sharing a profile
or backend share the corresponding probe. It does not execute the pipeline or
publish domain artifacts. Unlike offline validation it can contact providers and
incur inference costs; see [Operations](operations.md#preflight-lifecycle).
The assessment contains `pipeline`, `ready`, `checks`, and an optional
`debug_directory`. Each check has a stable class `id`, a structured `scope`, a
`result` (`passed`, `failed`, or `warning`), a `message`, and sometimes a `code`.
Scopes may identify a path, profile, backend, pipeline, or associated bindings.
Cache access problems warn without making readiness false. A failed or incomplete
required check makes readiness false. Default text shows the summary, failures,
and warnings; verbose visibility adds successful details. JSON and YAML serialize
the same assessment. For example, a portion of a successful JSON assessment is:
~~~json
{
"checks": [
{"id":"input","message":"Source input is valid.","result":"passed","scope":{"path":"/data/source.json"}}
],
"pipeline": "campaign",
"ready": true
}
~~~
The checks shown are illustrative, not an exhaustive list. When an assessment is
available it is delivered even for unsuccessful readiness; early argument or
loading errors can have no assessment. Always use process status as well: capture
or report delivery can fail independently of a ready assessment. Quiet mode can
suppress stdout and failed delivery can leave partial output. Readiness applies
to the supplied input, not a later transcript; run validates its own input.
### Run
~~~text
@@ -349,7 +390,8 @@ quiet command. Run capture selection remains independent of that final mode.
`--format json --verbose` keeps successful stdout report-only JSON while useful
diagnostics go to stderr. No application-wide structured error envelope is
introduced; failed stdout is not a success document.
introduced. A failed preflight may nevertheless deliver its readiness assessment;
run completion reports remain success-only.
| Status | Meaning |
| --- | --- |