A House Divided A House DividedDocumentation
↵
Changelog
Player Wiki/Advanced

Reference: Turn Order

Last updated 2026-10-04

The game runs on an hourly cron. Every real-world hour is one game turn, which is one game week. Turn processing runs through roughly a dozen top-level adapters that together call over 100 phase steps, each hour. This page lists the major groups of phases, what runs in each, and why the ordering matters.

1 turn = 1 game week = 1 real hour 48 turns = 1 game year


Turn sequence overview#

Group Phases Key constraint
0. Housekeeping Release shares held by banned or inactive shareholders; cold-war tension relaxes toward its pressure floor First, so everything downstream reads the current temperature
1. Resources Action refresh, fund generation, corporation turn (production, clearing, freight, marketing settlement), unions and NPP union behaviour, party influence, caucus tax Parallel-safe
1a. Finance NPP funds, savings interest, NPC bank policy, banking (deposits, loans, runs), pensions, prospecting resolution, macro country turn, bond coupons and maturities, commodity prices, extraction-contract settlement, line of credit, share-price recompute, bank solvency, financial suspect scan After corporations (bonds need updated liquid capital)
2. Demographics Turnout decay, party GOTV, party org maintenance, registration drift, pressure decay, priority-region decay, support decay and accrual, party tier (Major/Minor) Sequential
3. Party elections State/national/committee elections, party action generation, charter expiry, empty party cleanup, coalition disband votes, NPP relationship maintenance Parallel then cleanup
4. NPP behavior NPP bill sponsorship, challenger generation, election entry, bill voting, endorsement sweeps Uses shared NPP context
5. Bills, courts & cabinets Bill lifecycle, state bill timers, cabinet nominations, Supreme Court turn (docket and surprise cases), UK surprise cases, social-axis drift Parallel-safe
6. Campaigns & events Campaign turn, player random events, world events, NPP action processing (every 4 turns), activity logging Sequential
7. Election resolution Candidate party sweep → primary resolution → vote accumulation → campaign spend reset → timer advancement → primary snapshots (ballot accrual) → general resolution → clear resolved support → leadership vacate Strictly sequential: ordering is load-bearing
8. Parliamentary government Government formation, no-confidence and confidence votes, PM vacancy watcher After election resolution
9. Election coverage & diplomacy Perpetual elections, by-election watcher, leadership elections, stale-candidate cleanup, inactive-candidate withdrawal, auto-reelection entry, international organizations (votes, treaties, foreign-policy planner), alignment and spheres, settlement crises (the German Question and its kin), impeachment lifecycle, presidential succession Parallel-safe
10. Fiscal year October processing (turn 40 of 48) Conditional
11. Effects & metrics Policy effects, demographic effects, policy-reaction and archetype-approval decay, unowned sector growth, metric decay, investor-confidence decay, state-ownership concentration, subsidy budget, regional budgets, crisis turn, naval and air operations, ministerial orders (this is where battles resolve) Naval/air runs before battles so a battle reads this turn's sea control, air superiority and supply
12. National aggregation Metric engine, demographic flows, census, era crossing, metric activation, national metrics, fiscal base growth, economic model, trade growth mirror, inflation recalc, command economy, Forex, central bank chair turn, FOMC meetings and nominations, NPP monetary operations, chair removal and selection, independence desire drift, referendum lifecycle, party member-count reconcile After state effects
13. History Metric, approval, interest-rate and party snapshots; portfolio, corporate portfolio, stock exchange, investor ranking and wealth-list snapshots; game health; audit anomaly and suspicious-activity scans; money-supply, ledger balance and reconciliation snapshots; economic vital signs Parallel-safe
14. Persistence Increment turn counter, save turn log, send live update Not wrapped in try/catch

Country-specific election phases (UK by-elections, JP Sangiin half-elections, DE Landtag cycles, and so on) run inside group 9 as their own named steps.


Group details#

Group 1: resources#

Runs at the start of every turn, in parallel:

Before any of this, the cold-war tension phase relaxes the world's shared gauge toward its standing pressure floor, so every later phase reads the current temperature.

Group 1a: finance#

Runs after corporations so bond coupon flows can read updated liquid capital:

Group 2: demographics#

Sequential (each step depends on the previous):

  1. Turnout decay: All turnout modifiers decay 2% of their current value toward zero.
  2. Party GOTV: Party GOTV budget distributed to states, boosting turnout modifiers for aligned demographics.
  3. Party org maintenance: Org bucket shares are refreshed, and organization can decay for parties that become inactive in a state or region.

Group 3: party elections#

Party leadership elections, national committee elections, and committee assignments all run in parallel. Then:

Group 4: NPP behavior#

NPPs run their autonomous decision logic:

Group 5: bills & cabinets#

All parallel:

Group 6: campaigns#

Group 7: election resolution (strictly sequential)#

This is the most critical group. The phases must run in this exact order. Reordering produces incorrect election results:

  1. Candidate party sweep: Candidates whose party no longer matches their candidacy are auto-withdrawn (party switches).
  2. Primary resolution: Primaries that have reached their end time are resolved. Down-ballot races read the cumulative primary ballots and the top count per party advances (the score path only where a party cast no ballots); presidential races read pledged delegates and, on the reworked ruleset, run the convention. Others are marked withdrawn.
  3. Vote accumulation: General elections accumulate votes for this turn from the registered electorate. MUST run after primaries (eliminated candidates are excluded) and BEFORE timer advancement (so the final turn's votes are captured). A turn that is re-run after a stall does not bank the same slice twice.
  4. Election timers: Countdown clocks advance; elections that have reached their end time are marked "completed."
  5. Primary snapshots: Standings are recorded for every open primary and, once a race's closing window has opened, that turn's slice of primary ballots is accrued.
  6. General resolution: Elections marked "completed" are fully resolved: winners determined, elected officials updated, characters receive office, next cycle spawned.
  7. Leadership vacate: Members who lost seats, changed chambers, or won a different office have leadership positions removed.

Why the order matters: If vote accumulation ran after timer advancement, final-turn votes would be lost. If primaries didn't resolve before vote accumulation, eliminated candidates would still receive votes.

Group 8: parliamentary government#

Runs after election resolution:

Group 9: election coverage#

Ensures no seat sits vacant:

Group 10: fiscal year (conditional)#

Only runs on the fiscal year-end turn (turn 40 of each 48-turn year, corresponding to October):

Group 11: effects & metrics#

All parallel:

Group 12: national aggregation#

Sequential (each depends on previous):

  1. Metric engine and demographic flows: state metrics move; population migrates.
  2. Census and era crossing: a decennial census reapportions House seats and redraws district maps; scheduled era content resolves against the calendar year the world shows.
  3. GDP growth and national metrics: Country-level aggregates recomputed from state-level data (GDP-weighted for economic metrics, population-weighted otherwise).
  4. Trade growth mirror: Trade growth mirrored from the federal budget system to the central bank system (Forex prerequisite).
  5. Inflation recalculation: Per-turn inflation recalculated using updated national metrics.
  6. Command economy: plan fulfilment, directed credit, shortage and the marketization dial for planned economies.
  7. Forex turn: Exchange rates updated (when Forex is enabled). Reads inflation differentials and trade volumes; fills limit orders.
  8. Central bank chair turn, FOMC meetings and nominations: Chair scrutiny and bonuses updated; the Fed's rate meetings open and resolve at their deadline; pending Fed nominations resolve on the Senate's votes.
  9. Central bank chair selection: Open chair vacancies outside the US filled if conditions are met.
  10. Referendum lifecycle and independence desire: UK devolved referendums advance.

Group 13: history#

All parallel, all read-only:

Group 14: persistence#

This group is not wrapped in the error-isolation pattern. A failure here is fatal to the turn:


The error isolation pattern#

Every phase (except Group 14 persistence) runs inside an error-isolation wrapper. If a phase throws, the error is:

  1. Logged to the console
  2. Sent to Sentry
  3. Recorded as a warning in the turn log

The turn does not halt. Subsequent phases continue processing. This means a broken bill lifecycle phase does not prevent elections from resolving. The admin panel shows warnings from the last turn.


Fast mode#

Fast mode runs turns every 30 minutes instead of every hour (i.e., 1 turn = 30 real minutes instead of 60). All timing calculations (election durations, bill deadlines) remain in hours, so everything simply completes in half the real-world time.

Stuck turns#

Every phase has a hard four-minute ceiling; a phase that runs past it fails and takes the turn with it. A turn whose process dies partway leaves the processing lock held, and a recovery sweep every five minutes repossesses an abandoned turn so the wait is bounded. That sweep is strictly a recovery path: it never starts a turn that is merely due, so the clock still advances only on the normal ticks. World News posts are de-duplicated so a turn that is taken over while still finishing reports each event once.


Ask