The write error still takes precedence; errors.Join carries the close
error alongside it instead of discarding it (CodeQL
go/unhandled-writable-file-close).
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Entire-Checkpoint: 01M6EBSKGD55A90C22HE0J5N0R