Check the exact publication record filename before writing

This commit is contained in:
2026-11-02 22:17:59 +00:00
parent 0d19a5546f
commit d2b1329095
3 changed files with 57 additions and 12 deletions

View File

@@ -60,6 +60,11 @@ successful publication.
## R02: Validate the filename that will actually be written — P2
**Completed:** Each generated filename is checked before that exact path is
created, including collision retries. Deterministic selective-ignore tests passed
and confirm that rejected writes leave the candidate clean and existing records
unchanged.
**Relevant code:** `internal/publish/record.go:68`, `record.go:85`, and
`record.go:134`; the pre-push save in `internal/publish/publish.go`.