Record audio acquisition and transfer-size decisions

This commit is contained in:
2026-12-01 04:04:00 +00:00
parent bfd6369bc1
commit 4b75e283db
2 changed files with 46 additions and 36 deletions

View File

@@ -46,15 +46,18 @@ that the roadmap implements the entire finding. Findings close only after their
relevant behavior or code removal is verified. Original audit reports, finding relevant behavior or code removal is verified. Original audit reports, finding
identities, priorities, and source links remain unchanged. identities, priorities, and source links remain unchanged.
CAT-02's direction is updated to the agreed import model. Other direction CAT-02's direction follows the agreed import model; CAT-04's direction follows
paragraphs retain the audit's candidate remedies; subsequent agreed choices and the accepted audio-acquisition behavior. Other direction paragraphs retain the
roadmap ownership are identified by the disposition notes. audit's candidate remedies; subsequent agreed choices and roadmap ownership are
identified by the disposition notes.
Continue the remaining decisions in [discussion topics 4–7](discussion.md#4-keep-downloaded-audio-and-its-source-identity-together): Audio generation/size handling is [agreed in topic 4](discussion.md#4-keep-downloaded-audio-and-its-source-identity-together),
audio generation/size handling, subprocess completion, publication source with implementation pending. Continue the remaining decisions in
lifetimes, and audio eligibility. Topic 1 also retains the smaller choice about [discussion topics 5–7](discussion.md#5-finish-subprocess-shutdown-before-releasing-its-files):
waiting versus reporting a busy workspace. Remote checkpoint timing and failure subprocess completion, publication source lifetimes, and audio eligibility.
handling are deferred, not decisions blocking publication import. 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.
## Consolidation Decisions ## Consolidation Decisions
@@ -158,8 +161,10 @@ but cannot authorize the later write.
Status: Open Status: Open
**Disposition / owner.** Independent audio-acquisition remediation — [discussion topic 4](discussion.md#4-keep-downloaded-audio-and-its-source-identity-together) **Disposition / owner.** Independent audio-acquisition remediation — [discussion topic 4](discussion.md#4-keep-downloaded-audio-and-its-source-identity-together)
remains open. The [restore roadmap](../session-restore.md) relaxes generation-history selects accepting the raw-audio generation actually downloaded; implementation
requirements for imported products, not source identity for local audio reuse. and verification remain pending. The [restore roadmap](../session-restore.md)
relaxes generation-history requirements for imported products, not source identity
for local audio reuse.
Original findings: [CN-04](04-concurrency.md#cn-04--p2-s3-audio-provenance-can-combine-two-object-generations). Original findings: [CN-04](04-concurrency.md#cn-04--p2-s3-audio-provenance-can-combine-two-object-generations).
@@ -168,10 +173,11 @@ same-sized generation B. Its checksum then describes B while source provenance
describes A, allowing incorrect reuse after a remote rollback. describes A, allowing incorrect reuse after a remote rollback.
**Direction.** Retain metadata from the same opened response as the streamed body. **Direction.** Retain metadata from the same opened response as the streamed body.
Either reject/reacquire drift from the selected generation or explicitly adopt the Accept and record that observed raw-audio generation when the download passes
observed generation with its bytes. Test replacement between listing and reading, existing acquisition checks, even if it differs from the earlier listing.
including rollback/reuse. This is per-object consistency, not a whole-session Test replacement between listing and reading, including rollback/reuse. This
snapshot guarantee. corrects per-object consistency without a whole-session snapshot guarantee or
automatic retries until sources stop changing.
Related: [CAT-06](#cat-06--p2-stop-known-size-downloads-before-oversized-bodies-exhaust-staging-space). Related: [CAT-06](#cat-06--p2-stop-known-size-downloads-before-oversized-bodies-exhaust-staging-space).
@@ -203,8 +209,9 @@ Status: Open
**Disposition / owner.** Coordinate — the [restore roadmap](../session-restore.md#existing-restore-controls-remain-useful) **Disposition / owner.** Coordinate — the [restore roadmap](../session-restore.md#existing-restore-controls-remain-useful)
touches verified downloads. Transfer-size enforcement remains a separate audit touches verified downloads. Transfer-size enforcement remains a separate audit
remediation across all listed callers; settle its acquisition semantics in remediation across all listed callers. [Discussion topic 4](discussion.md#4-keep-downloaded-audio-and-its-source-identity-together)
[discussion topic 4](discussion.md#4-keep-downloaded-audio-and-its-source-identity-together). approves bounded known-size streaming with existing unknown-size behavior;
implementation and verification remain pending.
Original findings: [RS-02](05-resources.md#rs-02--p2-known-size-downloads-consume-the-full-response-before-rejecting-oversize). Original findings: [RS-02](05-resources.md#rs-02--p2-known-size-downloads-consume-the-full-response-before-rejecting-oversize).

View File

@@ -13,7 +13,7 @@ own the detailed evidence. This document records decisions, explains consequence
and distinguishes recommendations from approved scope. No remediation has been and distinguishes recommendations from approved scope. No remediation has been
implemented by this document. implemented by this document.
The operator has settled the main direction for topics 1, 2, and 3. Topics 4, 5, The operator has settled the main direction for topics 1, 2, 3, and 4. Topics 5,
6, and 7 need discussion. Each open topic ends with a question and space for a 6, and 7 need discussion. Each open topic ends with a question and space for a
response. Implementation details can be settled during planning after the response. Implementation details can be settled during planning after the
operator-facing behavior is clear. operator-facing behavior is clear.
@@ -235,7 +235,7 @@ _Read-only S3 checks approved; no further product choice identified here._
## 4. Keep downloaded audio and its source identity together ## 4. Keep downloaded audio and its source identity together
Status: Open Status: Both decisions agreed; implementation pending
Findings: [CAT-04](catalog.md#cat-04--p2-bind-prepared-s3-audio-bytes-to-their-observed-generation) Findings: [CAT-04](catalog.md#cat-04--p2-bind-prepared-s3-audio-bytes-to-their-observed-generation)
and [CAT-06](catalog.md#cat-06--p2-stop-known-size-downloads-before-oversized-bodies-exhaust-staging-space). and [CAT-06](catalog.md#cat-06--p2-stop-known-size-downloads-before-oversized-bodies-exhaust-staging-space).
@@ -256,7 +256,7 @@ require enabling S3 bucket versioning. The existing read operation already
provides metadata associated with the returned body. The audio download path provides metadata associated with the returned body. The audio download path
currently loses that association. currently loses that association.
### Recommendation ### Agreed direction: audio source identity
Use the metadata returned with the actual download as the identity of the bytes Use the metadata returned with the actual download as the identity of the bytes
accepted. If B is a valid recording satisfying the acquisition rules, record B accepted. If B is a valid recording satisfying the acquisition rules, record B
@@ -264,37 +264,40 @@ and continue. This accommodates ordinary uploads without claiming that the
earlier directory listing froze all the session's audio. earlier directory listing froze all the session's audio.
If the observed response cannot satisfy the applicable checks, fail clearly. If the observed response cannot satisfy the applicable checks, fail clearly.
There is no need for an automatic retry-until-stable loop or a session-wide The earlier listing does not require rejecting an otherwise acceptable replacement.
snapshot protocol. This adds no automatic retry-until-stable loop or session-wide snapshot protocol.
### Viable alternative ### Agreed direction: known-size transfers
Require the downloaded generation to match the earlier listing and stop on any
change. This is easy to explain and preserves the listing as the selected identity,
but an operator must retry preparation after an otherwise acceptable replacement.
### Related size-bound question
Restore and other downloads already reject content that differs from a known Restore and other downloads already reject content that differs from a known
expected size, but only after writing the complete response. Stop an oversized expected size, but only after writing the complete response. Stop an oversized
response during transfer instead. This applies an existing acceptance condition response during transfer instead. This applies an existing acceptance condition
earlier; it introduces no universal maximum recording size. earlier; it introduces no universal maximum recording size.
Use a bounded streaming transfer: for an expected N bytes, reading at most N plus
one byte distinguishes an exact-sized response from an oversized one. Retain
existing short-response and checksum validation. On failure, close the response,
remove partial staging, preserve the canonical destination, and identify the
responsible transfer and expected size in the error.
For committed products, the committed size is authoritative. If audio adopts B For committed products, the committed size is authoritative. If audio adopts B
instead of A, the response identity and size boundary must both describe B. instead of A, the response identity and size boundary must both describe B.
The byte count remains checked rather than trusting response metadata alone. The byte count remains checked rather than trusting response metadata alone.
Unknown-size input remains distinct from a known zero-byte declaration. Unknown-size input retains its existing behavior and remains distinct from a
known zero-byte declaration. The change does not reserve disk space or prevent
every disk-full condition.
### Question for discussion For raw audio, the observed download supplies the accepted identity. For published
products, the selected publication inventory supplies the expected identity;
When audio changes between listing and downloading, should Narratio accept and different content is rejected rather than silently adopted. Transfer verification
record the valid generation actually downloaded, or stop and ask for a retry? is separate from historical generation provenance for imported products.
I recommend accepting the observed generation. Do you also agree with stopping
known-size invalid transfers early?
Operator response: Operator response:
_Pending discussion._ _Approved: accept and record the raw-audio generation actually downloaded, using
metadata from the same response; enforce known expected sizes while streaming,
without a universal audio-size cap. Both findings remain open pending
implementation and verification._
## 5. Finish subprocess shutdown before releasing its files ## 5. Finish subprocess shutdown before releasing its files