Phase-based resonant clustering on a finite chain: a reproducible computational benchmark

Can a simple phase-based update rule drive random energies toward discrete resonant levels on a finite chain?