A House Divided A House DividedDocumentation
↵
Changelog
Game Design/Government & Executive

Parliamentary Government

Last updated 2026-10-29
Source files

Summary#

Government formation, head-of-government appointment votes, post-election Confidence Motions, Votes of No Confidence (VONC) and the legislation freeze. It applies wherever isParliamentarySystem(config) is true (): parliamentaryMonarchy, parliamentaryRepublic and onePartyState. That covers the UK, Japan, Germany, Ireland and the one-party countries that seat a head of government through the shared path. A pending government freezes legislation; a sitting government can be removed by a VONC or by losing a post-election confidence motion; a country stuck without a head of government for 96 turns is sent to an automatic snap election.

Player guide: Government Formation

Rules#

Constant or rule Value Source
PM appointment vote, confidence motion and VONC duration 24 turns (PM_VOTE_DURATION_HOURS, one turn is one game hour)
PM vacancy deadline (orphaned-PM safety net, re-armed on every vacate) 96 turns (PM_VACANCY_DEADLINE_TURNS)
Cooldown between no-confidence votes 48 turns (NO_CONFIDENCE_COOLDOWN_TURNS), measured from the last vote's turnProposed
Chamber majority threshold floor(totalSeats / 2) + 1 (lowerChamberMajorityThreshold)
Minimum seats to nominate (minority bid) ceil(lowerChamberSeats * 0.1538), so 100 of 650 and 72 of 465 (MINORITY_SEAT_FRACTION); at or above the majority threshold the bid is majority
Vote closes when currentTurn >= closesOnTurn; falls back to closesAt only for documents without closesOnTurn (isVoteClosed)
Tally Recomputed seat-weighted at resolution (computeParliamentaryGovernmentTally); the cached running counters are overwritten
Appointment vote passes when votesFor > votesAgainst (a tie seats nobody) resolveParliamentaryAppointmentVote
Confidence motion passes when votesFor >= votesAgainst (a tie, or an empty ballot, keeps the PM) resolveParliamentaryAppointmentVote
VONC carries when votesFor >= majorityThreshold of the whole chamber; abstentions and unvoted seats count for the government (noConfidenceMotionCarries)
VONC threshold fallbacks stored majorityThreshold, else floor(totalSeats / 2) + 1, else votesFor > votesAgainst when neither number exists noConfidenceMotionCarries
Freeze applies when isParliamentarySystem(config) and governmentFormations.status === "pending"
Freeze message "Government is in formation; legislation is frozen until a PM is seated" (LEGISLATION_FREEZE_MESSAGE)
Who may move a VONC the ruling-party tier only in one-party states (canTriggerNoConfidence)

The appointment rule and the VONC rule are deliberately different. A VONC removes a sitting government, so it needs a majority of the whole chamber, not a majority of whoever voted. The confidence motion is the inverse of an appointment: the incumbent stays unless nays strictly outnumber ayes. The asymmetry exists so that a tie, or a low turnout, never unseats a sitting government.

Confidence Motion#

When a lower-chamber general election resolves and the incumbent PM retained a lower-chamber seat, openConfidenceMotionForIncumbent files a pmAppointmentVotes document with isConfidenceMotion: true, the incumbent as nominee, and a 24 turn window. The PM stays in office (status stays "formed") while it runs. Vote resolution:

VONC-parallel PM nominations#

PM appointment votes can be filed when status === "pending", or when status === "formed" and an active noConfidenceVotes document exists for the country. proposePmAppointment () returns a 400 only when neither is true. Nomination needs an eligible party chair or coalition chair (checkAppointmentEligibility) and is serialized by a 30 second lock on the formation document.

Legislation freeze#

While governmentFormations.status === "pending" for a parliamentary country, legislation is frozen. The shared rule is isLegislationFrozen(db, countryId); the HTTP wrapper is checkLegislationFreeze in , which returns a 400 with the freeze message.

Government confidence gauge#

A separate 0..100 gauge (confidenceGauge on the formation document) is ticked every turn for formed governments in every parliamentary country except the UK, which the phase skips (). Per-turn drift: at approval a >= 50 it recovers ((a - 50) / 50) * 5; below 50 it erodes ((50 - a) / 50) * 2 * erosionScale, where erosionScale = clamp(turnsInOffice / rampTurns, 0, 1). Event hits include lostVonc 40, budgetDefeat 60, lostKeyVote 15, ministerFired 8 and ministerResigned 12 (). Automatic dissolution at 0 is off unless the UK_CONFIDENCE_GAUGE_DISSOLUTION environment variable is 1. See uk-pm-no-confidence.md.

Data#

Collection Key fields Player visible
governmentFormations (_id is the CountryId) status (pending, formed, collapsed), pmCharacterId, pmNppId, pmName, governingPartyId, coalitionId, coalitionPartyIds, confidenceAbstentionPartyIds, formationType, cycle, seatsByParty, totalSeats, majorityThreshold, totalSeatsSupporting, lostMajority, activeVoteId, pmVacancyDeadlineTurn, snapElectionsUsed, lastSnapElectionTurn, collapsedAt, formedAt, formedTurn, confidenceGauge, confidenceGaugeHistory PM, status, seat counts and governing party are shown; locks and counters are not
pmAppointmentVotes nomineeCharacterId, nomineeNppId, nomineeMode, nomineePartyId, nominatedByCharacterId, coalitionPartyIds, votes, votesFor, votesAgainst, isConfidenceMotion, office (headOfState for ceremonial seats), status, closesOnTurn, closesAt, openedAt, closedAt Yes
noConfidenceVotes proposedByCharacterId, targetPmCharacterId, votes, votesFor, votesAgainst, status, closesOnTurn, turnProposed Yes
electedOfficials read for seat tallies and the incumbent-seat check Yes
cabinetMembers, ukCabinetCooldowns deleted on every vacate Yes
characters, npps currentOffice cleared for the head-of-government office on vacate Yes
governmentApprovals read by the confidence gauge Yes
gameState currentTurn read for deadlines No

Types are in .

Configuration#

Setting Default Where set
governmentType per country (type in countriesCore.ts); runtime value on countryState
confidenceVoteMechanism true for parliamentary monarchy and republic, false for presidential and onePartyState CONFIDENCE_VOTE_MECHANISM_DEFAULTS_BY_GOVERNMENT_TYPE in ; per-country override in countries.ts
snapElectionsAllowed true for parliamentary types, false for presidential and onePartyState SNAP_ELECTIONS_ALLOWED_DEFAULTS_BY_GOVERNMENT_TYPE in countriesCore.ts
skipWhenGovPending true on the configured-country, UK and JP bill lifecycles the bill lifecycle config files listed above
UK_CONFIDENCE_GAUGE_DISSOLUTION unset (off) environment variable read by isConfidenceDissolutionEnabled in
Era preset selects which country set and configs are parliamentary getParliamentaryCountryIds(preset) in

Consequence: one-party states count as parliamentary for the freeze and for the seat and vote phases, but with the defaults above they get no post-election confidence motion and no automatic snap election.

Timing#

Turn phase order from :

billLifecycle            (reads the freeze status left by the previous turn)
...
electionResolution       -> runPostElectionGovernmentPhases
leadershipVacate
parliamentaryGovernmentFormation
russianCouncilComposition / russianAssemblyCampaigns
parliamentaryGovernmentPhases      (per country: seats, votes, NPP auto-aye, NPP PM, ruling party sync)
parliamentaryGovernmentConfidence  (confidence gauge tick, every parliamentary country except UK)
parliamentaryVacancyWatcher        (auto-snap when the 96 turn deadline has passed)
postConversionElections
perpetualElections

Worked trace#

A 100 seat lower chamber, so the majority threshold is floor(100 / 2) + 1 = 51.

  1. A VONC is filed on turn 1000. closesOnTurn = 1000 + 24 = 1024. The last VONC in that country was proposed on turn 960, so 1000 - 960 = 40 < 48 and the filing is refused with "8 more turns". Filed instead on turn 1008 it is accepted (48 >= 48), closesOnTurn = 1032.
  2. At turn 1032 the tally is 48 ayes, 20 nays, 32 seats unvoted. 48 >= 51 is false, so the motion does not carry even though ayes outnumber nays. The PM survives, activeVoteId is cleared, any open appointment votes are cancelled and their nominees notified.
  3. Had it been a post-election confidence motion with 40 ayes and 40 nays, 40 >= 40 passes and the PM stays. As an appointment vote, 40 to 40 fails because 40 > 40 is false.
  4. If instead a post-election confidence motion closing on turn 1032 fails 30 to 45 with no alternative passed, unformGovernmentAndVacatePM stores status: "pending", pmCharacterId: null, formedTurn: null, and pmVacancyDeadlineTurn = 1032 + 96 = 1128. Legislation is frozen from that moment.
  5. If nobody is seated by turn 1128, the vacancy watcher triggers an auto snap election with bypassLimits: true, if the country supports snap elections.

Edge cases and limits#

Invariants#

Failure and recovery#

Connections#

Driven by:

Affects:

Related: snap-elections.md, uk-pm-no-confidence.md, bills-legislation.md.

Tests#

Gaps: no test for the VONC-parallel nomination window, none for the NPP confidence motion, and none that checks every freeze route is gated.

Known issues and history#

Last checked: 2026-10-29, version 1.18.0

Ask