its based on whether you tell the nobles about the assassination attempt! i told them and kept getting her killed, but when i finally thought of changing it i got the good outcome
okay, i believe i might have been mistaken, because when i went back to try it again i facedthe same problemsyou did. so sorry about the misinformation, i think i might have assumed the middle outcome was the best one, seeing as i asked this question before and got largely the same answer.