What criteria is used for script Puzzle Solving success?

NT pair requirement y/n ???
Locked bases y/n ???
Stable sequence = yes.

Lib.fold(sequence)==targetShape

(I don’t know that it checks other constraints, but I haven’t checked in a while.)