A House Divided A House DividedDocumentation
↵
Changelog
Game Design/Elections & Campaigns

Vacancy Handling

Last updated 2026-10-29
Source files

Summary#

When elected officials resign, retire, die or are removed from office, their seats are filled in one of three ways: by gubernatorial appointment (US Senate), by an off-calendar by-election (US and Russian Governors, UK Commons), or by waiting for the next regular election (US House, US State Senate and other offices).

Time units: one turn is one real hour and 48 turns make one game year (MS_PER_TURN, TURNS_PER_YEAR in ). A 24-turn window is half a game year, or 24 real hours.

Player guide: no dedicated player page covers vacancies yet. The nearest player-facing pages are Election Mechanics (cycles) and Reference: Offices (what each office does).

Rules#

Vacancy types by office#

Office How it is filled Duration Source
US Senate Governor appoints a replacement (player character or NPP) Until the next election of that Senate class
US House Seat stays vacant, no by-election Until the next regular House election (2 game years, 96 turns, at most) (House deferred)
US Governor and RU regional First Secretary Special election special_governor 24-turn filing and primary window, then a 24-turn general
US State Senate Seat stays vacant Until the next regular State Senate election (4 game years, 192 turns, at most) (deferred)
UK Commons Special election special_commons over the vacated seat only 24-turn filing window, then a 24-turn general

House and State Senate seats are elected as a whole state delegation in one race, so a single-seat by-election needs a per-district design that does not exist yet. German list-seat promotion is also deferred.

Constants#

Constant Value Source
SPECIAL_GOVERNOR_FILING_TURNS 24
SPECIAL_GOVERNOR_GENERAL_TURNS 24
BY_ELECTION_RETRY_COOLDOWN_TURNS 48
BY_ELECTION_COUNTRIES US, RU
COMMONS_BY_ELECTION_FILING_TURNS 24
COMMONS_BY_ELECTION_GENERAL_TURNS 24
COMMONS_BY_ELECTION_RETRY_COOLDOWN_TURNS 48
RECALL_INFAMY_THRESHOLD 70 (opens a recall petition at once)
RECALL_LOW_APPROVAL_LINE and RECALL_SUSTAINED_TURNS favorability 25 or lower for 4 consecutive turns
RECALL_SIGNATURES_REQUIRED 5 player signatures open a petition from a watch
RECALL_PETITION_OPEN_TURNS 12 turns collecting signatures
Appointment deadline none, the seat can be filled at any time while vacant
Fallback appointment term 6 years from now, used only when no election of that class is scheduled
Resign endpoint rate limit 10 requests per 60 seconds per user

Senate vacancies (US only)#

A Senate seat becomes vacant when the senator resigns, is removed by an admin, or retires. notifyGovernorOfSenateVacancy () sends the sitting governor, if a player character holds the office, the notification "A Senate seat in [State] (Class [N]) has become vacant. You may appoint a replacement."

Appointment (POST /api/governors/appoint-senator, appointSenator):

  1. The caller must hold the governor office in the US and the state must have a Senate seat of that class (US_SENATE_2020).
  2. The seat must be empty (no character and no NPP in it).
  3. The appointee is a player character or an NPP. They must have homeState equal to the governor's state, must not already hold an elected office or currentOffice, an NPP must not be retired, and a character must belong to a player. There is no party requirement.
  4. The seat record is created or refilled with isAppointment: true, appointedBy: <governor character>, senateClass, and termEnds set to the end time of the next election for that state and class, or six years out if none is scheduled.
  5. The appointee's currentOffice is set, an office-transition record is written, and both appointee and governor are notified.

GET /api/governors/eligible-appointees?senateClass=1|2|3 lists the candidates (same state, no current office, player characters and NPPs).

The appointee serves until the next election for that Senate class. There are no special elections for the Senate: voters get no say until the regular class election. This avoids mid-cycle election spam.

Example. A Class 1 senator is elected in game year 2020 (turn 0) with a term ending in 2026 (turn 288). In game year 2022 (turn 110) the senator resigns and the governor appoints a replacement. The appointee serves 178 turns, about 3.7 game years, until the Class 1 election completes at turn 288.

Fields (): isAppointment?: boolean and appointedBy?: ObjectId on ElectedOfficial; termEnds is the term end date.

House and State Senate vacancies#

The seat stays vacant with no appointment and no special election. It fills only when the next regular election completes (every 2 game years for the House, every 4 for the State Senate). While vacant the chamber's total seat count drops (the House below 435), party seat counts fall, and the state delegation is smaller.

Example. A House member resigns 16 game months into a 24-month term; the seat stays empty for the remaining 8 game months (32 turns) until the regular House election.

Governor vacancies (US and Russia)#

When a governor resigns, retires, dies or is removed mid-term, processByElectionWatcher spawns a special_governor election (spawnGovernorByElection):

Suppressed when: a live regular governor race will resolve before a by-election spawned now could (regularRaceFillsSeatFirst: its endTurn is within 48 turns), a special is already live, or a special resolved within the last 48 turns (so an uncontested seat does not respawn a race every turn).

Impact: while the seat is empty the state has no governor, so no executive powers are available, including appointing senators.

UK MP (Commons) vacancies#

When an MP dies, retires, resigns, defects, is recalled or is removed, the seat is recorded as a durable vacancy (UkCommonsVacancy, reasons death, retirement, defection, resignation, recall, removal; ). The holder-less commons record is kept as the anchor.

Suppressed when: a live special_commons already covers the region, a regular or snap general will resolve before a by-election could (commonsByElectionGate), or a special resolved within the last 48 turns. A snap dissolution cancels live specials, and a general that resolves after a vacancy was scheduled marks that vacancy subsumed rather than filled.

Impact: the Commons can sit below 650 seats while seats await a by-election, party seat counts drop, and confidence votes can be affected (fewer MPs voting). See United Kingdom and UK Elections.

Resignation#

Two code paths exist.

An admin removal uses the same endpoint with admin auth and has the same effect.

Data#

Collection Use Fields
electedOfficials the seat; vacancy is a holder-less record isAppointment, appointedBy, senateClass, termEnds ()
ukCommonsVacancies durable UK vacancy record countryId, state, officialId, seats, reason, vacatedTurn, vacatedAt, status (open, scheduled, filled, subsumed), electionId ()
ukRecallPetitions recall watch and petitions signatures, trigger, status
elections and races special_governor and special_commons races 48 hours each (24 primary, 24 general),
characters currentOffice set or cleared
office-transition records written on appointment and resignation
notifications governor and appointee messages

Player-visible: the race and results, notifications, empty seats in chamber counts, and a recall petition's progress. The vacancy bookkeeping documents are not shown directly.

Configuration#

Setting Default Set in
BY_ELECTION_COUNTRIES US, RU
Russia watcher gating runs only when the country is beta or active country status in byElections.ts
Founding period both watchers skipped while gameState.preIteration.active
By-election durations and cooldowns 24, 24, 48 (see Constants) byElections.ts, commonsRecallRules.ts
Recall thresholds infamy 70, favorability 25, 4 turns, 5 signatures, 12 turns commonsRecallRules.ts
Country-scoped election types special_governor, special_commons electionDurations.ts

No gameConfig field or era preset changes this system; the UK Commons seat map follows the era preset (see United Kingdom).

Timing#

All watchers run in the hourly turn (), in the election coverage group:

  1. perpetualElections, country election phases, leadership elections and staleCandidateCleanup run first.
  2. byElectionWatcher (processByElectionWatcher) runs next and reads the settled seat state.
  3. commonsByElectionWatcher runs immediately after, with a separate country scope (UK) and election type.
  4. Both are skipped while the world is in its founding period, since every seat is being elected and nothing is mid-term.

Within the Commons watcher the order is: backstop untracked holder-less records into vacancies, advance recall petitions, reconcile scheduled vacancies against finished races, then spawn new by-elections.

Senate appointment is not a turn event: it happens when the governor calls the API, at any time while the seat is empty.

Worked trace#

UK London, modern map (75 seats), one MP dies at turn 2000.

  1. The holder-less commons record is backstopped into a UkCommonsVacancy with reason: "death", seats: 1, status: "open", vacatedTurn: 2000.
  2. The Commons watcher checks the gate: no live special_commons for LON, no regular or snap general resolving first, no special resolved in the last 48 turns. It spawns one special_commons race and moves the vacancy to scheduled.
  3. Carve fraction: computeByElectionCarveFraction = 1 / 75 = 0.0133, clamped to 0-1. The regional electorate is scaled by 0.0133 with its group mix preserved.
  4. The race runs 24 turns of filing and primary (turns 2000 to 2024), then 24 turns of general (to 2048).
  5. The winner is seated as a plain Commons member and the vacancy moves to filled. The Commons is back to 650 seats.
  6. If nobody wins a seat, the seat stays vacant and the next by-election can spawn no earlier than turn 2048 + 48 = 2096.

Senate example (from Rules): resignation at turn 110, class term ends turn 288, so the appointee serves 288 - 110 = 178 turns, which is 178 / 48 = 3.7 game years.

Edge cases and limits#

Invariants#

Failure and recovery#

Connections#

Driven by:

Affects:

Related pages:

Tests#

Known issues and history#

Not built (deliberately excluded):

  1. Special elections for House and State Senate.
  2. Lieutenant Governor office with automatic succession.
  3. Death and mortality events that trigger vacancies.
  4. Chamber expulsion by a two-thirds vote.

Last checked: 2026-10-29, version 1.18.0

Ask