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

One-Party States (as shipped)

Last updated 2026-10-29
Player wikiOne-Party States
Source files

Summary#

Twelve countries run as one-party states: CN, RU, DD, PL, CS, HU, RO, BG, YU, UKR, BLR and BAL. In those countries one party rules by right, other parties are tolerated or banned rather than competitive, and the head of government answers to the party rather than to the electorate. Two scalars drive everything: ruling-party confidence in the leader, and popular legitimacy. When they fall far enough the regime walks a four-stage escalation chain that can end in the country converting to a parliamentary republic, and the escalation chain never reverses on its own. Where the command-economy flag is on, the same countries also run a planned economy with administered prices, a wage-fund throttle on cash, and a monetary overhang that feeds back into political legitimacy.

Player guide: One-Party States

Scope note: the seed marks all twelve countries onePartyState, but the leader-confidence model flag is on only for CN, RU and DD (see Configuration), the popular-mood profile exists for nine of them, and the forced conversion target and the faction split exist only for CN, RU and DD. Rules below say which part applies to which set.

Rules#

Which countries, and what runs for them#

governmentType: "onePartyState" is set on twelve entries in the country seed (; the type itself is in ). The runtime value lives on the countryState collection, not in config, so a country that converts mid-game stops behaving as a one-party state on the very next turn.

Each country registers a per-turn bill-lifecycle binding in : processCNBillLifecycle, processDDBillLifecycle, then PL, CS, HU, RO, BG, YU, UKR, BLR, BAL. RU is re-exported from . They all end in processOnePartyBillLifecycleForCountry(countryId, now), which re-reads governmentType from countryState and returns immediately if the country is no longer one-party.

Most of these legislatures are unicameral: a bill passes the single chamber by the cast-votes majority rule and enacts with no assent delay. RU is the exception. Its Supreme Soviet is bicameral (legislature.bicameral plus upperElectionSystem), so a bill must clear both chambers and a second-chamber rejection kills it outright, because a one-party state has no override chamber. The union republics (UKR, BLR, BAL) are unicameral: their Presidium is a standing organ of the same chamber, not a second house.

What a player sees in the executive hub#

Every one-party country renders the shared OnePartyExecutiveHub at /country/[code]/executive (). The per-country copy comes from , which carries bespoke surfaces for CN, RU and DD and derives a complete surface from COUNTRY_CONFIGS for the rest, so adding a one-party country needs no new hub.

The head-of-state seat is filled per headOfStateSelection (): "partyChairSync" reconciles it to the ruling party's chair every turn, "legislatureAppointment" seats it through a chamber vote mirroring the premier flow. The hub also carries a Ruling-Party Confidence panel and, in RegimeHealthTab.tsx beside it, the regime stage, dwell counters, active decision and convention state.

The two scalars#

Constant Value Source
INITIAL_CONFIDENCE 75
MIN_CONFIDENCE / MAX_CONFIDENCE 0 / 95 same
RENEWAL_BUMP +5 on leader renewal (+2 after the constitutional amendment) same
MAX_HISTORY_ENTRIES 50 confidence history rows same
Confidence bands 80+ secure, 65+ stable, 50+ watchful, 35+ strained, 20+ crisis, below 20 critical same
INITIAL_POPULAR_LEGITIMACY 75
MIN_POPULAR_LEGITIMACY / MAX_POPULAR_LEGITIMACY 0 / 100 same
MAX_POPULAR_HISTORY_ENTRIES 50 same
POPULAR_RECOVERY_TARGET / POPULAR_RECOVERY_RATE 60 / 0.1 per turn same
POPULAR_BANDS (shown to players) 75+ strong, 36+ discontent, 16+ crisis, below 16 collapsing same

Natural recovery moves popular legitimacy by (60 - popular) * 0.1 each turn, which is negative above 60. The other drift inputs (economy, repression, policy alignment, election credibility, purges, enacted bills) are in and ; the confidence side is in and ruling-party-confidence.md.

Purges#

Purges are simulation events, not data deletions. POST /api/admin/country/[code]/ruling-party-purge inserts one row into rulingPartyPurgeEvents with a severity, a reason and an optional target count. The route rejects any country that is not a one-party state.

Confidence deltas, from PURGE_SEVERITY_DELTA in :

Severity Confidence delta
minor -2
regional -4
senior -7
faction -10
extreme -15

Purges also carry a kind (discipline, anticorruption, faction, ideological) written by recordPurgeEvent in . The popular driver treats anticorruption as a public benefit rather than repression. Unprocessed purges are folded into both drifts and marked processed: true only once a leader exists to absorb them, so a purge backlog inherited by the first premier is never lost or double-counted.

Escalation: four stages#

The state machine is defined in (one document per country, _id === countryId) and the pure math in . Stages: stable, discontent, crisis, internalChallenge, collapse. It is forward-only: raw scalar recovery never regresses a stage, only an explicit decision does, which stops a country from oscillating every turn around a threshold.

STAGE_THRESHOLDS in :

Stage Entry condition Dwell
1 discontent popular <= 60 stage1 counter reaches 12
2 crisis popular <= 35 stage2.sustained reaches 36, or stage2.cumulativeIn168 reaches 48 (window 168)
3 internal challenge party confidence strictly < 15 stage3 counter reaches 24
4 collapse popular strictly < 15, current stage must be internalChallenge stage4 counter reaches 72

Counter rules (updateDwellCounters):

Decisions#

Each stage transition offers the leader one decision (, handlers in src/lib/onePartyState/decisionEvents/). Only one decision is active at a time; further ones sit in a passive queue and promote on resolution. DECISION_TIMEOUT_TURNS = 48: if the leader does nothing, the stage's default option fires automatically.

Stage 1, stage1.addressDiscontent (default ignore):

Stage 2, stage2.respondToUnrest (default ignore):

Stage 3, stage3.respondToFactionSplit (default ignore):

Stage 4, stage4.faceCollapse (default acceptPeacefully):

Faction split#

Entering Stage 3 fires fireFactionSplit (). It picks max(3, ceil(15% of ruling-party officials)) defectors by divergence score, spawns a new approved party under the country's factionDefectionName (CN: "Democratic Faction of the CCP"; RU: "Reformist Faction of the CPSU"; DD: "Reform Wing of the SED"; all in each country's institutionsFacts.ts) seeded from the defectors' own axis positions, not the ruling party's, and reassigns each defector's party field. Only character-held seats defect; NPP-held seats have a null characterId and are skipped. The split no-ops when the country has no factionDefectionName, no ruling party, or no officials.

Who actually leaves is decided in , two pure (DB-free) kernels:

The defector count is then taken by highest cohesion-adjusted divergence, ties broken by input order. factionCentreOfGravity averages the defectors' own axis positions (rounded to 0.1, falling back to the ruling party's line only when no defector has a recorded position) to seed the new party's ideology, so the breakaway faction is ideologically distinct from the party it left rather than a renamed copy of it.

Liberalization reforms#

Five actions in are available to the ruling-party leader at any time while the country is still one-party. Each trades intra-party confidence for public standing, and most leave a per-turn popular boost with a hard expiry. Cooldowns live on countryState.reformCooldowns ().

Action Confidence Popular Per-turn boost Cooldown
Legalize a banned party -6 +8 +0.2 for 120 t 168 turns, per party id
Reduce vote multipliers -4 +4 +0.15 for 96 t 240 turns
Honest by-election -3 +5 none 96 turns
Anti-corruption purge -2 +3 none 72 turns
Constitutional amendment -8 +12 +0.3 for 240 t one time only

The anti-corruption purge records a minor anticorruption purge event rather than deleting anything. The constitutional amendment is permanent in a second way: it writes renewalBumpOverride: 2 (CONSTITUTIONAL_AMENDMENT_RENEWAL_BUMP), so every future leader renewal in that country grants +2 confidence instead of +5. Stage 1's acknowledge option halves the next action's confidence cost, and the discount is consumed on use.

Elections, vote multipliers and NPPs#

Elections still run in one-party states, but they are weighted. resolveRegimeMultiplier in reads countryState.opsVoteMultipliers, defaulting to DEFAULT_OPS_VOTE_MULTIPLIERS ():

Tier Multiplier
ruling 3.0
approved 0.375
independent 0.0
banned 0.0

Independents (no party document) are weighted like banned parties. The same module holds the hard gates:

Reduce vote multipliers steps the ruling weight down one rung of RULING_MULTIPLIER_LADDER in : 3.0, 2.0, 1.5, 1.0, with 1.0 as the floor. Approved, independent and banned weights are untouched: the reform loosens ruling privilege, it does not enfranchise banned parties. Honest by-election writes a one-shot pendingHonestByElection: { atMultiplier: 1.0 }, which src/lib/electionEngine/candidateEnrichment.ts reads, applies as a flat override on every regime multiplier for that election, and then clears.

NPPs (the game's AI-run politicians) file, hold seats and are enriched with their own policy positions exactly as elsewhere. Two one-party specifics: an NPP-held seat carries a null characterId and therefore cannot defect in a faction split, and a banned party's NPP seat-holders have currentOffice cleared like any other holder. Most Eastern-bloc satellites are largely NPP-governed, so the NPP brain is what actually operates the planned economy there, using NPP_DEFAULT_REFORMISM = 0 and NPP_DEFAULT_INTERNAL_REPRESSION = 0.5 when no player directive exists (; the same file sets NPP_DEFAULT_CREDIT_AGGRESSIVENESS = 0.55 and NPP_DEFAULT_BUDGET_SOFTNESS = 0.85).

Banning and unbanning parties#

processBanPartyEffects () makes a party inert: it deletes every electedOfficials document for that party, clears currentOffice on the holders, clears autoRunForReelection so the auto-re-entry pass does not silently re-file them next turn, and flips the party document to regimeStatus: "banned" with bannedAt, bannedReason and bannedAtTurn. There is no by-election machinery in AHD, so vacated seats stay empty until the next regular cycle for that office. Unbanning flips the status back to approved and clears the audit fields; it does not restore any seats.

Constitutional convention: the voluntary exit#

runs three phases, with shared limits in .

  1. announced: player-initiated. Sets conventionInProgress: true (freezing the Stage 4 dwell counter), parks a draft deadline CONVENTION_DRAFT_PHASE_TURNS = 48 turns out, and applies ANNOUNCE_POPULAR_BUMP = +15 popular and ANNOUNCE_INTRA_COST = -10 confidence. Blocked if the country is already in collapse (that would race the forced path) or if a convention is already running. Defaults come from config: legacyReservationDefault (20 for CN, RU and DD) and electionDelayDefault (24).
  2. draft: locks in a targetSystem from collapseTargetAllowlist (CN and RU: parliamentaryRepublic or presidential; DD has only collapseTargetSystem: "parliamentaryRepublic"), a legacyReservation in 0..CONVENTION_LEGACY_RESERVATION_MAX = 35, and an electionDelayTurns from CONVENTION_ELECTION_DELAYS (12, 24 or 48). If the deadline passes, the tick advances to ratification anyway.
  3. ratification: at draftDeadlineTurn + electionDelayTurns the tick fires the conversion with path: "voluntary".

Conversion: one way out of the chain#

triggerSystemConversion in does four things: sets the new governmentType, nulls opsVoteMultipliers and sets hasLeaderConfidenceModel: false (which is what switches off the leader-confidence installation); clears regimeStatus on every party in the country (clearAllRegimeStatusForCountry in , which sets the field to null rather than unsetting it, so legacy readers still find a sentinel instead of undefined); writes a regime_escalation history event with subtype: "conversion"; and calls bootstrapNewSystem () to park the snap-election marker. No rows are deleted, so the history survives.

The forced path, checkForcedConversion, fires on either of two conditions: Stage 4's accept-peacefully set conversionPendingAtTurn and that turn has arrived, or the country has sat in collapse with no convention and any stage4Delay window has elapsed. It does nothing for a country with no collapseTargetSystem. Forced constants:

Constant Value Source
FORCED_LEGACY_RESERVATION 5 seats
Halved reservation 3 (FORCED_LEGACY_RESERVATION_HALVED) when a resist delay was recorded same
FORCED_VOTE_SHARE_PENALTY -0.2 on the former ruling party's first post-conversion election same
FORCED_ELECTION_DELAY_TURNS 12 same

Both paths are idempotent: the pending marker and the delay marker are cleared once consumed. bootstrapNewSystem writes pendingPostConversionElection on countryState with the target turn (atTurn), the legacy reservation, the former ruling party id (captured before the flip nulls it), the forced penalty and the path. The election engine consumes it ().

The reverse direction exists outside this chain: installOnePartyState () turns a country into a one-party state, restoring exactly what conversion clears. It is used by peace terms and by reunification, not by escalation.

Command economy#

Everything in this subsection is gated behind the commandEconomyEnabled GameConfig flag. The regime is a dial, not a switch. marketizationLevel runs 0 (fully command) to MARKET_LEVEL = 100, with bands at COMMAND_CEILING = 30 and DUAL_TRACK_CEILING = 70 (). Below 30 the country is fully command, 30 to 70 is dual-track (plan and market engines split by plannedShare), 70 and above runs the standard market engine.

MARKETIZATION_SCHEDULE () gives each country a trajectory; each level applies for years up to and including throughYear, then the country is fully market:

Country Steps
RU, UKR, BLR, BAL level 10 through 1991
CN 10 through 1978, 50 through 1992, 85 through 2018
DD 10 through 1990
PL 12 through 1989
HU 15 through 1989
CS 10 through 1989
BG 10 through 1990
RO 8 through 1989
YU 20 through 1964, 35 through 1990

The level is not read straight from the schedule. It is stored per country and drifts each turn (marketizationDrift plus a weak pull back to the schedule, marketizationGravity):

Offices: three player seats operate the planned economy, mapped in : RU and DD use chairman_of_gosplan plus gosbank_liaison; CN uses vice_premier plus pboc_governor. SOE directors are appointed per enterprise onto SoeState.directorId, not to a fixed cabinet seat. Authorization is in : the Gosbank chair or the head of government may drive state credit; the Gosplan planner or the head of government may drive the plan and appoint SOE directors; only the SOE's own director drives that SOE; and internal repression is set by the head of government or the Gosbank chair, never by the planner alone (it is a security call, not a planning one). Lever ranges are clamped server side: credit aggressiveness 0..1, budget softness 0..1, labour-versus-quality 0..1, internal repression 0..1.

Administered prices (): price = basePrice * (1 + markup) with DEFAULT_TURNOVER_MARKUP = 0.12, and no supply-and-demand response at all. The unmet demand at the held price is the shortage: demandSupplyGapPct = (demand - supply) / (supply + 1) * 100 when demand exceeds supply, else 0. Turnover tax revenue is basePrice * markup * suppliedUnits, the state's main indirect revenue. In a dual-track country dualTrackPrice = administered * w + market * (1 - w) with w = plannedShare clamped to 0..1. This branch runs only on the country-scoped national-price leg, never on the shared global leg, because an administered price leaking into the world price is the naira 100x incident class of bug.

Two-circuit money () models the Soviet split between enterprise non-cash money and household cash at the macro level as a wage-fund ceiling. With cap = realGoodsGrowth + WAGE_FUND_SLACK_PP (WAGE_FUND_SLACK_PP = 2), wageFundConstrainedGrowth returns the wage growth unchanged if it is at or under the cap, else wage - plannedShare * (wage - cap). It never raises wage growth. A tight wage fund is the primary brake on forced saving.

Overhang, shortage and the second economy ():

Constant Value
OVERHANG_DECAY 0.99 per turn (about a two-year horizon)
OVERHANG_CAP 100 ()
PLAN_SHORTFALL_GOODS_DEFICIT 20 (percentage points of annual goods deficit per unit of plan shortfall)
CREDIT_OVERHANG_SCALE 1.0
MAX_BLACK_MARKET_PREMIUM 2.0 (plus 200 percent over official)
MAX_SECOND_ECONOMY_SHARE 0.6 of activity
SECOND_ECONOMY_ADJUST 0.25 per turn toward target
TURNS_PER_YEAR 48 (, re-exported by turnTime.ts)

Formulas, with shortfall = max(0, 1 - planFulfillment):

The readouts land on FederalBudget.economicFactors as monetaryOverhang, shortageIndex, blackMarketPremium and secondEconomyShare, and the dashboard presenter () turns them into the marketization gauge alongside SOE plan fulfillment and the government's policy stance.

Politics and economics meet through the drift collectors in : shortages and economic performance feed popular legitimacy, repression intensity feeds it the other way, and the resulting number is what walks the regime up the escalation chain.

Data#

Collection Fields read or written Player visible
countryState (_id is the country id) governmentType, rulingPartyId, opsVoteMultipliers, hasLeaderConfidenceModel, reformCooldowns, pendingReformDiscount, popularBoostModifiers, renewalBumpOverride, pendingHonestByElection, pendingPostConversionElection Government type and ruling party yes; the rest are leader-only diagnostics or internal
countryLeaderStates (_id is ${countryId}_${leader}) partyConfidence, popularLegitimacy, confidenceHistory, startedAtTurn, lastRenewedAtTurn, renewalCount Band label to all; raw numbers to ruling-party leadership only
regimeEscalation (_id is the country id) currentStage, stageEnteredAtTurn, dwellCounters, conventionInProgress, convention, activeDecision, decisionQueue, transitionHistory, popularDecayModifier, stage2DwellDecayBoost, stage3Block, conversionPendingAtTurn, stage4Delay Stage and short description on the public overview; counters to leadership
rulingPartyPurgeEvents severity, kind, reason, turn, target count, processed No
politicalParties regimeStatus (ruling, approved, banned, or null after conversion), bannedAt, bannedReason, bannedAtTurn, sequentialId Tier badge yes
electedOfficials deleted for banned parties; party rewritten on defection; characterId null for NPP seats Yes
governmentFormations head of government read to resolve the leader Yes
countryHistory regime_escalation with from, to, popularLegitimacy, partyConfidence, conversion subtype Yes (country history feed)
gameConfig (_id: "default") commandEconomyEnabled, commandEconomyEnabledBy, commandEconomyEnabledAt, commandEconomySecondEconomyTolerance No
FederalBudget.economicFactors monetaryOverhang, shortageIndex, blackMarketPremium, secondEconomyShare Via the command-economy dashboard

Types: , , .

Configuration#

Setting Default Where set
governmentType: "onePartyState" 12 countries
hasLeaderConfidenceModel true for CN, RU, DD; false for the other nine , plus hasLeaderConfidenceModel: true in src/lib/countries/{cn,ru,dd}/institutionsFacts.ts
popularMoodProfile set for CN, RU, DD, PL, CS, HU, RO, BG, YU; absent for UKR, BLR, BAL src/lib/countries/<id>/institutionsFacts.ts. Without it the popular drift returns null
factionDefectionName set for CN, RU, DD only institutionsFacts.ts for each
collapseTargetSystem parliamentaryRepublic for CN, RU, DD; unset elsewhere institutionsFacts.ts for each
collapseTargetAllowlist, legacyReservationDefault, electionDelayDefault CN and RU: allowlist of parliamentaryRepublic and presidential, 20, 24. DD: 20, 24 same
headOfStateSelection partyChairSync or legislatureAppointment per country
opsVoteMultipliers DEFAULT_OPS_VOTE_MULTIPLIERS (3.0 / 0.375 / 0 / 0) ; per country on countryState
confidenceVoteMechanism, snapElectionsAllowed false for onePartyState defaults in
commandEconomyEnabled Static seed value true (), but world bootstrap rewrites it to true only for the 1953 and 1979 eras and false otherwise (isEasternBlocEra in , written in ). The type comment in gameConfig.ts says absent means off gameConfig
commandEconomySecondEconomyTolerance 0.3 when absent
Marketization schedule and drift weights tables in Rules ,
Reform costs and cooldowns, decision effects tables in Rules , src/lib/onePartyState/decisionEvents/

Timing#

Everything regime-related runs inside the per-country bill lifecycle binding (processCountryBills in ), once per turn per one-party country. Reform actions and purges are player or admin triggered between turns and are folded in by the next tick. Elections are resolved by the normal election phases using the regime multipliers; the post-conversion election marker is consumed by the election engine in the post-conversion step of the turn (). The parliamentary side (PM votes, freeze) is covered in parliamentary-government.md.

per turn, per one-party country (processCountryBills)
  1. ensureLeaderStateExists          (self-heal the leader-state row)
  2. runBillLifecycle                 (bill engine, returns enacted categories)
  3. processCountryPopularDrift       (needs popularMoodProfile)
  4. processCountryConfidenceDrift    (reads fresh popular value; folds in unprocessed purges)
  5. processCountryEscalation         (reads both post-drift values; advances stages,
                                       decision queue, convention phases, forced conversion)

The popular drift runs before the confidence drift so the popular-to-party coupling bleed reads a fresh value, and the escalation tick runs last so it reads both post-drift values.

Worked trace#

Escalation after a crash: popular legitimacy falls to 30 at turn T and stays; party confidence stays at 70. All counters start at 0.

Turn stage1 stage2.sustained stage2.cumulativeIn168 stage3 Result
T 1 1 1 0 stable
T + 11 12 12 12 0 30 <= 60 and 12 >= 12, so stage becomes discontent; Stage 1 decision offered
T + 35 36 36 36 0 30 <= 35 and 36 >= 36, so crisis; Stage 2 decision offered

Stage 3 never starts because confidence 70 is not below 15, so stage3 stays at 0. If the leader ignores the Stage 1 decision, after DECISION_TIMEOUT_TURNS = 48 turns the default fires: decay multiplier 1.25 for 24 turns and stage1 dwell plus 2. Natural recovery pulls the other way at (60 - 30) * 0.1 = +3.0 per turn before the other drivers, which is why a regime sitting at 30 needs sustained bad drivers to stay there.

Confidence deltas: a new leader starts at 75 (band stable). A regional purge (-4) gives 71, then a senior purge (-7) gives 64, which drops the band from stable (65+) to watchful. This is the direct delta before the next drift tick adds its own terms.

Faction split: a ruling party with 40 officials loses max(3, ceil(0.15 * 40)) = 6. An official at (3, -2) against a party line of (-1, 1) has distance |3 - (-1)| + |-2 - 1| = 7, divergence 7 / 20 = 0.35. If three officials in one caucus score 0.35, 0.55 and 0.15, the caucus mean is 0.35 and the adjusted scores are 0.35 * 0.4 + 0.35 * 0.6 = 0.35, 0.55 * 0.4 + 0.21 = 0.43 and 0.15 * 0.4 + 0.21 = 0.27: the loyal member is pulled toward the group and the radical one is pulled back. Defectors at (3, -2), (2, -3) and (4, -1) seed the new party at their mean, (3.0, -2.0).

Command economy, one turn: previous overhang 20, wage growth 8, real goods growth 3, plannedShare 1, plan fulfillment 0.85, no relief or injection.

  1. Wage fund: cap = 3 + 2 = 5; wage 8 exceeds it, so constrained growth is 8 - 1 * (8 - 5) = 5.
  2. shortfall = 0.15; goods deficit 0.15 * 20 = 3.0; gap = 8 - 3 + 3.0 = 8.0; flow = 1 * 8.0 / 48 = 0.1667.
  3. overhang' = 20 * 0.99 + 0.1667 = 19.9667.
  4. Shortage index 40, tolerance 0.3: s = 0.4, o = 0.1997; premium (0.8 * 0.4 + 0.2 * 0.1997) * 2.0 * (1 - 0.12) = 0.6335 (63 percent over official).
  5. Second economy from share 0.10: target 0.4 * (0.2 + 0.18) = 0.152; share' = 0.10 + (0.152 - 0.10) * 0.25 = 0.113; relief 0.113 * 0.3 * 0.5 * 19.9667 = 0.338, applied in the next turn's overhang.
  6. Prices: base 100 gives an administered price 100 * 1.12 = 112. With supply 80 and demand 100 the gap is 20 / 81 * 100 = 24.7 percent, and turnover revenue is 100 * 0.12 * 80 = 960. In a dual-track country at plannedShare 0.5 with market price 130 the blended price is 112 * 0.5 + 130 * 0.5 = 121.

Forced conversion: Stage 4 is reached and the leader accepts peacefully at turn C. On the next tick conversion fires with legacy reservation 5 seats, vote-share penalty -0.2 and electionAtTurn = C + 12. Had the leader chosen Resist, the delay would hold conversion until C + 48 and the reservation would be 3.

Edge cases and limits#

Invariants#

Failure and recovery#

Connections#

Driven by:

Affects:

Tests#

Gaps: the stage2.cumulativeIn168 recovery rule has only a loose "at most 40" assertion; no test pins that the resist-delay halving depends on the popular value; the marketization drift and gravity have no cross-check against the schedule table here.

Known issues and history#

Last checked: 2026-10-29, version 1.18.0

Ask