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

Bills & Legislation

Last updated 2026-10-29
Player wikiBills & Legislation
Source files

Summary#

Technical reference for how a bill is built, costed, voted on, enacted and turned into metric changes. It covers the proposal rules, the status pipeline run by the turn processor, the exact constants and where they live, and the edge cases.

Player guide: Bills & Legislation

In short: a sitting legislator pays action points and national influence to propose a bill with 1 to 3 provisions. The bill walks a per-country status pipeline (origin chamber, second chamber, executive action, optional veto override). On enactment the provisions rewrite base policy rows, move metrics, change budgets, and shift legislator approval among voter groups.

Rules#

Bill types#

Every bill needs a category. Policy bills need at least one provision (legislation type + policy option); custom bills may have no provisions.

Policy bills (current implementation)#

Proposal cost#

Constant Value File
PROVISION_COSTS [5, 10, 15] national influence for the 1st, 2nd, 3rd provision shared/constants/legislation.ts
getProvisionCostTotal(n) cumulative: 5 for one, 15 for two, 30 for three shared/constants/legislation.ts
BILL_PROPOSE_ACTION_COST 10 action points, flat, for any bill (national or state) shared/constants/legislation.ts
npiCost    = sum(PROVISION_COSTS[0 .. n-1])        (n = number of charged provisions)
actionCost = 10                                    (admins pay neither)

Admins are exempt. The propose form shows the balance and the backend deducts on submit (, which charges nationalInfluence). Tariff provisions do not cost NPI; subsidy, end-subsidy, union-law, central-bank-independence and electoral-law provisions use the same ladder as policy provisions (countProvisionsChargedNationalInfluence in shared/constants/legislation.ts). The amounts spent are stored on the bill (proposalNpiCost, proposalActionCost). If the bill is enacted, the action points and NPI spent are refunded to the sponsor (onBillEnacted in ; the action refund is capped at the sponsor's Energy-scaled action cap).

LegislationType fields#

Key fields on the LegislationType interface ():

Field Description
countryScope "us", "uk", "international" and other country codes: which country this type belongs to. UK types are "uk" (see UK Legislation Types below).
effectTargetsWeighted Array of weighted metric targets applied when a bill using this type is enacted.
policyOptions[].metricEffects Per-option { category, metricId, ratePerTurn }, direct additive metric change applied each turn the policy is active. Scaled for ~10-year full reversal: extreme is about +/-0.06 per turn, center = 0.
policyOptions[].annualCostPerCapita Absolute per-capita spending level in $ per year (not a delta). Represents the total program cost at that policy level. $0 = full abolition of the program. Positive = spending; negative = net savings/revenue (e.g., tax increases). Applied to national/state budgets when enacted.
policyOptions[].minimumWageRate (Minimum wage types only) The actual hourly wage in $/hour for this option. Stored alongside the standard economic/social scores so the UI can display the real dollar figure.
positions[].chamber "house", "senate", "commons" or "lords": committee positions for the type.

US tax system, 11-bracket model#

All 9 US tax legislation types (income_tax, corporate_tax, capital_gains_tax, payroll_tax, estate_tax, excise_tax, carbon_tax, wealth_tax, financial_transaction_tax) use an 11-bracket scale (indices 0-10) with LARP-style bill names:

Index Direction Example title pattern
0 Far left "X Expansion and Reform Act"
1-4 Left Progressive-leaning rate bills
5 Center Status quo / baseline rate
6-9 Right Rate reduction bills
10 Far right "X Abolition Act" / "Zero X"

Each bracket has an explicit economic score (-5 to +5), a social score (0 unless cross-axis), an annualCostPerCapita representing total per-capita revenue impact, and a LARP-style title and description. This replaced the prior 6-8 option scale.

Absolute cost model#

annualCostPerCapita on every US legislation option is an absolute spending level, not a delta from baseline:

This contrasts with the old delta model. Re-seeding policies resets to the baseline option's absolute value.

US legislation type changes (v3 overhaul)#

UK legislation types#

The UK has 62 legislation types in the seed catalogue (, re-exported by ), about 44 national (Parliament) and 18 regional (Council) at the time of writing; the per-category counts below are from the earlier 55-type catalogue and are indicative. All have countryScope: "uk". National types have allowedScope: "national"; regional types have allowedScope: "state". Each has 7 policy options (spending types) or 11 brackets (tax types) with LARP-style titles, descriptions, and GBP-per-capita costs. Baseline policy values start at centrist (option #3). They are written to the database by the core seed and can be re-seeded on their own with seedUkLegislation (), an admin-only destructive action.

34 National (Parliament) types across 16 categories: Healthcare (4), Education (4), Economic (2), Infrastructure (2), Environment (2), Law & Justice (2), Defence (2), Foreign Policy (1), Welfare (2), Immigration (2), Labour (2), Housing (2), Governance (3), Media (2), Civil Liberties (2), plus 5 national tax types (Income Tax, NI, VAT, Corporation Tax, Excise/Customs).

14 Regional (Council) types plus 2 regional tax types (Council Tax, Business Rates). Regional types are subject to the budget constraint system: total enacted regional spending cannot exceed the region's budget (Council Tax revenue + Business Rates revenue + Westminster grant).

7 tax types use 11 brackets with explicit rates, LARP-style titles, and economic scores. National taxes: uk_income_tax_rate, uk_national_insurance, uk_vat, uk_corporation_tax, uk_excise_customs. Regional taxes: uk_council_tax, uk_business_rates.

Key national type: uk_local_government_funding controls the Westminster grant to regions. The seated Chancellor of the Exchequer can allocate that pool through the cabinet allocation route; applies the configured percentages, defaulting to an equal split.

UK-specific metrics: 14 metrics unique to the UK (e.g., nhsWaitingTime, childPoverty, housingAffordability, devolutionSatisfaction, bbcTrust). 4 US-only metrics excluded from UK (uninsuredRate, affordabilityIndex, highSchoolGradRate, collegeEnrollment). National effect division uses UK_FEDERAL_MULTIPLIER = 1/12 in shared/constants/formulas.ts (12 regions vs US 50 states); see Federal effect division.

Regional budget constraint (): UK regions operate under a balanced-budget requirement. Revenue = Council Tax + Business Rates + Westminster grant. If enacted spending exceeds budget for more than 1 turn, forced austerity downgrades the most expensive programme one option level per turn until balanced. Property and commercial value bases drift dynamically based on investment levels (25%-300% of baseline guardrails).

Bill lifecycle#

Bills move through a strict status pipeline managed by the turn processor each hour:

Status Meaning
proposed Drafted but not yet active; activated by the lifecycle (activateProposed: true for US)
active Voting open in the origin chamber (24-hour window)
passed_origin Passed origin chamber; pending transmission to second chamber
active_other Voting open in the second chamber (24-hour window)
active_both Both configured chambers voting concurrently (countries that use the concurrent stage)
cabinet_review Parked in a cabinet stage, in country flows that have one
enrolled Passed all required chambers; awaiting presidential action (10-hour window)
signed President signed (or pocket-signed); bill is law
vetoed President vetoed; opens the override window
veto_override Override vote open (24 hours); passing makes the bill law without a signature
override_shugiin Japan's lower-house override of an upper-house rejection (a BillStatus value in )
override_failed Override did not reach two-thirds of seats; bill dies
failed Failed a chamber vote
withdrawn Sponsor withdrew while the bill was proposed or in its first (active) vote

Per-country stage graphs are configs under src/lib/turn/billLifecycle/configs/ (the US one lives in ); the engine is . VOTING_HOURS = 24 and EXECUTIVE_ACTION_HOURS = 10 are in configs/configuredCountry.ts; the US config sets VOTING_HOURS = 24 and PRESIDENT_HOURS = 10 itself.

Proposal#

  1. Cost: Flat 10 action points to propose (BILL_PROPOSE_ACTION_COST) plus cumulative national influence per provision (5 for the first, 15 for two, 30 for three); admins are exempt. The spend is checked and deducted in one conditional database update, so two simultaneous proposals cannot both spend the same balance.
  2. Availability: US, House or Senate members. UK, Commons members. JP, Shugiin or Sangiin members (origin chamber matches the sponsor's seat). Admins can override in all countries.
  3. Required: Category and at least one provision (legislation type + policy option). Category limits which legislation types appear in the form (see GET /api/game/legislation-types?category=...).
  4. Activation: Bill immediately enters active status with a 24-hour votingEndsAt timestamp set at submission.
  5. Origin chamber is recorded from the proposing member's selection (House, Senate, or Joint).

Voting#

  1. Window: 24 hours per chamber.
  2. Vote options: For / Against / Abstain (changeable before voting closes).
  3. Eligibility: Only members of the current chamber may vote.
  4. Result: Simple majority (For > Against; abstentions are neutral). meetsBillPassRule in requires For strictly greater than Against.
  5. Tie votes: A tied vote fails; no tie-breaking vote is cast by the Vice President in the bill engine.
  6. Supermajority bills: nationalize and privatize bills need two-thirds of For plus Against (abstentions excluded, no votes cast fails), except in one-party states where a simple majority applies; war declarations need two-thirds in every government type (getBillPassRule). The two-thirds test is votesFor * 3 >= 2 * (votesFor + votesAgainst) with at least one vote cast. The two-thirds bar supersedes the filibuster threshold.
  7. Re-voting: A member may change their vote at any time while voting is open.

Bicameral process#

  1. Bill opens for voting in the origin chamber (House or Senate).
  2. Voting closes at votingEndsAt; turn processor tallies all votes.
  3. Passed: status advances to active_other for the second chamber with a fresh 24-hour window.
  4. Failed: status set to failed.
  5. Second chamber vote closes the same way; if passed, enrolled.

Presidential action#

Senate filibuster / cloture#

Implemented, US Senate only (); a bill with countryId !== "US" is rejected.

Veto override#

Implemented. A veto opens status veto_override with its own voting deadline (overrideVotingEndsAt / overrideVotingEndsOnTurn), set at veto time to 24 hours later (OVERRIDE_WINDOW_HOURS = 24 in ). The override passes only with two thirds of the seats in each chamber (stage threshold: "twoThirdsSeats"), not two thirds of votes cast; vacancies and abstentions do not lower the bar. Japan's lower house has its own two-thirds override of an upper-house rejection.

Natural metric decay#

Metrics decay toward their baseline at 0.25% of the remaining distance per turn when no active policy is pushing them. This is proportional (exponential) decay, so a metric never overshoots its baseline, and it stops weak laws from leaving a metric permanently displaced after a law expires or is repealed. A metric displaced by 10 points returns to within 1 point of baseline in about 920 turns (the source comment calls this about 19 game years) with no opposing policy.

calculateDecay(current, baseline):
  distance = current - baseline
  if |distance| < DECAY_THRESHOLD: return baseline
  return current - distance * DECAY_RATE

Federal effect division#

Federal bills apply their metric effects to every state or region. On the per-turn tick path each state receives only a fraction of the full effect, so a single federal bill cannot dominate state-level metrics and the per-state effects sum to roughly the intended national total.

Constant Value File
FEDERAL_MULTIPLIER 1/50 (US, 50 states; default for any country without an override) shared/constants/formulas.ts
UK_FEDERAL_MULTIPLIER 1/12 (12 regions) shared/constants/formulas.ts
JP_FEDERAL_MULTIPLIER 1/8 (8 regions) shared/constants/formulas.ts
DE_FEDERAL_MULTIPLIER 1/16 (16 Laender) shared/constants/formulas.ts
NATIONAL_LAW_DECAY_MULTIPLIER 0.21 (decay path only, same for every country) shared/constants/formulas.ts
MAX_EFFECT_PER_LAW 12 (decay-path points one law can move a metric, before the scope multiplier) shared/constants/formulas.ts
POLICY_INTENSITY_GAMMA 0.8 (convexity of intensity to magnitude) shared/constants/formulas.ts

getFederalMultiplier(countryId) returns the per-country value and falls back to FEDERAL_MULTIPLIER. It governs the per-turn tick path (computeTickRates). The decay path in uses the region-count-independent NATIONAL_LAW_DECAY_MULTIPLIER through nationalDecayScope, so national laws decay at the same speed in every country. State-scope laws use a multiplier of 1.

Bill effects#

Policy bills (signed legislation)#

Voter approval impacts#

When a bill is enacted (signed into law or veto overridden), legislators who voted FOR the bill receive approval changes among voter groups based on the policy shift. The groups are the Layer-1 census buckets the vote engine counts (for example education:no_college), not the older voter archetypes:

Component Description
Policy domains 15 domains: education, healthcare, environment, immigration, criminal_justice, defense, economic, welfare, infrastructure, governance, foreign_policy, tax, mediaInformation, technology, agriculture
Bucket affinities Each census bucket has a per-domain affinity, set per country (DOMAIN_BUCKET_AFFINITIES in ; a country with no table falls back to the US one). Positive = likes rightward shifts, negative = likes leftward.
Shift calculation shift is the change in the option's combined economic plus social position score (falls back to the option index when scores are missing). Rightward is positive.
Impact formula impact = shift * affinity * 0.15 * position multiplier (SHIFT_IMPACT_SCALE = 0.15 in src/lib/archetypeAffinities.ts), rounded and clamped to +/-10 per bill.
Position multiplier With position scores: clamp(0.5 + abs(newScore) / 5, 0.5, 1.5), so higher when the new position is more extreme. Without scores (legacy): [1.5, 1.25, 1.0, 0.5, 1.0, 1.25, 1.5][newIndex], default 1.0.
Who gets impacts All legislators who voted FOR the bill (both chambers for federal bills).
When applied Only at enactment (onBillEnacted in ), not during chamber voting.

Implementation: calculateShiftImpacts() in src/lib/archetypeAffinities.ts (the file name is historical; it computes census-bucket impacts), with the affinity tables in . A shift of 0 returns no impacts. See Granular Electorate (as shipped) for the buckets and Archetype Approvals for the retired model.

Detail page (/congress/bills/[id])#

Each bill has a dedicated page showing:

NPP auto-voting#

See NPP System for full documentation. Federal and local NPP legislators now use the same deterministic cross-pressure model:

Admin tools#

Accessible via Admin, Legislation tab:

Action Description
Advance Chamber Skip the current chamber's vote; advance to next stage
Send to President Mark bill as enrolled immediately
Force Sign Sign the bill regardless of chamber status
Force Veto Veto the bill regardless of chamber status
Fail Mark the bill as failed immediately
Reset Reset bill to active with a fresh 24-hour voting window

The turn processor runs processBillLifecycle() () every turn; all status transitions happen automatically without admin intervention in normal play.

Legislative strategy#

Data#

Collections#

Collection Fields read or written Player-visible
bills status, title, summary, category, provisions, sponsorId, coSponsors, originChamber, currentChamber, vote tallies (votesFor, votesAgainst, votesAbstain, votes, otherChamber*), votingEndsAt / votingEndsOnTurn, otherChamberVotingEndsAt / otherChamberVotingEndsOnTurn, presidentActionDeadline / presidentActionDeadlineOnTurn, overrideVotingEndsAt / overrideVotingEndsOnTurn, vetoOverrideVotesFor / vetoOverrideVotesAgainst, filibusterInvocations, preFilibusterStatus, proposalNpiCost, proposalActionCost, voteSnapshot, otherChamberVoteSnapshot, overrideDisplaySnapshot, budgetValidation Mostly yes (bill page). budgetValidation and proposal cost fields are internal
stateBills State and regional bills (own lifecycle in ) Yes
statePolicies scope, stateId, countryId, legislationTypeId, policyOptionId, policyOptionIndex, enactedAt, enactedTurn, enactedBy, economic, social, effectDirection Yes (Policy page, State Laws tab)
legislationTypes Policy options, scores, costs, effect targets (seed data) Yes, through the legislation-types API
characters actions, nationalInfluence (proposal cost and refund), politicalInfluence (filibuster cost), stats.statecraft, statXp.statecraft Own character only
electedOfficials seatsHeld (vote weight, override threshold) Yes
stateMetrics, macroMetrics, stateBaselines Metric values moved by enacted bills and decay Yes
gameState manuallyEnabledSeats (create-department provisions) Partly
gameConfig interstateMoneyWiringEnabled (read when enacting tariff-rate bills) No

APIs#

Base policy and state laws#

Configuration#

There is no single bills setting in gameConfig. Behaviour comes from constants and per-country lifecycle configs.

Setting Default Effect Where
MAX_PROVISIONS 3 Provision cap shared/constants/legislation.ts
PROVISION_COSTS, BILL_PROPOSE_ACTION_COST [5, 10, 15], 10 Proposal cost shared/constants/legislation.ts
VOTING_HOURS, EXECUTIVE_ACTION_HOURS 24, 10 Voting and executive windows
US VOTING_HOURS, PRESIDENT_HOURS 24, 10 US stage windows
activateProposed true for US and configured countries Whether the engine activates proposed bills (type), country configs
Per-country stage graphs UK, DE, IE, JP, one-party, regional Which stages, thresholds and chambers apply src/lib/turn/billLifecycle/configs/
OVERRIDE_WINDOW_HOURS 24 Veto override window
senate_filibuster_rules policy present, direction not -1 Direction -1 abolishes the filibuster statePolicies row, federal
gameConfig.interstateMoneyWiringEnabled off unless true Nets sourced imports when a tariff-rate bill is enacted
Government type onePartyState n/a Nationalize and privatize bills use a simple majority
Bucket affinity tables per country US fallback Approval impact sizes src/lib/countries/<cc>/data/<cc>BucketAffinities.ts

Era presets choose the base policy tables and legislation types in force; a scenario can reseed them with npm run seed:policies:reset.

Timing#

player action (propose, vote, filibuster, sign/veto)   [any time, API route]
   v
turn: nppBehavior            NPP votes cast
   v
turn: billsCampaignsAndActivity
        billLifecycle / country bill phases / stateBillTimers   (parallel)
        -> close windows, tally, advance status, onBillEnacted
   v
turn: social-axis drift      reads new statePolicies rows
   v
following turns: policy effects + decay (processStatePolicyEffects)

Total elapsed time in a sequential bicameral presidential system is up to 24 + 24 + 10 hours, so about 58 hours at most (more if a filibuster adds its delay).

Worked trace#

A US Representative proposes a two-provision bill (income tax cut plus a minimum wage rise) in the House, then it clears both chambers and the President signs.

  1. Proposal cost: 10 action points, and 5 + 10 = 15 NPI (nationalInfluence). The bill enters active with votingEndsAt 24 hours out; proposalNpiCost = 15 and proposalActionCost = 10 are stored on it.
  2. House vote closes with 230 For, 200 Against, 5 Abstain. For exceeds Against (230 > 200), so it moves to active_other with a fresh 24-hour window.
  3. Senate closes 51 For, 49 Against with no filibuster, so the bill becomes enrolled with a 10-hour presidential window.
  4. The President signs inside the window. onBillEnacted applies both provisions, refunds the 10 action points (capped at the sponsor's action cap) and 15 NPI to the sponsor, and grants approval changes to legislators who voted For.
  5. Had a senator filibustered, the Senate deadline moves by round(12 h * statMultiplier): 12 hours at a neutral Statecraft stat (filibusterDelayTurns = max(1, round(12)) = 12). The bar becomes clotureVotesRequired(100) = ceil(0.6 * 100) = 60 For, and 51 For of 100 cast falls short, so the bill is failed.
  6. Approval impact for a For-voter on the tax provision (US tax domain, illustrative scores moving from 0 to +2, so shift = 2 and positionMultiplier = clamp(0.5 + 2/5) = 0.9):
Bucket Affinity Raw impact 2 * affinity * 0.15 * 0.9 Stored
wealth:high 18 4.86 +5
wealth:low -14.75 -3.9825 -4
race:white 45 12.15 +10 (clamped)
  1. Per-turn metric effect afterwards: on the tick path a policy option with ratePerTurn = 0.06 gives each US state 0.06 * (1/50) = 0.0012 per turn. Separately, a metric at 60 against a baseline of 50 with no pushing policy decays to 60 - (60 - 50) * 0.0025 = 59.975 after one turn.

Edge cases and limits#

Invariants#

Failure and recovery#

Connections#

Driven by

Affects

Tests#

Gaps: no dedicated test file for clotureRules.ts (the cloture path is covered through engine tests and the wiki chart tests in ), no test that the refund respects the action cap end to end, and no automated check that the UK type counts on this page match the seed.

Known issues and history#

Last checked: 2026-10-29, version 1.18.0

Ask