The Seventeenth Amendment provides that each state shall have two senators, elected through popular elections. But what if a vacancy arises through death, resignation, or expulsion? The Seventeenth Amendment provides a two-part process. First, "When vacancies happen in the representation of any State in the Senate, the executive authority of such State shall issue writs of election to fill such vacancies." And what happens before that election is held? Second, "the legislature of any State may empower the executive thereof to make temporary appointments until the people fill the vacancies by election as the legislature may direct."
It is clear enough that a state legislature is not required to allow a Governor (that is, the "executive") to make a temporary appointment. According to Pew Research, forty-six states have granted such authority. Once the state legislature vests the Governor with that power, can the state legislature constrain the Governor's selection? Again, according to Pew, eleven of those states impose certain constraints on the selection. Specifically, the Governor must select a nominee from the previous senator's political party. This approach makes sense from a pragmatic perspective. If the people elected a Republican/Democrat Senator for a six-year term, the people should be represented by a Republican/Democrat during a temporary vacancy.
Kentucky is one such state. Senate Bill 228 establishes an intricate framework for how a Senate vacancy can be filled: