2026-11-28 04:00:34 +00:00
# Pipeline Preflight Feature Roadmap
2026-11-28 03:14:22 +00:00
## Purpose And Status
2026-11-28 04:45:29 +00:00
**Status:** Implemented and verified.
2026-11-28 03:14:22 +00:00
2026-11-28 04:00:34 +00:00
This roadmap defines the target behavior and accepted product decisions for
pipeline-aware preflight. There are no remaining open product decisions.
[Implementation Plan ](implementation.md ) owns sequencing and implementation tasks.
2026-11-28 03:49:33 +00:00
[Narratio's original feature request ](narratio-feature-request.md ) remains context.
The accepted design here governs implementation where it refines that request,
including the simpler treatment of native capabilities and readiness reporting.
Current behavior remains documented in [CLI Reference ](../cli.md ),
[CLI Internals ](../internal/cli.md ), and [Operations ](../operations.md ); this
2026-11-28 04:45:29 +00:00
roadmap records the accepted feature context; those canonical documents describe
the implemented command.
2026-11-28 03:49:33 +00:00
2026-11-28 04:00:34 +00:00
Private helper types, observer wiring, debug filenames, and exact check
2026-11-28 03:49:33 +00:00
identifiers remain implementation choices within the accepted contracts.
2026-11-28 03:14:22 +00:00
## Accepted Direction
- Notarius owns readiness for its selected pipeline, including relevant provider
targets and interpretation of native diagnostic observations. Narratio should
not reconstruct those decisions or supply a duplicate profile inventory.
- Add `notarius preflight PIPELINE_ID` with the same invocation inputs as `run` .
Provide `pipeline preflight` with the top-level spelling as a native alias.
Preserve defaults, precedence, path origins, and supplied-value distinctions.
- Keep `pipeline validate` as the existing offline configuration/dependency check.
New preflight explicitly permits input reads, destination probes, provider
contact, smoke inference costs, and requested debug capture.
- Share run declarations, selection, reference binding, and applicable preparation
logic. Do not run extraction and interrupt it as a substitute for preflight.
- Use native PromptKit diagnostics and CommandKit reporting/outcomes. Keep provider
mechanics upstream; consider an upstream addition if required observations or
target resolution cannot be obtained cleanly through native APIs.
- Do not publish extraction artifacts or populate, refresh, invalidate, or use
accepted cache entries as proof of present provider readiness.
- A supplied synthetic transcript is ordinary input. Readiness covers that input,
not a future real transcript; execution still validates its own input.
- A small machine-readable readiness report is the command's product, not a new
execution ledger, persisted receipt, or reporting sidecar system.
## 1. Required Checks And The Meaning Of Ready
2026-11-28 03:24:23 +00:00
Preflight validates that the selected pipeline is coherent and satisfied by the
supplied inputs, then runs the available, applicable native PromptKit smoke checks
against the backends/profiles implicated by that pipeline. This affirmative
contract is sufficient for user documentation; no catalogue of substantive
execution behavior outside preflight is needed.
2026-11-28 03:14:22 +00:00
2026-11-28 03:24:23 +00:00
| Area | Required check |
2026-11-28 03:14:22 +00:00
| --- | --- |
| Configuration and selected work | Valid effective selection, module options, lane selection, static prompt/profile dependencies, and binding compatibility. |
| Supplied input and external references | Readable input accepted by its input adapter; required external references accepted by their domain owners after run-equivalent binding/unbinding. |
2026-11-28 03:24:23 +00:00
| Generated dependencies | Valid producer/consumer wiring and compatibility. |
| Provider targets | Available, applicable native PromptKit smoke checks against the selected backends/profiles. |
2026-11-28 03:14:22 +00:00
| Output and requested debug | Practical access checks for destinations required by the invocation. |
2026-11-28 03:24:23 +00:00
A failed required check or inability to complete it, including cancellation,
produces unsuccessful readiness. Native diagnostic observations still require
interpretation: a diagnostic finishing without a Go error does not necessarily
mean its check passed.
2026-11-28 03:14:22 +00:00
2026-11-28 03:24:23 +00:00
An unavailable backend diagnostic capability is neither a failure nor an omission.
For example, absence of a native authentication check needs no compensating proof,
warning, or coverage disclaimer. Run the applicable checks PromptKit provides;
do not introduce a Notarius capability checklist that a backend must satisfy
2026-11-28 03:49:33 +00:00
beyond those native diagnostics.
2026-11-28 03:14:22 +00:00
2026-11-28 03:24:23 +00:00
Cache access problems warn rather than fail preflight, consistent with execution's
best-effort cache policy; bypass requires no cache access. Output and requested
debug destination failures remain failures.
2026-11-28 03:14:22 +00:00
2026-11-28 03:24:23 +00:00
Producer strict/permissive mode does not change the smoke-check verdict or turn
failed checks into success through fallback. Preflight performs its own defined
checks; producer fallback belongs to substantive pipeline execution.
2026-11-28 03:14:22 +00:00
## 2. Effective Target Discovery And Probe Coverage
2026-11-28 03:34:12 +00:00
Use the effective invocation to identify profiles implicated by selected work,
including model-backed chunking, extraction, normalization, validators, and any
other selected model roles. Build a deduplicated profile list and a deduplicated
list of their associated backends. Exclude unused configuration profiles and
unselected lanes; cached acceptance does not remove a selected profile from testing.
Run native reachability and available authentication checks once per backend,
then one native structured-generation test per distinct profile. Do not add a
separate text-generation test or run the full smoke suite per operation. Multiple
operations sharing a profile share its generation test; profiles sharing a backend
share backend access checks. Retain associations to the relevant pipeline bindings
2026-11-28 03:49:33 +00:00
for reporting. Unavailable checks follow Section 1's accepted semantics.
2026-11-28 03:34:12 +00:00
Use native PromptKit resolution and smoke APIs. Correction normally inherits its
originating execution target and adds no separate profile test; still validate its
prompt dependency. Any supported custom target change must be represented through
its actual selection. Endpoint-only profiles remain supported by native
profile-targeted diagnostics. Account for profile-level target settings through
native resolution rather than assuming all settings come from the named backend.
Avoid a general target-equivalence/fingerprint subsystem or credential comparisons.
Share the configuration result and invocation selections used by run. In the
current architecture, ConfigKit resolves configuration sources and configuration
assignments; ckprompt execution flags such as `--llm-model` and `--llm-endpoint`
remain request-scoped overrides, not mutations of that configuration. Forward
those same supplied overrides to native smoke requests so tests exercise the
2026-11-28 03:49:33 +00:00
intended invocation. Flag behavior follows Section 3.
2026-11-28 03:34:12 +00:00
Verify existing module declarations and selections during implementation. Reuse
existing information wherever sufficient; expose a small side-effect-free shared
target-selection operation only for concrete callers needing it. Do not fabricate
generated artifacts or execute substantive stages to discover targets. Escalate
concrete native target-resolution gaps upstream rather than duplicate resolution.
2026-11-28 03:14:22 +00:00
## 3. Shared Preparation, Input Validation, And Side Effects
2026-11-28 03:44:29 +00:00
Share ordinary local preparation between run and preflight: configuration and
invocation selection, lane/reference binding and module options, prompt/profile
dependency checks, module construction, input reading/parsing through its adapter,
and external-reference materialization/validation through its domain owners.
Extract reusable domain-owned checks where validation currently lives inside
execution; do not duplicate integration rules in the CLI. Validate generated
producer/consumer wiring and compatibility during preparation, and generated
content when execution produces it.
Use ordinary shared helpers with a clear handoff to pipeline execution or native
smoke orchestration. Complete local input, reference, and destination checks before
paid smoke checks. Shared preparation does not invoke smoke tests automatically
for run. No general preparation framework or persistent prepared-invocation record
is needed. Run continues to validate its own invocation and inputs.
| Destination | Preflight behavior |
| --- | --- |
| Output | Create the root if needed, write a temporary access-probe file, then remove it. Failure fails preflight. |
| Requested debug | Allocate a real debug session through the existing capture lifecycle. Failure fails preflight. |
| Cache used by selected work | Probe access with a temporary file; problems produce warnings. |
| Cache with bypass | No cache access. |
Probes clean up their own files; newly created destination directories may remain.
Auto and refresh have the same preflight access behavior, without reading or
modifying accepted cache entries. No cache-store initialization is needed merely
to probe access. Preflight publishes no extraction artifacts.
Share argument declarations and preserve defaults, precedence, and explicit-empty
distinctions. Configuration, input, lane, and reference controls select checked
work; profile and applicable execution overrides flow into native smoke requests;
output/cache controls select destinations and access behavior. Execution-only
controls remain accepted without manufacturing corresponding preflight work.
Formatting, verbosity, quiet mode, and usage reporting remain native. Preserve
PromptKit's smoke retry defaults when omitted and forward explicitly supplied,
supported overrides without another retry loop. Genuinely deterministic selected
work needs no provider calls.
Start requested debug capture early enough to record preparation failures, update
`latest` at session start, and finalize through the existing lifecycle. Capture
effective selection, useful input/reference diagnostics, native smoke results,
and failures. Reuse native observations for usage and preserve cancellation and
capture failure causes. Private capture filenames remain implementation choices.
2026-11-28 03:14:22 +00:00
## 4. Reports, Outcomes, And Consumer Contract
2026-11-28 03:46:20 +00:00
Emit one small command-specific readiness report through CommandKit, accompanied
by the ordinary process exit status:
| Field | Meaning |
| --- | --- |
| `pipeline` | Selected pipeline ID. |
| `ready` | Whether all required checks completed successfully. |
| `checks` | Results of performed checks, including actionable warnings. |
| `debug_directory` | Capture location when available. |
Each check has a stable identifier, relevant scope, a result (`passed` , `failed` ,
or `warning` ), and a human-readable message. Scope identifies the relevant input,
binding, backend, profile, or destination. Supply stable finding codes where
consumers need to distinguish failure reasons. Consumers need no prose parsing or
provider-specific interpretation to determine readiness. Keep native diagnostic
detail in debug capture; do not duplicate failures and warnings in separate lists.
Exact identifiers and field representation within checks remain implementation
choices consistent with this contract.
Readiness is true when all required checks complete successfully, and false when
any required check fails or cannot complete. Cache warnings do not prevent
readiness. Unavailable native capabilities add no invented check or warning.
Retain useful results gathered before failure without adding a hypothetical or
unperformed-check inventory. No third overall partially-ready state is needed.
When an assessment is available, report it even when readiness is false, then
return an unsuccessful outcome. Failures before an assessment can be constructed,
such as malformed arguments, use native error handling. Consumers check process
status, decode an available structured report for assessment details, and use
stderr for native explanations when no usable report is available. A ready report
does not override a nonzero status: capture or delivery can fail independently.
Preserve native exit classifications, cancellation, credential omissions, and
operation/delivery causes rather than adding preflight-specific exit codes.
Default text gives a concise ready/not-ready summary and actionable failures and
warnings; verbose presentation includes successful check details. JSON and YAML
serialize the same report value. Quiet mode and diagnostic routing remain native.
Do not introduce a schema-version envelope, saved receipt, mandatory sidecar, or
report-storage option. Consumers can save stdout when they need a record.
2026-11-28 04:00:34 +00:00
## 5. Verification And Documentation Requirements
2026-11-28 03:14:22 +00:00
2026-11-28 04:00:34 +00:00
Verify Notarius orchestration with real internal components and simulated
providers. Canonical documentation describes the feature when implemented;
the implementation plan owns that documentation handoff.
2026-11-28 03:14:22 +00:00
2026-11-28 03:49:33 +00:00
Use existing configuration loading, registries, input adapters, and temporary
files. Simulate external provider contact with a small fake provider or local HTTP
server. Default tests remain deterministic, offline, and credential-free. Optional
live-provider checks are manual verification, not ordinary test or release gates.
2026-11-28 03:14:22 +00:00
2026-11-28 03:49:33 +00:00
| Behavior | Required evidence |
| --- | --- |
| Selection equivalence | Run and preflight honor the same lane/reference selections, profile defaults, and supplied overrides, including explicit empty values where supported. |
| Target coverage and deduplication | Selected producer and validator profiles are covered; shared profiles/backends are checked once at their respective scope; unused targets are excluded. Unavailable native capabilities add no failure. |
| Native observations | Actual failed or incomplete required observations fail readiness even when the diagnostic returns no Go error. |
| Local preparation | Malformed supplied input or references fail before paid probes; generated dependencies are checked through wiring and compatibility. |
| Destinations and cache | Output/debug failures fail readiness, cache problems warn, bypass avoids cache access, temporary probes are cleaned up, and accepted entries remain unchanged under auto and refresh. No extraction artifacts are published. |
| Consumer outcomes | Successful and failed assessments produce the expected report and process outcome; early native errors, cancellation, and capture/delivery failures retain useful causes. |
| Assembled command | A representative command-level workflow exercises real composition and native rendering with simulated provider contact, including the native alias. |
Use independent expected outcomes and existing tests where sufficient. Assert
exact provider call counts where they protect the agreed deduplication of paid
checks. Test observable behavior rather than private helper structure, incidental
wording, or debug filenames. Do not duplicate upstream provider suites or build
an exhaustive matrix of every flag combination. Follow [Testing Policy ](../policy/testing.md ).