Unified mechanism of charge-density-wave and high-Tc superconductivity protected from oxygen vacancies in bilayer nickelates | Synapse