Record audio acquisition and transfer-size decisions
This commit is contained in:
@@ -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
|
||||
identities, priorities, and source links remain unchanged.
|
||||
|
||||
CAT-02's direction is updated to the agreed import model. Other direction
|
||||
paragraphs retain the audit's candidate remedies; subsequent agreed choices and
|
||||
roadmap ownership are identified by the disposition notes.
|
||||
CAT-02's direction follows the agreed import model; CAT-04's direction follows
|
||||
the accepted audio-acquisition behavior. Other direction paragraphs retain the
|
||||
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, subprocess completion, publication source
|
||||
lifetimes, and audio eligibility. 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.
|
||||
Audio generation/size handling is [agreed in topic 4](discussion.md#4-keep-downloaded-audio-and-its-source-identity-together),
|
||||
with implementation pending. Continue the remaining decisions in
|
||||
[discussion topics 5–7](discussion.md#5-finish-subprocess-shutdown-before-releasing-its-files):
|
||||
subprocess completion, publication source lifetimes, and audio eligibility.
|
||||
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
|
||||
|
||||
@@ -158,8 +161,10 @@ but cannot authorize the later write.
|
||||
Status: Open
|
||||
|
||||
**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
|
||||
requirements for imported products, not source identity for local audio reuse.
|
||||
selects accepting the raw-audio generation actually downloaded; implementation
|
||||
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).
|
||||
|
||||
@@ -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.
|
||||
|
||||
**Direction.** Retain metadata from the same opened response as the streamed body.
|
||||
Either reject/reacquire drift from the selected generation or explicitly adopt the
|
||||
observed generation with its bytes. Test replacement between listing and reading,
|
||||
including rollback/reuse. This is per-object consistency, not a whole-session
|
||||
snapshot guarantee.
|
||||
Accept and record that observed raw-audio generation when the download passes
|
||||
existing acquisition checks, even if it differs from the earlier listing.
|
||||
Test replacement between listing and reading, including rollback/reuse. This
|
||||
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).
|
||||
|
||||
@@ -203,8 +209,9 @@ Status: Open
|
||||
|
||||
**Disposition / owner.** Coordinate — the [restore roadmap](../session-restore.md#existing-restore-controls-remain-useful)
|
||||
touches verified downloads. Transfer-size enforcement remains a separate audit
|
||||
remediation across all listed callers; settle its acquisition semantics in
|
||||
[discussion topic 4](discussion.md#4-keep-downloaded-audio-and-its-source-identity-together).
|
||||
remediation across all listed callers. [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).
|
||||
|
||||
|
||||
@@ -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