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

Party Slate

Last updated 2026-10-29
Player wikiParty Slate
Source files

Summary#

Technical design for the Party Slate: the national and state party board where leadership assigns players or same-party NPPs to the races in each state or region, and the turn pass that turns those assignments into candidacies.

Player guide: Party Slate. The wiki page Primaries also mentions slate fill for NPPs.

The Slate is a national-party planning and assignment surface, not a separate election system. It helps party leadership:

The surfaces live under the national party Slate tab and each scoped state or regional party Slate tab. Both write the same rows.

Scope. Slate is designed around subnational and legislative races. Presidential races do not use the board: the assignment route refuses them with "Presidential races do not use the slate assignment board." (), and the persistence sync skips them (syncPersistentSlateAssignments in ).

The board renders as a country map for countries with map support, with a selected-state or selected-region race list beneath it. Scoped state or regional party views render the same race list without the national map. Each race card shows the race name, cycle, timing and phase context, assigned candidates, the assignment state, the election phase strip, and embedded primary or general results when available. That status data comes from the shared election display pipeline used on the state and election pages, so Slate keeps no election-summary model of its own.

Rules#

Rule Value Source
NPP loyalty needed to be Slate-compliant 40 or more SLATE_NPP_LOYALTY_THRESHOLD in
NPP stubbornness allowed to be Slate-compliant 70 or less SLATE_NPP_STUBBORNNESS_THRESHOLD in
Missing loyalty or stubbornness treated as 50
State or regional leadership bonus loyalty requirement minus 5, stubbornness ceiling plus 5 STATE_SLATE_ASSIGNMENT_BONUS in
Candidates one party may hold on one race 3, players and NPPs sharing the same pool SLATE_ASSIGNMENT_CAP in
Statuses that hold a slot invited, considering, accepted, filed LIVE_SLATE_STATUSES in
Fit score shown to the chair round((loyalty * 0.65 + (100 - stubbornness) * 0.35) * 10) / 10 computeSlateAssignmentScore in
Incumbent fit score floor 80 decideNPPSlateResponse in
Player assignment fit score 100 buildCharacterSlateCandidate in the invitations route
Invitation note length at most 280 characters assignSchema in the invitations route
Fit score for a retired or cooling-down NPP 0 decideNPPSlateResponse

Compliance formula#

An NPP is Slate-compliant when, with the assigner's bonus applied:

loyalty >= 40 - loyaltyRequirementReduction
stubbornness <= 70 + stubbornnessAllowanceBonus

The bonus is 5 and 5 when the assigner is a State / Regional Party Chair or State / Regional Party Vice Chair for the race's own state. National chairs and vice chairs, and admins, get 0 and 0 (getSlateAcceptanceStatBonus in ). The assigning role is stored on the row (assignedByRole), so the bonus survives later role changes. The same thresholds match the discipline-watch mental model.

Assignment authority#

resolveSlateAuthority () lets these roles manage Slate rows:

Everyone else can view but not modify. Authority checks the seat holder directly, so the acting-chair inheritance in party-leadership-authority.md does not apply here. A party whose chair seat is vacant has no national Slate manager unless the vice-chair seat is filled, because the vice-chair is a named role in its own right.

For NPP assignments the route also requires party NPP control (getPartyNppControlStatus in ) and returns 403 with the control error otherwise. Default parties and admins always pass. For a player-founded party the check requires the party to be at least 48 hours old (waived during the founding window of 240 hours after world start), the actor to be a current member, and the actor to have held the party for 48 hours.

Player assignments#

When a player is assigned, the row is written as accepted immediately with fit score 100, the assignment appears on the board, and the player gets an in-game notification titled "Party slate assignment" naming the assigner and, when applicable, their role label. A player must live in the race's state, belong to the party and not already be filed in another race this cycle; otherwise the route returns 400 or 409.

Slate does not auto-file players. The turn filing pass only handles candidateType: "npp" rows (fileAcceptedSlateRows), so the player still has to enter the race through the election flow. If they never do, the row stays accepted and keeps holding one of the three slots.

NPP assignments#

NPP behaviour is relationship-free and fully deterministic (decideNPPSlateResponse, ). Order of checks:

  1. Retired NPP: declined, reason retired.
  2. Election cooldown still running for this NPP: declined, reason cooldown.
  3. Incumbent holding the seat: accepted, fit score at least 80.
  4. Not Slate-compliant: declined, reason low_compliance.
  5. Otherwise accepted.

There is no randomness, so the pre-turn chip is exactly what the turn produces. processSlateResponses has one more decline before the resolver runs: if the party is not in the set allowed to field NPP candidates this turn (nppElectionEligiblePartyKeys), the row is declined with reason cooldown.

At assignment time the route writes the NPP row as invited, with refusalReason pre-set to low_compliance when the NPP fails the compliance test for that assigner. The Slate shows Likely to Accept or Likely to Decline from that prediction. After the turn, an NPP that enters the race shows Accepted (and later Filed), and one that fails shows Declined.

Statuses and refusal reasons#

Statuses: invited, accepted, declined, withdrawn, filed (type in ). considering is deprecated legacy: the resolver no longer produces it, but processSlateResponses still reads any pre-existing considering row and resolves it to accepted or declined. Declined and withdrawn rows release their slot.

Refusal reasons written by the NPP decision: low_compliance, retired, cooldown. Written by the filing pass when an accepted row cannot go on the ballot: ineligible_region, party_restricted, npp_unavailable, already_slated_elsewhere, seat_not_on_ballot, slate_full. Legacy values kept for old rows: low_relationship, low_ambition, race_priority_mismatch, slot_taken. in_other_race has a display label () but nothing writes it. Filing failures are tombstoned as withdrawn with the reason so the chair can see why the NPP vanished from the ballot (ticket #1181).

Persistence#

Assignments stay on the board across turns, after election processing and into the next race cycle. syncPersistentSlateAssignments hydrates an empty race from the latest slate for the same country, party, state and election type, skipping pairs that cannot have a template. They change only when leadership updates or withdraws them, or when a candidate files.

Same-state movement#

Assigning a candidate to a new same-state race tombstones their other same-state rows as withdrawn (ticket #906). A hard delete would leave the old slate empty and the per-turn sync would re-hydrate it. For a compliant NPP, reconcileSlateMoves and the filing pass can withdraw them from the old race and file them into the target. A compliant slated NPP is not auto-picked into other races or auto-defended into an incumbent seat the chair has moved them off (slateSuppressesAutoPick, slateSuppressesIncumbentDefense in ). Non-compliant NPPs keep their autonomous behaviour. If another same-party candidate is already in the target race, the Slate NPP still joins and creates a contested primary rather than replacing the existing entrant. The chair also outranks the autopilot: an NPP picked by the generic party fill is withdrawn to make room for a chair's pick while the race has room (ticket #1181).

Withdrawing#

Withdrawing (.../invitations/[candidateRowId]/route.ts, DELETE) removes the candidate from the slot rather than leaving a placeholder. Withdrawing a filed row also withdraws the live candidate from the election, scrubs the vote tally and archives the campaign, unless the race is completed, resolved or cancelled (409). A candidate withdrawn from one same-state race is free to be assigned to another.

Data#

Collection Fields Read or written Player-visible
recruitmentSlates countryId, partyId, electionId, state, electionType, priority (high, defend, primary_threat, none), notes, archivedAt, createdBy Created by ensureSlate; priority and notes edited through the slate PATCH route Chairs only (the Slate tab)
slateCandidates slateId, electionId, partyId, candidateType, candidateId, candidateName, homeState, assignedByCharacterId, assignedByRole, status, fitScore, invitationNote, refusalReason, autoFilled, invitedAt, respondedAt, filedAt Written by the invitations routes and by the turn passes Chairs see all fields; a player sees only the notification
electionCandidates characterId, nppId, isNPP, party, status, enteredAt Read for cap accounting; written when an accepted NPP row files or is trimmed Yes, the ballot
npps personality.loyalty, personality.stubbornness, retiredAt, homeState, electionCooldowns Read only Personality is shown as Slate chips and fit score
statePartyOrg chairId, viceChairId Read for state authority Yes
politicalParties chairId, viceChairId, isDefault Read for national authority and NPP control Yes
notifications type system, title "Party slate assignment" Written when a player is assigned Yes, to the assigned player

Configuration#

Slate has no gameConfig field, era or country preset, or scenario override. All values are code constants.

Setting Default Where set
SLATE_NPP_LOYALTY_THRESHOLD, SLATE_NPP_STUBBORNNESS_THRESHOLD 40, 70
STATE_SLATE_ASSIGNMENT_BONUS 5
SLATE_ASSIGNMENT_CAP 3
NPP control age and tenure 48 hours each, 240-hour founding window
Parties allowed to field NPP candidates computed each turn by buildNppElectionEligiblePartyKeys , loaded in
One-party-state constraints on filing canFieldExecutiveCandidate, canFieldLegislativeCandidate

Timing#

The Slate runs inside the NPP behaviour phase (), in this order each turn:

  1. NPP mortality.
  2. Load NPP context.
  3. syncPersistentSlateAssignments: carry prior-cycle assignments into empty races.
  4. processSlateResponses: resolve every invited or considering NPP row to accepted or declined.
  5. processElectionEntry (): reconcileSlateMoves, then incumbent defenders re-file, then trimOverCapSlates, then fileAcceptedSlateRows (Phase 1a), then the generic party-pool fallback.
  6. Endorsements, then federal and local bill voting.

Responses run before entry so accepted rows are ready to file in the same turn. Slate challengers file after incumbents, so they can still create a same-party primary against the sitting NPP. Both passes are idempotent. Assignments by a chair resolve on the next turn, never immediately; assignments themselves are requests, not turns.

flowchart LR
  A[Chair assigns<br/>request] --> B[invited / accepted row]
  B --> C[Turn: sync persistent]
  C --> D[Turn: respond]
  D --> E[Turn: reconcile, incumbents, trim]
  E --> F[Turn: file accepted NPP rows]
  F --> G[electionCandidates]

Worked trace#

An NPP has loyalty 37 and stubbornness 72, and is not an incumbent, retired or on cooldown.

Step Computation Result
Fit score round((37 * 0.65 + (100 - 72) * 0.35) * 10) / 10 = round((24.05 + 9.8) * 10) / 10 33.9
National chair assigns needs loyalty 40 or more (37 fails) and stubbornness 70 or less (72 fails) Row invited, refusalReason: low_compliance, chip Likely to Decline
Turn, decideNPPSlateResponse not compliant declined, low_compliance, fit 33.9; the slot is released
State chair assigns instead needs loyalty 35 or more (37 passes) and stubbornness 75 or less (72 passes) Row invited, refusalReason: null, chip Likely to Accept
Turn, respond step compliant accepted, fit 33.9
Turn, filing step slots used by the party on this race below 3 ElectionCandidate inserted, row becomes filed
Same NPP as incumbent defending the seat accepted whatever the stats fit max(33.9, 80) = 80

An NPP with loyalty 34 fails even under the state bonus (35 needed). Slot accounting for the same race: a state chair has assigned two NPPs and one player (3 slots used). A fourth assignment returns 409 "This race already has 3 assigned candidates. Withdraw one before assigning another." A player who files on their own does not add a slot.

Edge cases and limits#

Invariants#

Invariant Enforced by
A party holds at most 3 slots on a race through the assignment route and through filing , route and turn-pass tests; the route check is "courteous" and can undercount rows not yet materialized from a template, so the filing pass is the authority
The NPP decision is deterministic and never returns considering
The pre-turn prediction equals the turn outcome By sharing isNppSlateCompliant and getSlateAcceptanceStatBonus between route and resolver; no single test compares them end to end
A player's own candidacy is never withdrawn by the trim ("never withdraws a player's own candidacy")
A filed slate row and its candidacy count as one slot
A row that cannot file records a reason ; not enforced as a database constraint

Failure and recovery#

Failure What it looks like Repair
Row insert throws during filing One NPP is missing from the ballot The pass isolates the failing row so the rest still file; the row is retried on the next turn
NPP vanishes from the Slate tab A filing failure used to tombstone with no reason Since ticket #1181 the row keeps a visible refusalReason; reassign or pick another candidate
Race over the cap from older data The Slate card reports more than 3 candidates trimOverCapSlates withdraws NPP extras on the next turn
Empty slate re-hydrated after a move NPP reappears in the old race Fixed by tombstoning rather than deleting (#906); a stale slate can be cleared by withdrawing the row
Stale invited rows on an archived slate Never resolve They are ignored by design; archive state is the cleanup
Persistent sync does nothing A new cycle starts with empty boards The race has no prior slate of the same country, party, state and type; the chair assigns again

Connections#

Driven by

Affects

Tests#

File Covers
Decline and accept order, incumbent floor, state bonus tipping
Response pass, filing pass, cap, displacement, trim, closed primary, by-elections
Auto-pick and incumbent-defense suppression
Slot accounting
Reason labels
Slate and template lookup
, .../slate/[electionId]/route.test.ts Board read and priority edits
.../slate/[electionId]/invitations/route.test.ts, .../invitations/[candidateRowId]/route.test.ts Assign and withdraw

Gaps: there is no unit test file for or themselves (they are covered only through the resolver and route tests), and no end-to-end test that the pre-turn chip always matches the turn result.

Known issues and history#

Last checked: 2026-10-29, version 1.18.0

Ask