Plan standalone session preflight implementation

This commit is contained in:
2026-11-30 14:49:20 +00:00
parent 07e6faed5a
commit d4e5cfe41b
2 changed files with 390 additions and 30 deletions

View File

@@ -134,37 +134,32 @@ Successful preflight reports what was checked at that time. It does not guarante
future provider availability, publication success, or processing quality with a
real transcript. Automatic preflight still runs before applicable processing.
## Work To Reach The End State
## Integration And Documentation
1. **Consolidate checks and request construction.** Separate existing validation
checks from command wiring. Keep shared checking in `internal/preflight`,
application acquisition and lifecycle in `internal/app`, and downstream
invocation in adapters. Reuse production request builders and prepared-input
verification. Remove duplicate setup where practical without introducing a
generic check framework.
2. **Integrate preparation and readiness in one command lifecycle.** Reuse the
runner's prepare execution/reuse decisions, locking, persistence, cancellation,
and resource release. Avoid calling public CLI commands from inside the new
command or loading a second, potentially different configuration. Retain the
full-session target selection for standalone checks and projected selection
for automatic checks.
3. **Replace the command and reporting.** Register top-level `preflight`, remove
`session validate`, and adapt the existing findings report to describe
preparation and readiness, including meaningful partial results. Remove
obsolete validation-only orchestration and preserve helpers still used by
status, planning, or other commands.
4. **Keep probe material within the workspace lifecycle.** Use existing probe
path and diagnostic conventions; checking does not promote probe outputs into
canonical products. Follow the [cleanup lifecycle](../operations.md#cleanup): probe
evidence under `runs/` is disposable at the next authorized cleanup, and
preflight does not itself authorize session cleanup. Preparation's durable
outputs remain ordinary reusable inputs.
5. **Update current documentation when implementation lands.** Update the CLI
tree and report reference, the standard operations workflow, troubleshooting
commands, internal ownership and lifecycle documentation, and the architecture
policy's description of standalone validation. Replace the documented
prepare-then-validate sequence with preflight. Explain state changes, provider
calls, check coverage, and migration from `session validate` in release notes.
Shared checking belongs in `internal/preflight`, acquisition and lifecycle in
`internal/app`, and native invocation in adapters. Production request builders
and prepared-input verification serve both readiness workflows. The resulting
implementation has one preparation/lifecycle owner and one implementation of
each readiness check, with distinct full-session and projected target selection.
Helpers still used by status, planning, or other commands remain available.
Probe material uses existing invocation-scoped workspace and diagnostic
conventions. The shared session lock covers preparation through native probe
execution, report consumption, reference verification, and finalization.
Following the [cleanup lifecycle](../operations.md#cleanup), probe evidence under
`runs/` is disposable at the next authorized cleanup. Prepared inputs remain
durable and reusable; readiness does not promote probe outputs into canonical
products or authorize session cleanup.
Current CLI, operations, troubleshooting, integration, internal, and architecture
documentation describes the implemented command when it lands. The standard
operator workflow uses preflight in place of the separate prepare/validate
sequence and explains state changes, provider calls, check coverage, and
diagnostic lifetime. The next release notes identify the migration from
`session validate` to `preflight`.
The ordered work and completion checks are in the
[implementation plan](implementation.md).
## Verification