Document and validate preflight readiness

This commit is contained in:
2026-11-27 01:26:07 +00:00
parent a9ab8e59b3
commit 7874ea648b
14 changed files with 143 additions and 35 deletions

View File

@@ -4,14 +4,14 @@ The [input contract](../integrations/transcript-glossary-files.md) owns input
formats; [configuration](../config.md) owns settings; the
[output contract](../integrations/output-files.md) owns serialized results.
1. CLI loads resolved configuration and transcript input. Preflight checks all
selected glossary views and roles before the output session prepares resources.
Transcript segments then enter canonical normalization.
1. CLI acquires configuration and transcript input. `framework/preflight` checks
selected glossary views and roles, normalizes the canonical transcript, and
returns an invocation-local plan with fixed sections and ordered profile IDs.
2. Normalization sorts segments by start time and preserves input order for
ties. It evaluates merge limits using the later end time and the same token
estimate as chunking, then reassigns IDs where needed.
3. The runner partitions the normalized transcript exactly once before its
module loop. Initial section identity, segment membership, and token
3. The core chunker partitions the normalized transcript during preparation.
The runner consumes those sections: initial identity, membership, and token
estimates stay fixed while text evolves.
4. Module instances execute in configured order. Each section hands its decoded
proposals and original local segment references to the runner along with
@@ -64,3 +64,9 @@ for invariants.
Key tests: `internal/framework/runner/*_test.go`,
`internal/framework/validators/*_test.go`, and
`cmd/audita/main_integration_test.go`.
Standalone preflight uses the same local plan and checked destinations, probes
regular output parents, and optionally invokes native structured-output smoke
checks through `framework/llm`. It does not start the runner or an output
session. Processing does not invoke smoke checks. See the
[CLI contract](../cli.md#preflight) for the observable behavior.