A House Divided A House DividedDocumentation
↵
Changelog
Game Design/Getting Started & Strategy

Party Building

Last updated 2026-10-29
Source files

Summary#

Party building is the long-game layer behind elections, treasury, NPP bench management, and internal faction power. Its core mechanic is Organization (Org): a party's share of the party machinery in each state or region, raised one unit at a time with the Build Org action and eroded by inactivity. Org lifts a party's general election vote, gates NPP recruitment slots, and decides Major or Minor party tier.

Player guide: Party Organization

This page also records the surrounding party structure (leadership elections, treasury, Slate, caucuses, coalitions). The party-level NPP management actions are in party-influence.md.

Rules#

Structure#

Each party operates across:

Organization#

Party organization is a percentage (0 to 100) per state or region per party. It is derived from stored contribution units, not from a cap. Code: , constants in .

What Org does:

Share formula#

Every region has a permanent Unaffiliated stake of ORG_BUCKET_BASELINE_UNITS = 100 units that never decays and is always in the denominator.

org% = party units / (100 + sum of all parties' units) x 100

The result is rounded to 4 decimal places (roundShare in ); unit balances are kept to 6 decimal places. Because shares are proportional, adding one party's units slightly dilutes everyone else's percentage without removing any of their units. There is no per-state cap: the old "lean decides the cap" and "base plus seat share cap" models are gone.

Growth#

A successful Build Org click deposits ORG_BUILD_UNITS_PER_CLICK = 1 unit and resets that party's decay clock in that region (applyOrganizationBuild, applied atomically by buildOrganizationBucket in ). Each click costs both Political Strength (PS) and treasury cash:

Input Value Source
Base PS cost BUILD_ORG_BASE_PS_COST = 1
Pressure ladder +1 stored pressure per spend in the same (party, region), stored value capped at 8, minus 3 per turn PRESSURE_LADDER_INCREMENT, PRESSURE_LADDER_MAX_VALUE, PRESSURE_DECAY_PER_TURN
Effective PS cost min(1 + pressure, 8) effectivePsCost, PRESSURE_LADDER_MAX_COST = 8
Cash price round(rate x 0.075 x effective PS cost x size multiplier) orgBuildCashPrice in , ORG_BUILD_TREASURY_FRACTION = 0.075
Rate Per country, national and state tier (US 75,000 / 37,500; UK 60,000 / 30,000; JP 5,000,000 / 2,500,000) TREASURY_PS_RATE_BY_COUNTRY, filled from each country's tax.treasuryPsRate in src/lib/countries/<id>/economy.ts
Size multiplier sqrt(state population) / country mean of sqrt(population), clamped to 0.5 to 2.0 orgBuildSizeMultiplier, ORG_BUILD_SIZE_MULTIPLIER_MIN/MAX
Minimum treasury to click 25% of the price ORG_BUILD_MIN_FUNDED_FRACTION = 0.25

The national rate is twice the state rate in every country, so a national click costs twice the cash. If the treasury covers at least 25% of the price but less than all of it, the click still lands: it takes whatever is in the treasury and adds the same one unit (resolveOrgBuildFunding, chargeOrgBuildFunds). Below 25% the click is refused before any PS is spent. A refused click (no presence, no funds, not authorised) costs nothing.

Why the size multiplier exists: Org is consumed as a normalised share, so a point in a large state carries far more electoral weight than a point in a small one. The curve is a square root so tiny states are not close to free, and the band keeps the widest spread to a 4x price range.

Who pays: the pool follows the spender's tier. A state officer pays from the state party's PS and statePartyOrg.treasury; a national officer pays from the national PS pool and politicalParties.treasury. A dual-role officer may choose with psPool in the request body; an ineligible choice is rejected with 403, not silently re-routed.

Who may click: state chair, state vice chair, state campaigner, national chair, national vice chair, national campaigner, or admin. Treasurers cannot (canSpendOnStateParty in ).

Decay#

A party with no Build Org click for ORG_DECAY_GRACE_TURNS = 96 turns loses ORG_UNIT_DECAY_RATE = 1% of its units per turn (applyOrganizationDecay), a half-life of about 69 turns once decay starts. The test is currentTurn - lastOrganizationBuildTurn >= 96. Units decay, not percentage points, so accumulated investment keeps its meaning. The Unaffiliated stake never decays.

Presence#

Building requires party presence in the region, checked live (checkPartyPresence in ): at least one party player character homed there, one elected official of the party there, or one active (non-retired) NPP of the party homed there. There is no exemption for national officers. A US region outside the 50 states plus DC cannot host an organization (isNonPartyOrganizationUsRegion in ). When a party has presence and authority but no row, the route creates the row at 0 units (ensureStatePartyOrgRow).

Org in elections#

In a general election a party's normalised state Org share is raised to ORG_WEIGHT_EXPONENT = 0.2 (orgVoteWeight in src/lib/electionEngine/electionFormulaFactors.ts): a 3 to 1 lead in Org becomes about a 1.25 to 1 edge in vote weight. With no Org data anywhere in the state the weight is a neutral 1; a party with 0 Org in a populated state gets 0. Primaries are unaffected because every candidate in a party's primary shares the same Org.

Party tier#

Org footprint, not offices, decides Major or Minor tier (, run by partyTierTurn).

Constant Value
TIER_EARN_REGION_ORG_PCT 20 (a region is earned at 20% Org or more)
TIER_LOSE_REGION_ORG_PCT 10 (an earned region is kept until Org falls below 10%)
Graduation to Major earned regions >= ceil(regions / 3); UK uses UK_TIER_GRADUATION_REGION_FRACTION = 1/4
Demotion warning Org below 10% in >= ceil(2 x regions / 3) regions
MAJOR_DEMOTION_GRACE_TURNS 240
MINOR_PARTY_BASE_PS_CAP / MINOR_PARTY_PS_CAP_PER_REGION 100 / +10 per earned region, never above the national cap

Region counts per country are in REGION_COUNT_BY_COUNTRY (; US 50, UK 12, so the UK needs 3 regions). Ruling parties in one-party states are exempt from demotion. PS caps and the NPP Action Point pools that follow the tier are in party-influence.md.

Treasury#

Party treasury is more than a raw send / transfer wallet.

Core functions:

Treasury planning surfaces support reserve targets, planning presets (custom, growth, election_push, member_support, reserve_first, ), state-funding visibility and override history. This makes party treasury a real leadership role rather than a passive balance sheet.

Leadership#

Party leadership elections cover Chair, Vice Chair, and Treasurer at both national and state / regional levels. The default voting window is 72 turns (NATIONAL_ELECTION_DURATION_TURNS and ELECTION_DURATION_TURNS both 72, about 72 real hours at the standard 1-turn-per-hour cadence). Founding-phase elections use 12 turns (FOUNDING_CHAIR_ELECTION_DURATION_TURNS, FOUNDING_STATE_ELECTION_DURATION_TURNS). National parties can adopt a custom duration of 168-420 turns (NATIONAL_ELECTION_MIN_DURATION_TURNS, NATIONAL_ELECTION_MAX_DURATION_TURNS) via committee proposal. National committee elections run 168 turns with a committee of up to 6 (COMMITTEE_ELECTION_DURATION_TURNS, COMMITTEE_SIZE in src/lib/nationalCommitteeElections.ts).

Role identities:

NPP building#

Party-building relies heavily on NPP systems.

Slate#

Slate is part of party building. It acts as the party's bench-management board:

Detail in party-slate.md.

Analytics#

Party pages include internal analytics surfaces: identify underbuilt states, surface local and national discipline issues, track Slate coverage and assignment trouble, and show caucus health on the national surface.

Caucuses#

Caucuses are part of the live party-building loop. They give parties internal factions, a caucus treasury, a caucus whip, caucus chair elections and relationship-driven NPP sub-blocs. Recruiting an NPP into a caucus needs a chair relationship of at least CAUCUS_NPP_RECRUIT_MIN_RELATIONSHIP = 60, with a CAUCUS_NPP_RECRUIT_COOLDOWN_TURNS = 12 turn cooldown between recruits; membership is kept while the relationship stays at or above CAUCUS_NPP_RETENTION_MIN_RELATIONSHIP = 20. NPP relationships drift toward neutral by NPP_RELATIONSHIP_DECAY_PER_TURN = 0.1 (all in ). See caucuses.md.

Coalitions#

Coalitions are a parallel cross-party layer rather than a replacement for party building, but coalition priorities and cohesion sit adjacent to party strategy. See coalitions.md.

Data#

Collection Fields read or written Player-visible
statePartyOrg organization (cached percent), organizationUnits (durable balance), lastOrganizationBuildTurn (decay clock), treasury, hasPresence, chair / vice chair / campaigner ids, nppActionPoints Org percent and treasury yes; units are returned to the clicking officer in the build response
politicalParties treasury, politicalStrength, tier, nppActionPoints (national tier spend) Treasury and tier yes
partyStrengthPressure value, lastUpdatedTurn, keyed by country, party and region Shown indirectly as the quoted PS price
orgRegLedger One row per changed share: turn, partyId, metric: "org", delta, value, source (action for the spender, passive for dilution), actorId, note State overview history
treasuryTransactions A category: "org_building" debit row per landed charge Treasury history for officers
partyBudget Legacy orgBuildingPercent (see Known issues) Budget panel
states population, read for the size multiplier Yes
characters, electedOfficials, npps Read live for the presence check Yes
gameConfig (_id: "default") ledgerShadow, read to decide whether to witness the cash sink in the accounting ledger No

The build response returns psCost, newPS, newPressure, cashPrice, cashCost, fundedFraction, contributionUnits, organizationUnits, orgGain, newOrg, a dilutions list (rival party id, loss, new Org) and a nextPreview quote for the next click.

Configuration#

Setting Default Where set
Org unit constants (ORG_BUCKET_BASELINE_UNITS, ORG_BUILD_UNITS_PER_CLICK, ORG_DECAY_GRACE_TURNS, ORG_UNIT_DECAY_RATE, ORG_LEGACY_UNITS_PER_PERCENT_MAX) 100, 1, 96, 0.01, 10 (code constants, not in gameConfig)
Build cost constants (BUILD_ORG_BASE_PS_COST, ORG_BUILD_TREASURY_FRACTION, ORG_BUILD_MIN_FUNDED_FRACTION, size band) 1, 0.075, 0.25, 0.5 to 2.0
Cash rate per country US 75,000 national / 37,500 state, other countries differ tax.treasuryPsRate in src/lib/countries/<id>/economy.ts
ledgerShadow off unless set gameConfig default document
Region count for tier thresholds per country REGION_COUNT_BY_COUNTRY
Election durations 72 / 12 / 168 to 420 src/lib/nationalPartyElectionConstants.ts, src/lib/statePartyElections.ts
NPP build sweep chance 0.15 base, scaled by campaign aggression NPP_BUILD_ORG_BASE_PROBABILITY in

No era or scenario preset overrides the Org constants. Eras change the cash price only through the country economy file (currency scale). Org is not available in a US region outside the 50 states and DC.

Timing#

partyOrgTurn applies decay and settles org shares each turn. Build Org clicks happen at request time through the build-org route (), so shares update immediately. Leadership elections resolve in statePartyElections, nationalPartyElections and nationalCommitteeElections. Order, from :

  1. partyGOTV
  2. partyOrgTurn: decay, then re-derive shares for every region
  3. regDriftDecay
  4. pressureDecay: stored pressure drops by 3, floored at 0
  5. priorityRegionDecay, supportDecay, supportAccrual
  6. partyTierTurn: reads the new Org to earn or lose regions and move tier
  7. statePartyElections, nationalPartyElections, nationalCommitteeElections
  8. partyActionGeneration: PS and NPP Action Points refill
  9. later: nppBehavior, then nppActionProcessing, which runs the NPP Build Org sweep

The decay write in step 2 is conditional on the unit balance and the clock still matching what the phase read, so a click that lands mid-phase is preserved rather than overwritten. See parties.md for the full party phase list.

Worked trace#

Assumptions: a US state of 9,000,000 people where the country mean of sqrt(population) is 2,500. Party A (state party, 20 units) shares the region with party B (30 units) and party C (10 units). A's pressure in this state is 2 from earlier clicks. A's state treasury holds 4,000. A state officer clicks Build Org at turn T.

Step Calculation Result
Shares before denominator = 100 + 20 + 30 + 10 = 160 A 12.5%, B 18.75%, C 6.25%
Effective PS cost min(1 + 2, 8) 3
Size multiplier sqrt(9,000,000) / 2,500 = 3,000 / 2,500, inside 0.5 to 2.0 1.2
Quoted cash price round(37,500 x 0.075 x 3 x 1.2) = round(2,812.5 x 3.6) 10,125
Funding check 4,000 / 10,125 = 0.3951, above 0.25 accepted, part-funded
PS spent 3, stored pressure 2 to 3 (next click costs 4) A's state PS down 3
Cash charged min(10,125, 4,000) 4,000; fundedFraction 0.3951; treasury now 0
Units 20 + 1, lastOrganizationBuildTurn = T A = 21
Shares after denominator = 161 A 13.0435%, B 18.6335%, C 6.2112%
Ledger rows A +0.5435 (action), B -0.1165 and C -0.0388 (passive, note dilution:build-org:by:<party>) 3 orgRegLedger rows

Decay continues the example. If A never clicks again and B and C keep building, nothing happens until turn T + 96. At that turn A's units become 21 x 0.99 = 20.79, A's share with B and C unchanged at 30 and 10 is 20.79 / 160.79 = 12.9299%. One turn later A holds 20.5821 units.

Edge cases and limits#

Invariants#

Failure and recovery#

Connections#

Driven by:

Affects:

Tests#

Area Test file
Unit and share maths, decay
Atomic deposit and reconciliation
Cash price, funding floor
Size multiplier and cache
Cash debit
Route end to end
Decay phase
Presence
Tier ,
Recruitment slots
NPP build sweep , nppBuildOrgSweep.test.ts
Elections src/lib/statePartyElections.test.ts, src/lib/nationalPartyElections.test.ts
Backfill
Vote weight src/lib/electionEngine/electionFormulaFactors.test.ts

Gaps: no test asserts the share-sum invariant across a full region of many parties, no test covers national committee election durations directly, and the treasury planning presets have no balance test.

Known issues and history#

Last checked: 2026-10-29, version 1.18.0

Ask