How can AI edit code without regenerating the entire program?

A technical guide to localized code regeneration, preservation boundaries, edit locality, constrained generation, and hierarchical discrete latent control.