Retain discovered publication records when enumeration fails

This commit is contained in:
2026-11-02 22:41:18 +00:00
parent cd274512e7
commit 363f7cd513
7 changed files with 123 additions and 8 deletions

View File

@@ -1,7 +1,12 @@
# Publication reconciliation remediation
Status: open findings from review of commits `4dff808` through `599ad81`,
against planning baseline `447b42a`.
Status: complete. R01–R13 are addressed and individually verified. The full
offline suite (`go test ./...`) and compiled facade/dependency checks
(`go run ./internal/apicheck`) passed with Go 1.26.8 after remediation.
The findings describe commits `4dff808` through `599ad81`, against planning
baseline `447b42a`. Audit evidence and defect descriptions below refer to that
reviewed baseline; each completion marker records the implemented correction.
The [feature roadmap](publication-reconciliation.md) defines the requested
behavior; the [implementation plan](implementation.md) supplies the intended
@@ -538,6 +543,12 @@ caps or public input restrictions are needed.
## R13: Retain entries returned with a directory-enumeration error — P2
**Completed:** Discovery loads returned record paths before reporting enumeration
failure. Fault-injected entries-plus-error and zero-entry tests passed, preserving
readable records, per-record diagnostics, ordering, and the original cause.
Facade conversion and CLI human/JSON tests confirm partial results survive with
a non-success status. The full offline suite and API/dependency checks passed.
**Relevant code:** `internal/publish/attempts.go:41` through its immediate error
return at lines 42–44; Stage 5's partial-result requirement in the implementation
plan.