Carve one already-tested seam out of the monolith with agent help, then run it safely behind the code it replaces.