Document standalone preflight and complete verification

This commit is contained in:
2026-11-30 15:42:21 +00:00
parent 727ed783d1
commit b2877c1ea0
17 changed files with 276 additions and 97 deletions

View File

@@ -72,11 +72,10 @@ This guidance does not create a release or publish any changes.
## Standard Session Workflow
1. Select pipeline/campaign/session config.
2. Prepare inputs, then validate session readiness:
2. Prepare inputs and check session readiness:
```bash
narratio run 2026-04-04 --stage prepare
narratio session validate 2026-04-04
narratio preflight 2026-04-04
```
3. (Optional) inspect stage decisions:
@@ -124,16 +123,24 @@ required binding or failed check stops the invocation; incomplete or conditional
prompt discovery can produce warnings. Already completed work remains recorded.
`session plan` does not invoke these downstream checks.
`session validate` checks enabled downstream definitions against existing
prepared glossary records. It does not prepare inputs. Its Audita probe uses a
`runs/.validation` destination namespace, may create or probe directories and
may contact configured providers. The synthetic check establishes readiness for
that probe, not feasibility for a real transcript or editorial quality. See
[Audita](integrations/audita.md) and [Scriptorium](integrations/scriptorium.md).
Session-local Audita and Notarius probes share the session lock with pipeline
runs and restore. Validation waits while that lock is held, honors cancellation,
and leaves stage progress unchanged. Cleanup can remove finished probe files
after validation releases the lock.
Standalone `preflight` prepares or reuses the session's real inputs before
checking every enabled downstream capability and prompt prerequisite, including
work whose outputs could be reused. It may create workspace state, download
inputs, update the manifest, and contact providers. Changed inputs can stale
dependent stage records through ordinary preparation rules. Preparation remains
available for reuse if a later readiness check fails. Preflight stops before
processing, publishing, notification, or cleanup.
Audita checks a synthetic transcript. Notarius uses a verified trimmed
transcript only when the normal work projection indicates its producers will
not rerun; otherwise it uses a synthetic input. These checks do not establish
real-transcript feasibility, editorial quality, or future provider availability.
See [Audita](integrations/audita.md) and [Scriptorium](integrations/scriptorium.md).
The session lock covers preparation, probes, and finalization. Probe diagnostics
under `runs/` are disposable and can be removed by a later authorized cleanup;
prepared inputs remain durable. Preflight itself does not run cleanup or rotate
processing-stage diagnostic views. See [cleanup](#cleanup).
## Stage Execution and Continuation Behavior