Asymptotically fault-tolerant programmable photonics