Record audio acquisition and transfer-size decisions
This commit is contained in:
@@ -13,7 +13,7 @@ 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, 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
|
||||
response. Implementation details can be settled during planning after the
|
||||
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
|
||||
|
||||
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)
|
||||
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
|
||||
currently loses that association.
|
||||
|
||||
### Recommendation
|
||||
### Agreed direction: audio source identity
|
||||
|
||||
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
|
||||
@@ -264,37 +264,40 @@ and continue. This accommodates ordinary uploads without claiming that the
|
||||
earlier directory listing froze all the session's audio.
|
||||
|
||||
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
|
||||
snapshot protocol.
|
||||
The earlier listing does not require rejecting an otherwise acceptable replacement.
|
||||
This adds no automatic retry-until-stable loop or session-wide snapshot protocol.
|
||||
|
||||
### Viable alternative
|
||||
|
||||
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
|
||||
### Agreed direction: known-size transfers
|
||||
|
||||
Restore and other downloads already reject content that differs from a known
|
||||
expected size, but only after writing the complete response. Stop an oversized
|
||||
response during transfer instead. This applies an existing acceptance condition
|
||||
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
|
||||
instead of A, the response identity and size boundary must both describe B.
|
||||
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
|
||||
|
||||
When audio changes between listing and downloading, should Narratio accept and
|
||||
record the valid generation actually downloaded, or stop and ask for a retry?
|
||||
I recommend accepting the observed generation. Do you also agree with stopping
|
||||
known-size invalid transfers early?
|
||||
For raw audio, the observed download supplies the accepted identity. For published
|
||||
products, the selected publication inventory supplies the expected identity;
|
||||
different content is rejected rather than silently adopted. Transfer verification
|
||||
is separate from historical generation provenance for imported products.
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user