diff --git a/docs/roadmap/audit/catalog.md b/docs/roadmap/audit/catalog.md index ff3c8a9..7bc5ad9 100644 --- a/docs/roadmap/audit/catalog.md +++ b/docs/roadmap/audit/catalog.md @@ -34,10 +34,12 @@ shared change surfaces, not extra prerequisites. ## Remediation Ownership And Remaining Decisions The [session-restore roadmap](../session-restore.md) owns the agreed redesign for -importing published artifacts. Disposition notes below relate findings to that -work without expanding its 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 the roadmap. +importing published artifacts. The [audio-inputs roadmap](../audio-inputs.md) owns +shared audio discovery and the approved multi-format extension of CAT-12. +Disposition notes below relate findings to those roadmaps without expanding +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. All 43 findings remain open. **Planned** identifies an agreed remedy awaiting implementation. **Potentially eliminated** requires verification that the offending @@ -47,17 +49,17 @@ relevant behavior or code removal is verified. Original audit reports, finding identities, priorities, and source links remain unchanged. Directions for CAT-02, CAT-04, CAT-05, and CAT-09 reflect subsequent agreed choices. +CAT-12 also reflects the approved audio selection and naming decisions. Other direction paragraphs retain the audit's candidate remedies; agreed choices and roadmap ownership are identified by the disposition notes. Decisions on [audio generation/size handling](discussion.md#4-keep-downloaded-audio-and-its-source-identity-together), [subprocess completion](discussion.md#5-finish-subprocess-shutdown-before-releasing-its-files), -and [publication source lifetimes](discussion.md#6-open-publication-sources-as-they-are-needed) -are agreed, with implementation pending. Continue with -[topic 7: audio eligibility](discussion.md#7-give-preparation-and-inspection-the-same-audio-selection-rules). -Topic 1 also retains the smaller choice about waiting versus reporting a busy -workspace. Remote checkpoint timing and failure handling are deferred, not -decisions blocking publication import. +[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, with implementation pending. Topic 1 retains the smaller choice +about waiting versus reporting a busy workspace. Remote checkpoint timing and +failure handling are deferred, not decisions blocking publication import. ## Consolidation Decisions @@ -162,7 +164,9 @@ Status: Open **Disposition / owner.** Independent audio-acquisition remediation — [discussion topic 4](discussion.md#4-keep-downloaded-audio-and-its-source-identity-together) selects accepting the raw-audio generation actually downloaded; implementation -and verification remain pending. The [restore roadmap](../session-restore.md) +and verification remain pending. This is separate from the +[audio-inputs roadmap's discovery changes](../audio-inputs.md#relationship-to-other-work). +The [restore roadmap](../session-restore.md) relaxes generation-history requirements for imported products, not source identity for local audio reuse. @@ -256,6 +260,10 @@ new command confirmation or publication restriction. Status: Open +**Disposition / owner.** Independent copy-resource remediation — coordinate with the +[audio-inputs roadmap](../audio-inputs.md#reuse-and-transport-verification), which +reuses the copy path. Multi-format discovery does not remove whole-file buffering. + Original findings: [EF-01](02-efficiency.md#ef-01--p2-local-audio-copying-buffers-the-complete-recording). **Issue.** The changed/missing local-copy path hashes a recording, reads all its @@ -343,11 +351,13 @@ S3 is unnecessary. Status: Open -**Disposition / owner.** Independent audio-discovery remediation — coordinate with the -[roadmap's preparation changes](../session-restore.md#adapt-preparation-and-operator-reporting). -Artifact-only execution does not fix raw-audio inspection; -[discussion topic 7](discussion.md#7-give-preparation-and-inspection-the-same-audio-selection-rules) -remains open. +**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 +[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. 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). @@ -359,11 +369,16 @@ rejects them. The audits also identify differing duplicate-path and file-eligibility handling. **Direction.** Give read-only audio selection a shared owner, preferably -`internal/audio`. Keep copying/naming/checkpoints in preparation and reporting in -app. Preserve duplicate-resolved-source rejection, local destination -disambiguation, and the separately selected S3 basename rule. Resolve eligibility -differences against the existing contract rather than adopting the strictest -check. Retain cross-consumer regression coverage. +`internal/audio`. Keep materialization and checkpoint transitions in preparation +and reporting in app. Apply the approved regular-file requirement and the +roadmap's shared case-insensitive filter for automatic discovery; explicit local +file selections and manifest-registered audio remain extension-agnostic. Preserve +duplicate-resolved-source rejection, existing local prepared-name disambiguation, +and the separately selected S3 basename rule. Retain stem-based speaker IDs and +reject remaining cross-extension stem collisions during discovery, identifying +both sources after existing disambiguation. Verify consistent mixed-format +selection, downstream acceptance, transport, and local retry across consumers +without imposing backend codec guarantees. Related: [CAT-13](#cat-13--p2-give-s3-session-planning-the-evidence-needed-for-truthful-reuse-decisions). @@ -374,7 +389,10 @@ Status: Open **Disposition / owner.** Independent planning/preflight remediation — the [agreed decision](discussion.md#3-inspect-s3-when-planning-and-preflighting) selects read-only S3 checks for both commands. Coordinate with the [restore roadmap's planning changes](../session-restore.md#preparation-and-readiness-support-artifact-only-execution); -skipping covered audio work does not fix planning for raw-audio sessions. +skipping covered audio work does not fix planning for raw-audio sessions. Use the +[audio roadmap's shared selection rules](../audio-inputs.md#one-selection-responsibility) +when composing raw-audio evidence; discovery consolidation alone does not supply +the missing remote collaborator. Original findings: [FC-03](01-correctness.md#fc-03--p2-session-planning-reports-reusable-s3-preparation-as-changed). diff --git a/docs/roadmap/audit/discussion.md b/docs/roadmap/audit/discussion.md index 6b0fff9..5af13c2 100644 --- a/docs/roadmap/audit/discussion.md +++ b/docs/roadmap/audit/discussion.md @@ -1,6 +1,6 @@ # Audit Remediation Discussion -Status: Discussion in progress +Status: Main directions agreed; lock contention choice remains ## Purpose @@ -13,10 +13,11 @@ own the detailed evidence. This document records decisions, explains consequence and distinguishes recommendations from approved scope. No remediation has been implemented by this document. -The operator has settled the main direction for topics 1 through 6. Topic 7 -needs discussion. Each open topic ends with a question and space for a -response. Implementation details can be settled during planning after the -operator-facing behavior is clear. +The operator has settled the main direction for all seven topics. Topic 1 retains +the smaller choice about waiting versus reporting a busy workspace. The +[session-restore](../session-restore.md) and [audio-inputs](../audio-inputs.md) +roadmaps own their respective target behavior. Implementation details can be +settled during planning against those roadmaps and the remaining catalog entries. ## 1. Coordinate destructive cleanup with other work @@ -410,10 +411,12 @@ pending implementation and verification._ ## 7. Give preparation and inspection the same audio selection rules -Status: Open +Status: Decisions agreed; implementation pending Finding: [CAT-12](catalog.md#cat-12--p2-share-audio-discovery-and-accept-valid-same-basename-recordings-in-inspection). +Roadmap owner: [Multi-Format Audio Inputs and Shared Discovery](../audio-inputs.md). + ### Concrete example The operator selects `first/speaker.flac` and `second/speaker.flac`. Preparation @@ -427,41 +430,50 @@ inspection requires a regular file. A named pipe or device can pass the former check but fail the latter. The audit does not establish successful end-to-end support for those non-regular sources. -### Recommendation +### Agreed direction Share read-only selection rules. Accept distinct local recordings with matching basenames and retain preparation's rejection of duplicate resolved source paths. -Keep destination naming in preparation. Keep the separately selected S3 basename -rule distinct from local selection. +Keep materialization and checkpoint transitions with preparation and reporting +with inspection. Preserve the existing prepared-name disambiguation and keep +the separately selected S3 basename rule distinct from local selection. -For the remaining eligibility choice, I recommend ordinary regular recording -files as the supported file-input surface. That fits repeated reading, hashing, -and resume. Requiring a regular file consistently would narrow preparation's -current initial check, so it needs approval. It does not by itself establish a -new blanket symlink prohibition; existing path/confinement rules remain separate. +Local recording sources must resolve to regular files. This supports repeated +reading, hashing, and resume. Existing path and symlink rules remain separate. -### Viable alternative +Accept multiple audio formats. Automatic directory and S3-prefix scans use one +shared, broad, case-insensitive extension filter; nonmatching sidecars are +ignored. The [roadmap](../audio-inputs.md#broad-extension-filtering-for-automatic-discovery) +owns the extension set and its application to preparation, inspection, reuse, +and transcription fallback. Explicit local file selections and manifest-registered +audio remain extension-agnostic. Backend decoding determines actual codec support; +selection adds no transcoding or format-probing requirement. -Fix the demonstrated basename disagreement and share preparation's existing -selection behavior without tightening file eligibility. This minimizes behavior -changes. Unusual non-regular sources may then fail later during reading or -transcription rather than at discovery. The broader acceptance should not be -presented as evidence that streaming pipes and devices are supported end to end. +Preserve stem-based speaker IDs. After existing prepared-name disambiguation, +reject remaining same-stem collisions across extensions during shared discovery, +identify both sources, and ask the operator to select one encoding or rename the +recordings. Distinct same-full-basename local recordings remain supported. This +moves the existing transcription ambiguity failure earlier without adding +automatic cross-extension renaming or content-based deduplication. -### Question for discussion - -Should the shared discovery contract require regular recording files, or preserve -preparation's broader initial eligibility check? I recommend regular files, with -no additional filesystem restrictions bundled into that choice. +The roadmap extends CAT-12's shared-discovery remediation with the subsequently +approved multi-format behavior. Audio generation identity and transfer bounds +remain the separate corrections agreed under topic 4. Publication import is +independent of raw-audio discovery; neither feature roadmap requires completing +the other first. Operator response: -_Pending discussion._ +_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 +and verification._ ## After Discussion -Record approved answers here, then prepare a remediation roadmap against the -catalog. The roadmap should distinguish agreed behavior changes from internal +Prepare remediation plans against the catalog, using the two feature roadmaps +for their assigned work. Distinguish agreed behavior changes from internal refactoring, retain the audit evidence links, and include focused regression -coverage. This document does not authorize implementing unresolved recommendations -or replacing existing policies before those choices are settled. +coverage. Confirm topic 1's contention behavior when planning the lock fix. +Recording an approved direction does not close its findings or change current +policy; implementation and verification remain outstanding.