What is happening
WAL segments encode ordered changes. Recovery can switch timelines after promotion, but history files identify ancestry; a later segment cannot substitute for a missing earlier one, and another server's similarly named file may belong to a different system.