A batch append whose pwrite lands every record and then reports an error
leaves nextLSN and the head unchanged. The next write reuses the batch's
first LSN and offset; the batch's second record (a higher LSN) stays past
it. After that write's Sync is acknowledged and the process crashes,
recovery republishes the failed batch's stale record over the acked write.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>