A snippet of a scene near the end wanted itself written. It appears that Miley attracts the attention of the king, who grants her independent "personhood" after having lived years as property. But Miley is going to have a separate, much lower-ranking love interest. So the king is rewarding Miley for some service she did, rather than because he wants her.
The question is, what did Miley do to be A) noticed by the king and B) rewarded with the rare honor of personhood to an "unfamilied" individual, which is done through adoption into the king's own family?
Perhaps the man she was sold to, a lesser noble, was plotting something against the king and Miley was able to disrupt the plot? (How was she able to "defeat" a noble with far more resources than she?) Perhaps she saved the life of someone dear to the king? (How would she be in a position to do that? Was it the abused girl that she rescues? Why could Miley save this person but the king could not?) Any other ideas out there?
Update, 1 AM: I'm going with the "foils a plot against the king" route after talking it through with Jerry.