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

Constitutional Convention

Last updated 2026-10-29
Source files

The constitutional convention is the voluntary exit path from one-party rule, a player-initiated alternative to the forced Stage-4 collapse conversion described in one-party-states-as-shipped.md. A sitting leader announces a convention, negotiates a draft (target system, legacy-party seat reservation, election delay), and, if the draft is submitted in time, the regime converts to a parliamentary or presidential republic on a schedule the player chose rather than one collapse imposed.

Location: . Shared limits live in .

Summary#

A convention is a small three-phase state machine (announced, draft, ratification) stored on the country's regime-escalation document. Announcing costs the party apparatus and pleases the public, and freezes the Stage-4 collapse counter. The leader has 48 turns to lock a draft. With a draft, the country converts 12, 24 or 48 turns after that deadline and a snap election runs with the former ruling party's seat floor applied. Without a draft, the convention dissolves and nothing converts.

Player guide: One-Party States (the "Constitutional convention and forced conversion" section; there is no standalone convention page yet).

Rules#

Constants#

Constant Value Source
CONVENTION_DRAFT_PHASE_TURNS 48 turns from announcement to draft deadline
CONVENTION_ELECTION_DELAYS 12, 24 or 48 turns after the draft deadline
CONVENTION_LEGACY_RESERVATION_MAX 35 (percent, minimum 0)
Default legacy reservation 20 (legacyReservationDefault ?? 20; DD, RU, CN set 20) conventionDraftDefaults in , src/lib/countries/<id>/institutionsFacts.ts
Default election delay 24 (electionDelayDefault ?? 24; DD, RU, CN set 24) same
ANNOUNCE_POPULAR_BUMP +15 popular legitimacy (clamped 0..100) , MAX_POPULAR_LEGITIMACY in
ANNOUNCE_INTRA_COST -10 ruling-party confidence (clamped 0..95) , MAX_CONFIDENCE in
FORCED_LEGACY_RESERVATION (forced path, for contrast) 5 (3 when halved by a Stage-4 delay)
FORCED_ELECTION_DELAY_TURNS (forced path, for contrast) 12
FORCED_VOTE_SHARE_PENALTY (forced path only, for contrast) -0.2

Who can act: only the sitting head of government (isSittingLeader), through POST /api/country/[code]/convention/announce and .../convention/draft. Both return 403 for anyone else. Announce returns 409 for collapse stage or a convention already running. Draft returns 409 for no convention or the wrong phase, and 400 for an invalid target, reservation or delay.

Both the convention path and the forced Stage-4 path share the same conversion implementation (triggerSystemConversion in systemConversion.ts), differing only in path: "voluntary" vs "forced" and in how the terms (legacy reservation, election delay, vote-share penalty) are set.

Three phases#

The convention is stored under a convention field on the country's regime-escalation document (getRegimeEscalationCollection).

1. announced#

announceConvention(db, countryId, leaderCharacterId, currentTurn), player-initiated.

Pre-conditions (throws otherwise):

Effects:

2. draft#

submitConventionDraft(db, countryId, draft, currentTurn) locks the convention's terms and advances announced -> draft.

Input (ConventionDraftInput):

Requires an in-progress convention in the "announced" phase; throws if there is no convention or it is already past that phase.

3. ratification#

Not player-triggered, reached automatically by the per-turn tick once the draft phase deadline passes. At draftDeadlineTurn + electionDelayTurns the tick fires triggerSystemConversion(db, countryId, currentTurn, {targetSystem, legacyReservation, path: "voluntary", electionAtTurn: currentTurn}), which flips governmentType and writes the snap-election marker. The convention field is then cleared and conventionInProgress reset to false.

Per-turn auto-transitions (tickConventionPhase)#

Called from processRegimeEscalationTurn, before the dwell update (so conventionInProgress is correct for that tick):

What conversion does#

triggerSystemConversion ():

  1. updateCountryState: governmentType = targetSystem, opsVoteMultipliers = null, hasLeaderConfidenceModel = false (this switches off the per-turn leader legitimacy and confidence drivers).
  2. clearAllRegimeStatusForCountry: every party's regime status is wiped.
  3. Country-history regime_escalation event, subtype conversion.
  4. bootstrapNewSystem () writes countryState.pendingPostConversionElection = {atTurn, legacyReservation, formerRulingPartyId, forcedVoteSharePenalty, path}, capturing rulingPartyId before it is cleared.

processPostConversionElections () finds every country whose marker atTurn <= currentTurn, calls triggerSnapElection with reason: "regime-change" and bypassLimits: true, passes the terms as conversionTerms (only when formerRulingPartyId is set), then clears the marker whether or not the snap succeeded.

General resolution applies the terms through src/lib/turn/election/conversionTerms.ts:

Data#

Collection Field Written by Player-visible
regimeEscalation (_id = country id) convention.phase, announcedAtTurn, draftDeadlineTurn, targetSystem, legacyReservation, electionDelayTurns announceConvention, submitConventionDraft, tickConventionPhase Yes, to the leader, via GET /api/country/[code]/regime/leader (convention, conventionInProgress, conventionDraftOptions)
regimeEscalation conventionInProgress same Yes (same endpoint)
countryLeaderStates popularLegitimacy, partyConfidence and their history entries adjustPopularLegitimacy, adjustLeaderConfidence Yes, in the leader panel
countryState governmentType, opsVoteMultipliers, hasLeaderConfidenceModel, pendingPostConversionElection triggerSystemConversion, bootstrapNewSystem, cleared by processPostConversionElections Government type yes; the marker is internal
country history regime_escalation events (subtypes convention with phases announced, draft, abandoned, and conversion) recordCountryEvent Yes, in the country history feed
party documents regimeStatus cleared clearAllRegimeStatusForCountry Yes (party tier)
elections conversionTerms stamped on the snap races triggerSnapElection Results only

ConventionState.ratifiedAtTurn exists in but nothing writes it.

Configuration#

Setting Default Where set
collapseTargetSystem unset (no convention possible without it or an allowlist) type; DD, RU, CN set parliamentaryRepublic in src/lib/countries/<id>/institutionsFacts.ts
collapseTargetAllowlist [collapseTargetSystem] CN and RU set ["parliamentaryRepublic", "presidential"]; DD sets none, so DD may only draft parliamentaryRepublic
legacyReservationDefault 20 DD, RU, CN set 20; fallback in conventionDraftDefaults
electionDelayDefault 24 DD, RU, CN set 24; fallback in conventionDraftDefaults
hasLeaderConfidenceModel per country true for DD, RU, CN; set to false by conversion

There are no gameConfig fields and no era or scenario overrides for the convention. The draft limits (48 turns, 12/24/48, 35 percent) are code constants, not configurable.

Timing#

player:   announce ---------- draft (any time before deadline) ----------------------
tick:     announced --------- draft ----------- ratification ------------ conversion
turn:     T                                     T+48 (deadline)           T+48+delay
effects:  +15 / -10,                            phase -> ratification     governmentType flips,
          dwell frozen                                                    marker written
turn phases (same or next turn after conversion):
  country lifecycle (tick, conversion) -> postConversionElections (snap election opens)
  -> electionResolution later applies legacy seat floor

Worked trace#

A leader of CN announces on turn 1000 with popular legitimacy 75 and ruling-party confidence 75.

  1. Announce: popular clampPopular(75 + 15) = 90; confidence clampConfidence(75 - 10) = 65. draftDeadlineTurn = 1000 + 48 = 1048. Defaults 20 percent and 24 turns are stored. conventionInProgress = true.
  2. Turn 1020: leader submits {targetSystem: "parliamentaryRepublic", legacyReservation: 25, electionDelayTurns: 24}. Both are valid for CN (allowlist includes it; 25 is in 0..35; 24 is allowed). Phase becomes draft.
  3. Turn 1048: 1048 >= 1048, phase becomes ratification.
  4. Turn 1072: electionTurn = 1048 + 24 = 1072, 1072 >= 1072, conversion fires: governmentType = "parliamentaryRepublic", marker {atTurn: 1072, legacyReservation: 25, formerRulingPartyId, path: "voluntary"}. Convention cleared, conventionInProgress = false.
  5. postConversionElections (turn 1072): marker atTurn 1072 <= 1072, snap election opens with legacyReservationPct: 25 and no vote-share penalty; marker cleared.
  6. Resolution of a 12-seat region where the former ruling party stood candidates but won 1 seat: floorSeats = min(12, round(12 * 25 / 100)) = 3. It holds 1, so 2 seats move, one at a time, from the other party's winner with the most seats. It ends with 3.
turn 1000: announce            (+15 legitimacy, -10 confidence, dwell frozen)
turn 1020: draft submitted     (phase: draft)
turn 1048: draft deadline      (phase: ratification)
turn 1072: conversion + snap-election marker (deadline + 24)

Had no draft been submitted by turn 1048, the convention would have dissolved with no conversion, the +15 and -10 would have stayed, and the Stage-4 dwell counter would have resumed.

Edge cases and limits#

Invariants#

Failure and recovery#

Connections#

Driven by:

Affects:

Related code: (shared conversion, triggerSystemConversion) and (per-turn driver).

Tests#

Gaps: no single test runs announce, draft, tick, conversion, marker, snap election and seat floor together; the clamp interaction on the announce deltas is not tested.

Known issues and history#

Design notes#

Last checked: 2026-10-29, version 1.18.0

Ask