Prepare references independently of audio

This commit is contained in:
2026-12-02 15:26:40 +00:00
parent 6e74b436f6
commit 62778f5c5b
8 changed files with 117 additions and 27 deletions

View File

@@ -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;