In the finale of Game of Thrones, we see that
Samwell Tarly
is appointed Grand Maester, and given the accompanying position on the Small Council.
This person stole tomes from the Citadel, never completed a link in his chain, and is a member of the Night's Watch. Any one of these things could disqualify him from the role, and yet he is appointed nonetheless.
Are Grand Maesters not elected by the Citadel themselves? Is there any precedent for the King (or showrunners) directly appointing a GM, or any precedent for a non-Arch Maester becoming Grand Maester?
While it is unfortunately clear on this point that many of the traditions and laws of Westeros cannot hold a candle to a dramatic series of television, is there any canon explanation for how and why this person would receive this position?