Document standalone preflight and complete verification
This commit is contained in:
35
docs/cli.md
35
docs/cli.md
@@ -5,13 +5,13 @@
|
||||
```text
|
||||
narratio
|
||||
├── run SESSION
|
||||
├── preflight SESSION
|
||||
├── artifacts
|
||||
│ ├── list
|
||||
│ └── regenerate SESSION
|
||||
├── session
|
||||
│ ├── init SESSION
|
||||
│ ├── plan SESSION
|
||||
│ ├── validate SESSION
|
||||
│ ├── status SESSION
|
||||
│ ├── restore SESSION
|
||||
│ ├── clean [SESSION | --all]
|
||||
@@ -94,7 +94,7 @@ reruns selected work; dependent invalidation can extend beyond that range.
|
||||
Bounded starts require valid preceding manifest state. Ordinary execution uses
|
||||
semantic resume checks rather than rerunning all selected work.
|
||||
|
||||
After preparation, `run` checks projected Audita and Scriptorium work before
|
||||
After preparation, `run` checks projected Audita, Notarius, and Scriptorium work before
|
||||
processing continues. Failed checks stop the invocation; prompt warnings alone
|
||||
do not. `artifacts regenerate` uses the same check.
|
||||
See [operations](operations.md#prompt-requirements-preflight) for recovery.
|
||||
@@ -143,22 +143,21 @@ without creating a workspace, changing manifests, acquiring execution locks, or
|
||||
initializing stage adapters or invoking requirements inspection. It does not
|
||||
predict unknown output identities.
|
||||
|
||||
## Session validate
|
||||
## Preflight
|
||||
|
||||
```sh
|
||||
narratio session validate SESSION --session-file ./session.yml
|
||||
narratio preflight SESSION --session-file ./session.yml
|
||||
narratio preflight SESSION --format json
|
||||
```
|
||||
|
||||
Validation checks configuration and required input, audio, previous-session,
|
||||
publication, and lock readiness. Audita preflight uses existing prepared inputs,
|
||||
probes temporary destinations under `runs/.validation`, and may contact configured
|
||||
providers. It also inspects enabled trim
|
||||
and analysis definitions and their configured prerequisites, regardless of
|
||||
output reuse. Missing prompt requirements or unsuccessful inspection invalidate
|
||||
the report; incomplete or conditional discovery alone is a warning. Material
|
||||
findings remain in the report regardless of diagnostic visibility. Invalid
|
||||
configuration uses the native input classification; readiness failures are
|
||||
operational failures.
|
||||
Preflight resolves the same session and configuration selectors as `run`,
|
||||
prepares or reuses inputs, and checks enabled downstream capabilities and
|
||||
prompt prerequisites even when their processing outputs are reusable. It may
|
||||
create a workspace, download inputs, update the manifest, and contact providers.
|
||||
It stops before processing and publication. Required failures or blocked
|
||||
checks prevent readiness; conditional or incomplete prompt discovery can warn
|
||||
without failing. Preparation remains reusable after a later readiness failure.
|
||||
See [operations](operations.md#prompt-requirements-preflight) for details.
|
||||
|
||||
## Session status
|
||||
|
||||
@@ -337,13 +336,19 @@ manifests, resolved credentials, or internal dependency containers.
|
||||
| Run/regenerate | `campaign`, `session_id`, `run_id`, `stages`, `executed`, `skipped`, `stage_results`, `available_artifacts`, `artifact_targets`, `complete` |
|
||||
| Plan | `campaign`, `session_id`, `stages` with `name`, `action`, `reason`, optional `analysis`; `publication_actions` |
|
||||
| Catalog | `artifacts` with source, producer, output, enabled state, dependencies, optional concrete key and family/member/source provenance |
|
||||
| Validation | `campaign`, `session_id`, `session_source`, `valid`, `findings` with severity, category, message |
|
||||
| Preflight | `campaign`, `session_id`, optional `session_source` and `run_id`, `preparation` with outcome and optional reason, `ready`, `checks` with group, outcome and optional message, `findings` with severity, category and message |
|
||||
| Status/artifacts | Identities/source, `local_manifest`, `stages`, `artifacts`, optional `remote`, configuration provenance, audio/previous-artifact readiness, `findings` |
|
||||
| Init | `campaign`, `session_id`, `destination`, `remote`, `written` |
|
||||
| Locks | Identities, `operation`, `result`, `complete`, optional `source`, `locks` |
|
||||
| Restore | Identities/run, `dry_run`, `complete`, `status`, `downloaded`, `conflicts`, `actions` |
|
||||
| Clean | Optional identities, `all`, `dry_run`, `complete`, `cache`, `actions`, optional `error` |
|
||||
|
||||
Preflight preparation outcomes are `completed`, `reused`, `failed`, or
|
||||
`not_attempted`. Check outcomes are `succeeded`, `failed`, or `blocked`;
|
||||
inapplicable groups may be omitted. Findings include errors, warnings, and
|
||||
information where available. Quiet mode suppresses the report and retains
|
||||
failure diagnostics on stderr.
|
||||
|
||||
Run `stages` is the complete selection. `executed` includes attempted work,
|
||||
including failures and self-skips. `skipped` includes reuse and self-skips.
|
||||
Each `stage_results` entry has `name`, `attempted`, `outcome`
|
||||
|
||||
Reference in New Issue
Block a user