Document and verify multi-format audio discovery

This commit is contained in:
2026-12-02 03:25:20 +00:00
parent 9e2fc7313e
commit 0ec57fe2f4
12 changed files with 96 additions and 37 deletions

View File

@@ -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`
- `audio/*.flac`
- prepared recordings in `audio/`
- optional `inputs/previous/manifest.json`
- optional `inputs/previous/artifacts/**`
- deterministic `manifest.inputs` entries (checksums + provenance)
@@ -34,9 +34,11 @@ Materialize canonical current-session inputs before processing stages.
envelope with checksums, sizes, and provenance. The combined record declares
its four individual input dependencies.
- enforces local audio vs S3 audio mutual exclusivity.
- rejects duplicate explicit local audio sources after resolution.
- uses `internal/audio` for read-only source discovery shared with inspection;
rejects duplicate explicit local audio sources after resolution.
- gives distinct local source paths with the same basename deterministic unique
prepared filenames so neither source is overwritten.
prepared filenames so neither source is overwritten; unresolved speaker-ID
collisions fail before audio materialization.
- downloads S3 audio into a temporary sibling before verifying and installing the prepared copy; its recorded identity comes from the same response as the bytes.
- writes effective autocorrection rules as a Seriatim envelope, with checksum,
size, and source provenance, including an empty list when no rules apply.
@@ -96,5 +98,5 @@ reusable; changed or unavailable evidence causes a normal prepare rerun.
`internal/stage/prepare_resume_test.go`,
`internal/stage/semantic_contracts_initial.go`,
`internal/stage/semantic_contracts_initial_test.go`,
`internal/audio/s3_audio_test.go`,
`internal/audio/discovery_test.go`, `internal/audio/s3_audio_test.go`,
`internal/previouscache/*_test.go`