Record publication source lifetime decision
This commit is contained in:
@@ -13,8 +13,8 @@ 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 5. Topics 6
|
||||
and 7 need discussion. Each open topic ends with a question and space for a
|
||||
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.
|
||||
|
||||
@@ -346,7 +346,7 @@ the escalation timers. CAT-05 remains open pending implementation and verificati
|
||||
|
||||
## 6. Open publication sources as they are needed
|
||||
|
||||
Status: Open
|
||||
Status: Decision agreed; implementation pending
|
||||
|
||||
Finding: [CAT-09](catalog.md#cat-09--p2-bound-publications-simultaneously-open-source-descriptors).
|
||||
|
||||
@@ -373,36 +373,40 @@ An earlier failure may already leave immutable uploads that were never selected
|
||||
as current. Preserving the old current pointer is the important existing commit
|
||||
boundary; failure does not promise that no remote bytes were uploaded.
|
||||
|
||||
### Recommendation
|
||||
### Agreed direction
|
||||
|
||||
Keep complete destination planning, then open, verify, upload, and close each
|
||||
source using a bounded number of handles. Retain confinement and regular-file
|
||||
checks and use the verified handle for the transfer. Accept that a later invalid
|
||||
source may be discovered after earlier immutable uploads, while leaving the
|
||||
previous current publication selected.
|
||||
source in sequence using a bounded number of handles. Retain confinement,
|
||||
regular-file and checksum checks, and use the verified handle for hashing and
|
||||
transfer. Close each source when its transfer and verification finish rather
|
||||
than retaining all sources until the stage ends.
|
||||
|
||||
This relaxes the documented all-sources-rejected-before-upload behavior. Record
|
||||
that relaxation expressly if approved. It adds no artifact-count cap and requires
|
||||
no copies of every source solely to pin its original generation.
|
||||
An invalid later source may be discovered after earlier immutable uploads.
|
||||
Such a failure leaves the prior publication current; the new attempt is not
|
||||
selected. On a first publication, failure leaves no newly selected publication.
|
||||
Keep the current-pointer write last, after all required publication work succeeds.
|
||||
|
||||
### Viable alternatives
|
||||
This explicitly relaxes the documented all-sources-rejected-before-upload behavior.
|
||||
Planning identities, destinations, and rules remains upfront; opening and validating
|
||||
every source before any upload is no longer required.
|
||||
|
||||
- Run a bounded upfront validation pass, then reopen and revalidate sources for
|
||||
transfer. This preserves early detection of initially invalid sources but adds
|
||||
work; later changes can still fail during transfer.
|
||||
- Make verified disk-backed snapshots before uploading. This can preserve stronger
|
||||
source pinning with fewer descriptors, at the cost of disk space, I/O, and
|
||||
temporary-file management. No known use case currently establishes that need.
|
||||
Use the existing sequential transfer mechanism. This decision adds no artifact-count
|
||||
cap, descriptor-limit tuning, disk-backed source snapshots, or upload-concurrency
|
||||
framework. Unselected objects from unsuccessful attempts do not require a new
|
||||
cleanup subsystem as part of this fix. Existing publication locks retain their
|
||||
semantics, including carrying locked remote products without opening their local
|
||||
replacements.
|
||||
|
||||
### Question for discussion
|
||||
|
||||
May publication discover an invalid later source after earlier immutable uploads,
|
||||
provided it leaves the previous publication current? I recommend yes and a simple
|
||||
one-source-at-a-time transfer lifecycle.
|
||||
Verify bounded source-handle lifetimes with a growing inventory and a late-source
|
||||
failure that leaves current publication unchanged. Retain the existing source
|
||||
validation and pointer-ordering coverage.
|
||||
|
||||
Operator response:
|
||||
|
||||
_Pending discussion._
|
||||
_Approved: plan destinations upfront, then open, verify, upload, and close one
|
||||
source at a time. A later invalid source may leave an unselected remote attempt;
|
||||
the current publication must remain unchanged on failure. CAT-09 remains open
|
||||
pending implementation and verification._
|
||||
|
||||
## 7. Give preparation and inspection the same audio selection rules
|
||||
|
||||
|
||||
Reference in New Issue
Block a user