https://www.tshottle.com/the-warriors-apprentice-by-lois-mcmaster-bujold/
The Warrior's Apprentice by Lois McMaster Bujold