A House Divided A House DividedDocumentation
↵
Changelog
Game Design/Legislature & Parties

Coalitions

Last updated 2026-10-29
Player wikiCoalitions
Source files

Player guide: Coalitions

Summary#

Coalitions are country-scoped alliances between national parties. They are still lighter than parties, but they are no longer just a nameplate plus invite list.

Coalitions currently serve two different roles:

They are not a full party merge, and they do not replace party identity. Why anyone joins: pooled seats make the bloc the majority bloc, which decides who is shut out of the minority-side leadership posts, and the shared priorities give the member chairs a common agenda to vote on.

Rules#

Constant or rule Value Source
Creation cost 25 actions, refunded if the insert fails
Name length 3 to 60 characters
Abbreviation length 2 to 10 characters
MAX_ACTIVE_COALITION_PRIORITIES 3
Priority title length 1 to 80 characters
Priority description length 1 to 280 characters
Leadership goal target name length 0 to 80 characters (optional) same
Priority pass or reject threshold floor(memberParties / 2) + 1 votes getPriorityVoteTally in
DISBAND_VOTE_DURATION_HOURS 24 (expires 24 turns after it starts)
Disband threshold floor(totalMembers / 2) + 1 yes votes resolveExpiredDisbandVotes in
Cohesion Strong score 70 or more calculateCoalitionCohesion in
Cohesion Mixed score 45 to 69 same
Cohesion Fractured score under 45 same

Cohesion score, per active priority: (support - oppose + memberParties) / (2 x memberParties), averaged over the active priorities and scaled to 0 to 100 and rounded. A coalition with no active priorities, or no member parties, is Unaligned with score 0. Abstentions count for neither side, so they pull the score toward 50 per priority.

Formation and membership#

Member parties can join through chair-issued invites or join requests. Both are limited to national party chairs (or acting vice-chair). A party can be in only one coalition. Banned parties cannot join, be invited or create, and in a one-party state only the ruling party can invite or create (canInviteToCoalition, ). The one-party check reads the runtime government type, so a country that has converted away from one-party rule lifts the restriction at once.

Leaving, kicking, succession, chair transfer and disband votes all remain active parts of the system. Only the coalition chair can invite, kick, propose priorities, archive priorities and start a disband vote, and the chair cannot kick their own party.

Chamber leadership#

Coalitions aggregate member-party seats into a bloc. computeBlocsForCountry () builds one bloc per coalition, with the summed seats of its members that hold seats in that chamber, and one bloc per party that is in no coalition. Blocs are sorted by seats, highest first; the largest is the majority bloc and the second-largest is the minority bloc. On a tie, the sort is stable, so the order the blocs were built in decides: coalition blocs come before unaffiliated parties.

Callers, all under src/lib/congress/: senateComposition.ts, houseComposition.ts, bundestagComposition.ts, npcComposition.ts and ngChamberLeadership/composition.ts. The bloc math is not used by countries that form governments through their own parliamentary systems.

Priorities#

Coalitions have a Priorities system with up to 3 active priorities at once. Types (all in ):

Each priority is either public (visible to everyone on the coalition page) or internal (intended for coalition members and admin-facing oversight), and has a support or oppose stance.

Governance uses a party-vote model:

  1. the chair creates a proposal, which starts with the chair party's support vote
  2. member-party chairs vote support, oppose or abstain
  3. the proposal becomes active at floor(members / 2) + 1 support votes, or is rejected at the same number of oppose votes

Bill priorities expire when the bill is no longer live; leadership goals expire on their game-clock turn (expiresOnTurn), with a date fallback for old records (normalizeCoalitionPriorities). The API accepts an absolute expiry time for leadership goals and converts it to a turn by dividing the time left by MS_PER_TURN.

Cohesion is primarily a health / alignment signal, not a major mechanical buff. It tells leadership whether coalition members are actually lining up behind the same agenda.

Disband votes#

What coalitions do not provide#

They do not currently provide treasury bonuses, whip bonuses, election bonuses or general legislative vote overrides.

Lifecycle and cleanup#

UI#

Current coalition page tabs: Overview, Parties, Priorities, Chair's Office (chair only), Admin (admin only).

Data#

Collection Fields Player-visible
coalitions sequentialId, countryId, name, abbreviation, color, logoUrl, discordInviteUrl, chairPartyId, chairCharacterId (null when the chair seat is vacant), members[] (partyId, partySequentialId, joinedAt), pendingInvites[], joinRequests[], disbandVote (initiatedBy, initiatedAt, expiresAt, expiresOnTurn, votes[]), priorities[], timestamps yes, on the coalition page; internal priorities are limited to members and admins
priorities[] entries id, type, visibility, status (proposed, active, archived, rejected, expired), stance, title, description, policyThemeKey, billId, billTitle, leadershipGoalKey, targetName, expiresAt, expiresOnTurn, votes[], activatedAt, resolvedAt, resolvedBy by visibility
politicalParties coalitionId (written on join, leave, kick, disband), chairId (read for chair sync), regimeStatus (read for the one-party gates) yes
characters actions (25 deducted on creation) yes, to the owner
notifications coalition_disbanded rows to every member chair yes

The cohesion summary and the blocs are derived on read, not stored. Types are in .

Configuration#

Coalitions have no gameConfig field, era preset or scenario flag. Behaviour comes from constants in code:

Setting Default Where
Active priority cap, thresholds, cohesion bands the Rules table
Disband window 24 turns
One-party restriction on while governmentType is onePartyState at runtime
Countries that use bloc math those whose chamber composition builders call computeBlocsForCountry (US House and Senate, DE, CN, NG) src/lib/congress/

Timing#

nationalCommitteeElections (results applied -> reconcileAllCoalitionChairs)
  -> emptyPartyCleanup -> coalitionDisbandVotes -> nppRelationshipMaintenance
on demand: chamber composition -> computeBlocsForCountry

Worked trace#

Bloc math. A chamber has five seated parties: P1 40 seats, P2 25, P3 10, Q 60, R 30. P1, P2 and P3 are in coalition A.

  1. Coalition bloc A = 40 + 25 + 10 = 75 seats, dominant party P1 (40).
  2. Unaffiliated blocs: Q 60, R 30.
  3. Sorted: A 75, Q 60, R 30. Majority bloc A, minority bloc Q.
  4. P1 drives Pro Tempore and Majority Leader/Whip eligibility. Minority Leader/Whip exclude P1, P2 and P3, so the minority posts go to Q or R.

Priority and cohesion. Coalition A has 3 member parties, so the threshold is floor(3 / 2) + 1 = 2.

  1. The chair proposes "Tax Relief" as a policy theme. It starts with the chair party's support: 1 support, status proposed.
  2. P2's chair votes support: 2 support, which meets 2. Status becomes active (active count was below 3).
  3. P3's chair votes oppose: tally is 2 support, 1 oppose, 0 abstain.
  4. Cohesion = (2 - 1 + 3) / (2 x 3) = 4 / 6 = 0.667, scaled to 67. 67 is in 45 to 69, so Mixed.

Disband. The chair starts a vote at turn 1,000, so expiresOnTurn = 1,024. P1 and P2 vote yes, P3 does not vote. At the first processing of coalitionDisbandVotes at or after turn 1,024, yes votes = 2 against a threshold of floor(3 / 2) + 1 = 2, so the coalition is deleted and coalitionId is cleared on P1, P2 and P3. Had only P1 voted yes, 1 is below 2 and the vote would just clear.

Edge cases and limits#

Invariants#

Failure and recovery#

Connections#

Driven by:

Affects:

Related docs: parties.md, npp-system.md.

Tests#

Known issues and history#

Last checked: 2026-10-29, version 1.18.0

Ask