A House Divided A House DividedDocumentation
↵
Changelog
Game Design/Elections & Campaigns

Canvassing

Last updated 2026-10-29
Player wikiCanvassing
Source files

Summary#

Canvassing is a player action that directly boosts voter turnout for a specific demographic group in the character's active campaign state - typically the home state, but travelState or primaryCampaignState for active presidential candidates. Unlike ads (which raise favorability) or party GOTV spending (which is passive and automatic), canvassing is an active, targeted intervention that modifies how many voters from a chosen group show up on election day.

Player guide: Canvassing

Source: (the action), (current formula), (where you may canvass), (the charge).

Rules#

Cost#

Targeting#

The player selects a demographic group from two levels:

  1. Category - one of five Layer 1 categories: race, age, education, wealth, ideology.
  2. Group - a specific group within that category (21 groups total):
Category Groups
Race White, Black, Hispanic, Asian, Other
Age Young (18-29), Middle-Aged (30-49), Mature (50-64), Senior (65+)
Education No College, College Educated, Graduate Degree
Wealth Low Income, Middle Income, High Income
Ideology Evangelicals, Environmentalists, Libertarians, Progressives, Patriots, Gun Owners

These 21 groups are the original set. Under current campaign rules the selectable targets come from the voter cells of the character's country and state (GET /api/canvassing lists them), so other countries offer their own groups.

Canvassing targets a single state at a time. The request carries a stateId, but the server resolves the allowed state from the character's active candidacy and rejects anything else:

Character state Canvass target
Active presidential candidate, campaign suspended none - API 403
Active presidential candidate, primary phase, primary state set primaryCampaignState
Active presidential candidate, primary phase, no primary state none - UI disabled, API 403
Active presidential candidate, general phase, travel state set travelState
Active presidential candidate, general phase, no travel state none - UI disabled, API 403
Running mate on an active general-phase ticket the ticket's runningMateTravelState
Any other character homeState

An active presidential candidacy "captures" the canvass target - even at home, a presidential candidate must travelState home to canvass there. This keeps canvassing aligned with the rest of the presidential travel system. Attempting to canvass in any other state returns a 403 error.

Effectiveness formula#

Races inserted under the current campaign rules (campaignRulesVersion >= 1, CAMPAIGN_RULES_VERSION in ) use this formula. Rules are stamped only on newly inserted races, never retrofitted to a race in progress.

CANVASS_BASE_BOOST = 2 (turnout points)
distance²          = ((charEcon - demoEcon)² + (charSocial - demoSocial)²) / 2
campaignFit        = 0.2 + 0.8 × exp(-distance² / 18)
closingMult        = isActiveCampaignSeason ? 2 : 1
boost              = CANVASS_BASE_BOOST × campaignFit² × closingMult

Applied per canvass, count times in a row, by addTurnoutBoost ():

resistance = max(0, sign(boost) × current) / TURNOUT_CAP     // TURNOUT_CAP = 20
current    = clamp(current + boost × (1 - resistance), -20, 20)

Fit is based on the distance between the character's policies.economic / policies.social positions and the target audience's average lean (share-weighted over the voter cells in the bucket). With D as the straight-line gap between the two positions, distance² = D² / 2:

D Fit Boost multiplier (fit squared)
0 1.00 1.00
3 0.82 0.68
6 0.49 0.24
10 0.25 0.06
far 0.20 (floor) 0.04

Fit is squared so that a near match is worth much more than a poor one; the 0.2 floor keeps any audience reachable at a small effect.

Campaign season multiplier: checkActiveCampaignSeason doubles the boost when an active election in the target state, or a national presidential election for the character's country, has endTurn between the current turn and current turn + 4 (inclusive). Elections without an endTurn fall back to an endTime within the next 4 hours (1 turn is 1 game hour). Outside the window the multiplier is 1.

Diminishing returns: resistance applies only in the direction of the boost. A positive boost on a modifier at +10 lands at half strength and reaches zero at +20. A positive boost on a suppressed (negative) modifier is not reduced, so canvassing can recover a bucket that has been pushed down.

Reference values. A perfectly aligned character (boost 2) canvassing from a modifier of 0: 1 canvass gives +2.0, 5 give +8.2, 10 give +13.0, 20 give +17.6, 50 give +19.9. In campaign season (boost 4): 1 gives +4.0, 5 give +13.4, 10 give +17.9. A D = 6 audience (boost 0.49 base) needs far more actions for the same result.

Realized contact: the part of the change that actually landed (after resistance and the cap) is also added to campaignContactModifiers[category][group], clamped to ±20, which the election engine reads separately from the turnout modifier.

Legacy path#

For races without campaign rules, and as a parallel record on every request, the legacy formula (calculateCanvassingBoost, ) writes to modifiers:

BASE_BOOST          = 0.05 (turnout points)
distance            = |charEcon - demoEcon| + |charSocial - demoSocial|
alignmentMultiplier = max(0.1, 1.0 - distance × 0.15)
boost               = BASE_BOOST × alignmentMultiplier × (campaign season ? 2 : 1)

Diminishing returns on this path are symmetric, boost × max(0, 1 - |current| / 20) (applyDiminishingReturns, ), clamped to ±20. A race that predates campaign rules rejects the non-native group names with "This race uses legacy canvassing groups" and accepts only its original groups.

Modifier decay#

All current-rules turnout modifiers (campaignModifiers and campaignContactModifiers), including those set by canvassing, decay toward zero by value × 2^(-1/6) each turn: a half-life of 6 turns (TURNOUT_HALF_LIFE, about 10.9% lost per turn, ). Values under 0.01 snap to 0. The legacy modifiers field decays 2% per turn (DECAY_RATE = 0.02, zero threshold 0.01, ). A single canvass action therefore does not persist indefinitely; sustained canvassing is required to maintain a boost into election day.

How modifiers affect election turnout#

Canvassing modifies stateDemographicTurnout.campaignModifiers[category][group] (current rules, falling back to a copy of modifiers when absent) and the legacy modifiers[category][group] for the target state. During election resolution, deriveGroupTurnout (in ) applies these Layer 1 modifiers to the 12 voter archetypes:

  1. Each voter archetype is composed of Layer 1 demographics with weighted contributions.
  2. For each Layer 1 demographic in the archetype's composition, the state modifier is fetched and multiplied by that weight.
  3. The sum of weighted modifiers is added to the archetype's baseline turnout.

Example: Young Renters (baseline 38% turnout) are heavily composed of the young age group. If a player has canvassed young voters in their state and raised the age.young modifier to +5, Young Renters' effective turnout in that state rises toward 43%. Under current rules that takes about 3 aligned canvasses (3 gives +5.7); under the legacy 0.05 base it would take roughly 100.

Interaction with party GOTV#

Party GOTV spending and player canvassing both write to the same modifier fields in stateDemographicTurnout (party GOTV also uses canvassingBoost from ). They stack additively, both subject to the ±20 cap. Turn processing order:

  1. Decay applied to all modifiers.
  2. Party GOTV boosts applied (passive, budget-driven).
  3. Canvassing effects are applied at request time (immediate), not during turn processing.

Strategy notes#

Data#

Collection: stateDemographicTurnout#

One document per state/region. Canvassing reads and writes this document.

Field Type Notes
_id string State ID (e.g. "PA")
modifiers[category][group] number -20 to +20; legacy field, updated on every request
campaignModifiers[category][group] number -20 to +20; the current-rules turnout modifier
campaignContactModifiers[category][group] number -20 to +20; realized canvass contact, decays like campaignModifiers
lastUpdated Date Set to new Date() on every canvassing write; also the concurrency stamp
lastDecayApplied Date Set by turn decay, not by canvassing

The update is a targeted $set on modifiers.${category}.${group} plus the campaignModifiers and campaignContactModifiers maps - only the chosen group's modifier changes.

Collection: characters#

Canvassing deducts cost from the acting character via $inc (the keyed, idempotent spend in ):

Field Change (per canvass)
funds (or currencyBalances.campaign when forex is on) -100 (anchor, converted to local)
actions -1

Collection: campaigns#

For a running-mate surrogate canvass only: runningMateSurrogateActionsRemaining on the ticket campaign is decreased by count, as the first step of the spend.

Collection: nonAtomicMoneyFlowReceipts#

One receipt per canvass flow, keyed by the idempotency key, with a fingerprint of character:state:path:count. A retry with the same key and fingerprint replays; the same key with a different fingerprint is rejected.

Collection: elections#

Two read-only queries at request time:

  1. Eligibility resolution - for active presidential candidates, joins electionCandidates to elections filtered by electionType: "president", status: "active" to determine the candidate's canvass target state (travel or primary campaign). canUseNativeCanvassTargets reads campaignRulesVersion of the active races in the state to choose the current or legacy path.
  2. Campaign season check - queries for an active election whose state matches the canvass target, or a presidential election of the character's country, with endTurn in the current turn to current turn + 4 (or, for elections without endTurn, endTime within the next 4 hours), to apply the 2× campaign-season multiplier.

Collection: electionCandidates#

Read-only at request time. Eligibility resolution looks up the authenticated character's active candidacies (status: "active") to detect presidential candidacy and read travelState / primaryCampaignState, and active rows where the character is the running mate.

Player-visible: the modifiers feed turnout the character sees in polls and the ledger; the preview response from GET /api/canvassing shows turnoutBefore and turnoutAfter for the chosen group. Receipts and contact modifiers are internal.

Configuration#

Setting Default Where set
COST_FUNDS, COST_ACTIONS, MAX_CANVASS_BATCH 100, 1, 50
CANVASS_BASE_BOOST, TURNOUT_CAP, TURNOUT_HALF_LIFE 2, 20, 6
CAMPAIGN_RULES_VERSION 1 ; stamped on a race at insert (campaignRulesVersion)
Legacy BASE_BOOST, DECAY_RATE 0.05, 0.02 ,
vpSurrogateActionCap 2 (ruleset version of the race)
Forex enabled (isForexEnabled) world setting decides whether the spend field is currencyBalances.campaign or funds
Per-country voter groups country data selectable targets come from the country's voter cells

There is no per-era or per-scenario override of the boost constants; races differ by the rules version stamped on them.

Timing#

Canvassing takes effect immediately upon the API call - the modifier is written to the database in the same request, not queued for turn processing. The lastUpdated timestamp on the StateDemographicTurnout document is updated at the same time. The write carries the lastUpdated it read, so a concurrent turn change returns 409 ("State turnout changed while canvassing") instead of overwriting.

Per turn, the turn processor then runs, in order (demographicsAndPartySetup in ):

request time:  charge (pool draw, funds + actions) -> turnout write
each turn:     turnoutDecay (applyDecayToAllStates) -> partyGOTV
later:         vote accumulation reads the resulting modifiers

Worked trace#

A non-candidate character with policies.economic = 4 and policies.social = 2 canvasses 5 times at the group "Young" in their home state. The group's share-weighted average lean is economic 1, social -1. The current modifier is 0, the legacy modifier is 0, no election is within 4 turns, the character has $1,000 and 10 actions, and the race uses campaign rules.

  1. Cost: 5 × 100 = 500 funds (anchor) and 5 × 1 = 5 actions. Balances become $500 and 5 actions.
  2. Gap: (4 - 1)² + (2 - (-1))² = 9 + 9 = 18. distance² = 18 / 2 = 9 (D = 4.24).
  3. Fit: 0.2 + 0.8 × exp(-9 / 18) = 0.2 + 0.8 × 0.6065 = 0.6852. Squared: 0.4695.
  4. Boost: 2 × 0.4695 × 1 = 0.9391 per canvass.
  5. Five canvasses with resistance current / 20: 0.939, then 0.939 + 0.939 × (1 - 0.047) = 1.834, then 2.687, 3.500, 4.275. The stored campaignModifiers.age.young is 4.275 (rounded to 4.27 in the response, which prints two decimals).
  6. Contact: campaignContactModifiers.age.young rises by the realized 4.275.
  7. Legacy record: distance = |4 - 1| + |2 - (-1)| = 6, alignmentMultiplier = max(0.1, 1 - 6 × 0.15) = 0.1, boost 0.05 × 0.1 = 0.005; five canvasses add about 0.025 to modifiers.age.young.
  8. Next turn: 4.275 × 2^(-1/6) = 3.81. After three turns: 4.275 × 2^(-0.5) = 3.02.

In the final 4 turns the same five canvasses use boost 1.878 and reach 7.78.

Edge cases and limits#

Invariants#

Failure and recovery#

Connections#

Driven by

Affects

Related pages: Demographics (turnout system, modifier decay, GOTV mechanics, deriveGroupTurnout), Campaign Strategy (overall campaign planning), Fundraising & Ads (alternative fund expenditures), Stats & Actions (action point costs and refresh).

Tests#

Known issues and history#

Last checked: 2026-10-29, version 1.18.0

Ask