A Chance-Constrained Generative Framework for Sequence Optimization