2026-11-27 17:09:21 +00:00
|
|
|
# Internal: Downstream Preflight
|
2026-11-26 04:40:25 +00:00
|
|
|
|
2026-11-30 15:42:21 +00:00
|
|
|
The application runs automatic downstream checks after selected preparation and
|
|
|
|
|
before selected processing. It projects remaining work against a clone of the
|
|
|
|
|
locked manifest, using the stage decisions and analysis planner shared with
|
|
|
|
|
`session plan`. Projected polish selects Audita; projected enabled extraction
|
|
|
|
|
selects Notarius; projected trim and analysis select Scriptorium requirements.
|
|
|
|
|
A projection is not an execution commitment, and an empty target set invokes no
|
|
|
|
|
checker.
|
2026-11-26 04:40:25 +00:00
|
|
|
|
2026-11-30 15:42:21 +00:00
|
|
|
Standalone `preflight` acquires configuration once and uses the runner's locked
|
|
|
|
|
invocation lifecycle to execute or reuse `prepare`. Within that same lock it
|
|
|
|
|
selects all enabled capabilities and prompt prerequisites regardless of reuse,
|
|
|
|
|
then invokes the shared downstream request builders and checkers. A preparation
|
|
|
|
|
failure blocks probes requiring prepared inputs but permits independent prompt
|
|
|
|
|
and remote-lock inspection while the context remains active. Preparation success
|
|
|
|
|
is persisted even when later readiness fails; readiness itself creates no stage
|
|
|
|
|
or reusable success record.
|
2026-11-26 04:40:25 +00:00
|
|
|
|
2026-11-30 17:11:00 +00:00
|
|
|
Shared finalization retains terminal manifest evidence while locked. Normal
|
|
|
|
|
pipeline execution projects that evidence into its run-artifact inventory;
|
|
|
|
|
standalone preflight returns its readiness report without building that inventory.
|
|
|
|
|
|
2026-11-30 15:42:21 +00:00
|
|
|
Audita receives verified prepared glossary files and production selections with
|
|
|
|
|
an embedded synthetic transcript. Its adapter performs native provider smoke
|
|
|
|
|
checks and retains failure causes. Notarius receives production controls and
|
|
|
|
|
verified reference snapshots, which are checked again after its native call.
|
|
|
|
|
The application projects transcript-producing work before allowing a verified
|
|
|
|
|
current transcript; otherwise it reports the synthetic fallback. Neither probe
|
|
|
|
|
publishes work, and the synthetic input cannot establish real-transcript
|
|
|
|
|
feasibility or editorial quality.
|
2026-11-30 14:40:34 +00:00
|
|
|
|
2026-11-27 17:09:21 +00:00
|
|
|
Scriptorium input-map keys remain binding names distinct from Narratio source
|
|
|
|
|
IDs. Missing required bindings or variables and inspection failures are errors;
|
|
|
|
|
optional sources for required inputs, conditional requirements, incomplete
|
2026-11-30 15:42:21 +00:00
|
|
|
discovery, and discovery issues produce warnings. Findings survive independent
|
|
|
|
|
failures and cancellation stops new work.
|
2026-11-26 04:40:25 +00:00
|
|
|
|
2026-11-30 15:42:21 +00:00
|
|
|
Probe files use invocation-scoped destinations under `runs/`, protected by the
|
|
|
|
|
session lock through report consumption, reference verification, and terminal
|
|
|
|
|
persistence. A later authorized cleanup can remove those files without removing
|
|
|
|
|
durable prepared inputs. See [workspace internals](workspace.md),
|
|
|
|
|
[CLI](../cli.md#preflight), and [operations](../operations.md#prompt-requirements-preflight).
|
|
|
|
|
Implementation is in `internal/preflight`, `internal/app/downstream_readiness.go`,
|
|
|
|
|
`internal/app/runner_preflight.go`, and `internal/app/session_readiness.go`.
|