Sort only missing release assets once

This commit is contained in:
2026-11-01 19:29:50 +00:00
parent b72af69baf
commit eb61b40f08
2 changed files with 21 additions and 21 deletions

View File

@@ -300,7 +300,14 @@ avoidable asymptotic cost without claiming measured release-time savings.
## 7. Order the missing upload set once — P3
Status: open.
Status: complete.
**Completed:** Declaration validation now receives an unsorted collection.
Classification collects only missing declarations, and that owned worklist is
sorted in place once after the no-upload exits. Scheduling now takes
O(`n + k log k`) metadata work while retaining filename order and the manifest
last. Existing delivery/artifact tests passed, including manifest matching,
upload ordering, conflict/unverifiable stops, and partial recovery.
**Evidence:** `orderedExpected`, `orderMissing`, and `uploadMissingAssets` in
[shared asset delivery](../../internal/delivery/remote_assets.go).