I'd go for option 3 cuz I"m feeling a lack of creativity to wonder how Masako got there to start with. She wasl ikely just a travelling bard. Or she's rather slippery withe scaping given her magical ability and spells.