Prepare references independently of audio
This commit is contained in:
@@ -133,7 +133,7 @@ remote state with an unsafe legacy identity must be migrated before use.
|
||||
campaign supplies its default file; an explicit CLI selection replaces it
|
||||
for the invocation and supplies the derived players input. `players_file` and
|
||||
session `party_file` are unsupported configuration keys.
|
||||
- Exactly one audio mode must be configured in session input:
|
||||
- When audio is needed, configure one audio mode in session input:
|
||||
- local (`audio_dir` or `audio_files`), or
|
||||
- S3 (`audio_s3.prefix`).
|
||||
|
||||
@@ -680,6 +680,8 @@ own the contract; see the [maintained examples](../examples/README.md).
|
||||
|
||||
Audio rules:
|
||||
|
||||
- Audio selection may be omitted when remaining work does not require it;
|
||||
uncovered or forced transcription requires audio.
|
||||
- configure local mode (`audio_dir` or `audio_files`) or S3 mode (`audio_s3.prefix`), not both.
|
||||
- `audio_s3` requires `pipeline.storage.backend: s3` and a configured S3 bucket.
|
||||
- Explicit `audio_files` take precedence over `audio_dir`. Paths are resolved relative
|
||||
|
||||
@@ -8,7 +8,7 @@ Materialize canonical current-session inputs before processing stages.
|
||||
|
||||
- resolved campaign, session, and pipeline configuration
|
||||
- the stable speakers input, inline autocorrection rules, canonical party, and optional glossary selections
|
||||
- one resolved local or S3 audio source
|
||||
- a local or S3 audio source when transcription needs audio
|
||||
- previous-session input requirements from selected targets and their configured prerequisites
|
||||
|
||||
## Outputs
|
||||
@@ -21,7 +21,7 @@ Materialize canonical current-session inputs before processing stages.
|
||||
- `inputs/glossaries/{party,campaign,setting,spells,combined}.yml`
|
||||
- `inputs/players.yml`
|
||||
- `inputs/party.yml`
|
||||
- prepared recordings in `audio/`
|
||||
- prepared recordings in `audio/` when audio is acquired
|
||||
- optional `inputs/previous/manifest.json`
|
||||
- optional `inputs/previous/artifacts/**`
|
||||
- deterministic `manifest.inputs` entries (checksums + provenance)
|
||||
@@ -29,6 +29,10 @@ Materialize canonical current-session inputs before processing stages.
|
||||
## Key Behavior
|
||||
|
||||
- validates required config/store state and resolves selected vocabulary before audio work.
|
||||
- prepares references and history without acquiring audio when a validated
|
||||
supplied transcript satisfies transcription. Forced or uncovered transcription
|
||||
requires an audio selection. Preparation metadata records whether audio was
|
||||
prepared, and reference-only preparation preserves supplied-product records.
|
||||
- derives the party glossary and resolves the remaining named collections through
|
||||
`internal/glossary`; writes four individual shared envelopes and a combined
|
||||
envelope with checksums, sizes, and provenance. The combined record declares
|
||||
@@ -82,7 +86,8 @@ The fingerprint deliberately does not read or rehash large audio. Prepared
|
||||
input checksums remain the content provenance. Before reusing success, prepare
|
||||
validates every durable prepared copy and compares current stable-input bytes,
|
||||
effective campaign/session, canonical party, derived-player and resolved glossary
|
||||
bytes, local audio membership/checksums, or S3 key/size/entity-tag identity with that provenance.
|
||||
bytes, and, when audio was needed, local audio membership/checksums or S3
|
||||
key/size/entity-tag identity with that provenance.
|
||||
Source relocation with equivalent effective documents, names, and bytes remains
|
||||
reusable; changed or unavailable evidence causes a normal prepare rerun.
|
||||
Confirmed mismatches and sources that cannot be verified have distinct reasons;
|
||||
|
||||
@@ -239,7 +239,7 @@ Validation: `go test ./internal/app ./internal/stage`.
|
||||
|
||||
## Stage 6: Separate reference preparation from audio acquisition
|
||||
|
||||
Status: Pending
|
||||
Status: Complete
|
||||
|
||||
Read `config/validate_core.go`, `stage/prepare*.go`, and preparation semantic
|
||||
evidence. Preserve ConfigKit's completed-configuration boundary.
|
||||
|
||||
Reference in New Issue
Block a user