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

@@ -41,8 +41,8 @@ their scope. Unless assigned otherwise, a finding remains independent audit
remediation. Shared code does not make a refactoring a prerequisite or assign
the whole finding to a roadmap.
Nine entries are closed by the safety and transfer remediation sprint; 34 remain
open. **Planned** identifies an agreed remedy awaiting
Ten entries are closed by the safety, transfer, and audio discovery work; 33
remain open. **Planned** identifies an agreed remedy awaiting
implementation. **Potentially eliminated** requires verification that the offending
lifecycle is removed. **Coordinate** identifies shared changes, not a commitment
that the roadmap implements the entire finding. Findings close only after their
@@ -58,7 +58,7 @@ Decisions on [audio generation/size handling](discussion.md#4-keep-downloaded-au
[subprocess completion](discussion.md#5-finish-subprocess-shutdown-before-releasing-its-files),
[publication source lifetimes](discussion.md#6-open-publication-sources-as-they-are-needed),
and [audio selection and naming](discussion.md#7-give-preparation-and-inspection-the-same-audio-selection-rules)
are agreed; audio selection remains pending in its separate roadmap. Topic 1
are agreed and implemented. Topic 1
records cancellation-aware workspace lock waiting, now implemented. Remote checkpoint timing and
failure handling are deferred, not decisions blocking publication import.
@@ -369,15 +369,19 @@ S3 is unnecessary.
### CAT-12 — P2: Share audio discovery and accept valid same-basename recordings in inspection
Status: Open
Status: Closed
**Disposition / owner.** Planned — the [audio-inputs roadmap](../audio-inputs.md)
owns shared discovery, regular-file eligibility, broad automatic extension
filtering, and early unresolved speaker-stem collision errors, as agreed in
**Disposition / owner.** Implemented and verified under the
[audio-inputs roadmap](../audio-inputs.md) and
[discussion topic 7](discussion.md#7-give-preparation-and-inspection-the-same-audio-selection-rules).
Coordinate with the [restore roadmap's preparation changes](../session-restore.md#adapt-preparation-and-operator-reporting)
without making either feature a prerequisite for the other. Implementation and
verification remain pending.
**Closure.** `internal/audio` owns local and S3 selection, prepared names, and
speaker-ID collision checks. Preparation, reuse, and inspection consume these
selections; transcription accepts manifest-selected files and uses the shared
filter for fallback. Audio discovery and real preparation/inspection tests cover
same-basename and mixed-format selection; transcription retry and WhisperX HTTP
and replay tests cover durable reuse and byte-preserving transport. Full tests,
race tests, vet, and build pass on Go 1.27.4.
Original findings: [CX-01](03-complexity.md#cx-01--p2-audio-discovery-is-duplicated-and-inspection-rejects-valid-inputs),
[BN-04](11-boundaries.md#bn-04--p3-audio-discovery-is-owned-independently-by-preparation-and-inspection).

View File

@@ -413,7 +413,7 @@ the current publication must remain unchanged on failure. CAT-09 is closed._
## 7. Give preparation and inspection the same audio selection rules
Status: Decisions agreed; implementation pending
Status: Implemented and verified
Finding: [CAT-12](catalog.md#cat-12--p2-share-audio-discovery-and-accept-valid-same-basename-recordings-in-inspection).
@@ -421,8 +421,8 @@ Roadmap owner: [Multi-Format Audio Inputs and Shared Discovery](../audio-inputs.
### Concrete example
The operator selects `first/speaker.flac` and `second/speaker.flac`. Preparation
accepts these distinct recordings and gives the prepared copies distinct names.
At the audit baseline, the operator selects `first/speaker.flac` and
`second/speaker.flac`. Preparation accepts these distinct recordings and gives the prepared copies distinct names.
Inspection rejects them because their basenames match. A status command can
therefore report unavailable audio for a session preparation can process.
@@ -468,7 +468,7 @@ Operator response:
_Approved: regular-file selection, shared broad audio-extension filtering for
automatic discovery, extension-agnostic explicit inputs, and early rejection of
unresolved speaker-stem collisions. CAT-12 remains open pending implementation
unresolved speaker-stem collisions. CAT-12 is closed after implementation
and verification._
## After Discussion