Filter publication record names before sorting directory results

This commit is contained in:
2026-11-02 22:36:35 +00:00
parent 781341a0ba
commit 3b8bacf114
3 changed files with 62 additions and 7 deletions

View File

@@ -456,6 +456,11 @@ with a controlled error; repository production and test files were unchanged.
## R11: Filter directory entries before ordering them — P3
**Completed:** Discovery filters unsorted directory batches and sorts selected
record paths once. Directory work is `O(D + R log R)` with bounded intermediate
entry storage. Mixed-directory, ordering, and cancellation regressions passed.
R13 addresses preservation of records alongside enumeration failures.
**Relevant code:** `internal/publish/attempts.go:41` through the subsequent
filter and `sort.Strings(paths)`.