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

Japan - Elections & Bills

Last updated 2026-10-29
Source files

Summary#

Technical rules for how Japan elects its Diet, how the Prime Minister can dissolve the lower house, and how a bill moves between the two chambers. Both Diet chambers and the regional bodies use proportional seat sharing by largest remainder (the "Hare quota" method). The Shūgiin can be dissolved by the PM (snap election); the Sangiin cannot. Bills pass through Cabinet review, Shūgiin and Sangiin, with Shūgiin supremacy on rejection.

Player guide: Japan. Country structure: Japan.

Rules#

Electoral System#

Japan uses Hare-quota proportional representation (pr_hareQuota) for Shūgiin, Sangiin, and Regional Council seats (electionSystems in , and every era override under src/lib/countries/jp/eras/). A mixed-member system is not used for regular races. The 1991 world carries a frozen record of the pre-1994 multi-member law (sntv-1991-v1) that fixes its seat map, and a bill-gated 1994 reform to 300 district plus 200 list seats can replace it from 1994 on (). Some description strings in the country config still say "FPTP"; the electoral system key is what the engine reads.

Seat totals depend on the starting preset (getJpShugiinSeats, getJpSangiinSeats in ):

Preset Shūgiin Sangiin Coalition threshold in config Majority the live government uses Source
Modern default (2019 and later) 465 248 233 233 jpSeats.ts, institutionsFacts.ts
1953-default 466 248 234 234 jpSeats.ts, eras/1953.ts
1991-default 512 252 233 (inherited, not overridden) 257 jpSeats.ts, eras/1991.ts

The live majority is floor(seats / 2) + 1 of the live chamber (lowerChamberMajorityThreshold in ), stored on the government formation as majorityThreshold. The config coalitionThreshold is only a fallback.

How seats are shared#

allocateSeats calls largestRemainderSeats (src/lib/turn/election/seatAllocation.ts) for each regional race:

  1. Each party's candidate votes are pooled. A party enters the pool only if its pooled votes are at least minShare of all votes cast in the race.
  2. exact = partyVotes / poolVotes x seats; each party gets floor(exact).
  3. Remaining seats go to the largest fractional remainders.
  4. If nobody clears the gate, seats fill in ranked order. Sub-threshold parties are never re-admitted next to qualifying ones.

minShare comes from getMultiSeatMinShare (src/lib/turn/election/rules/seatEligibility.ts):

Election type Gate
shugiin, snap_shugiin, regionalCouncil 0.10 (STANDARD_MULTI_SEAT_MIN_SHARE)
sangiin No entry in the function, so it falls through to the default 0.20

Seat maps#

Region Shūgiin Sangiin Class 1 Class 2
Hokkaido 12 7 4 3
Tohoku 37 20 10 10
Kanto 150 80 40 40
Chubu 81 44 22 22
Kansai 82 44 22 22
Chugoku 28 14 7 7
Shikoku 14 8 4 4
Kyushu 61 31 16 15
Total 465 248 125 123

Source: (getJpSangiinClassSeats). Class 1 is ceil(regionSeats / 2), Class 2 is floor(regionSeats / 2).

The 1994 reform (1991 world only)#

isJapanShugiinReformEligible requires preset 1991-default, country JP and a game year of 1994 or later. Once the reform bill passes, new races use mixed-1994-v1, frozen per race in japanShugiinRules (ruleVersion, districtSeats, listSeats). Old campaigns keep SNTV 512 until an explicit approval.

Region District seats (JP_SHUGIIN_1994_DISTRICT_SEATS) List seats (JP_SHUGIIN_1994_LIST_SEATS)
HOK 13 9
TOH 26 16
KAN 85 63
CHU 57 36
KNS 47 33
CGK 21 13
SHI 13 7
KYU 38 23
Total 300 200

Election Types#

Shugiin (House of Representatives)#

Sangiin (House of Councillors)#

Governor#

Regional Council#

Snap Elections#

The PM can dissolve the Shugiin and trigger a snap election.

Snap rules#

Effects#

triggerSnapElection runs these steps in order:

  1. All active/upcoming regular Shugiin elections and Shugiin by-elections are cancelled, and their candidates withdrawn.
  2. In-progress Shūgiin bills are failed (failInProgressBills, statuses in LOWER_CHAMBER_FAIL_STATUSES). Sangiin-origin, Cabinet-review, and enrolled bills are preserved.
  3. Fresh snap elections spawn for all 8 regions, starting immediately.
  4. Every sitting Shūgiin member is vacated (vacateDissolvedLowerChamber: official records deleted, currentOffice cleared on characters and NPPs).
  5. snapElectionsUsed is incremented and lastSnapElectionTurn stamped.
  6. The PM is vacated and the government resets to "pending" (unformGovernmentAndVacatePM), arming the 96-turn vacancy clock; a new PM appointment process begins.
  7. After resolution, the next regular Shūgiin cycle is anchored at the snap election's end turn plus 192 turns (planNextLowerChamberCycle).

A snap imposed by a peace settlement (reason: "regime-change") spends no snap allowance and does not shift the regular calendar.

Tracking#

API#

Major Party Spoiler Modeling#

Vote accumulation still uses configured major-party sets when applying spoiler redistribution before PR allocation ():

Government Formation#

Parliamentary system matching the UK pattern:

  1. Post-election: largest party leader nominated as PM
  2. PM appointment vote in Shugiin (lower house only)
  3. Coalition negotiation if no majority (the majority is floor(seats / 2) + 1, 233 for the modern preset)
  4. Minority government attempt if no coalition: a bloc with at least ceil(seats x 0.1538) seats (MINORITY_SEAT_FRACTION, ; 72 of 465) may propose a PM
  5. No-confidence vote handling (48-turn cooldown, NO_CONFIDENCE_COOLDOWN_TURNS in )

If no PM is appointed within 96 turns of the government entering "pending" (PM_VACANCY_DEADLINE_TURNS in , stored as pmVacancyDeadlineTurn), an automatic snap election fires with limits bypassed.

Bills - Bicameral Lifecycle#

Diet Bill Flow#

Cabinet-origin:
  "cabinet_review" → "active" (Shugiin) → "active_other" (Sangiin) → "signed"
                                                 ↓ reject
                                           "override_shugiin" → "signed" / "failed"

Shugiin-origin (Diet member):
  "active" (Shugiin) → "active_other" (Sangiin) → "signed"
                              ↓ reject
                        "override_shugiin" → "signed" / "failed"

Sangiin-origin (Diet member):
  "active" (Sangiin) → "active_other" (Shugiin) → "signed"
                               ↓ reject
                            "failed"   (no override - Shugiin supremacy)

Key Differences from US System#

Cabinet-Origin Bills#

Diet-Member Bills#

Any seated Shūgiin or Sangiin member may propose a national bill.

Data#

Collection Read Written Player-visible
governmentFormations (_id: "JP") status, snapElectionsUsed, lastSnapElectionTurn, pmVacancyDeadlineTurn, pmCharacterId, majorityThreshold snapElectionsUsed, lastSnapElectionTurn, status (to pending), PM fields cleared, pmVacancyDeadlineTurn Government page, yes (counters partly)
elections active and upcoming shugiin rows and by-elections status: "cancelled" on dissolved races; new snap_shugiin rows (cycle, electionYear, startTurn, primaryEndTurn, endTurn, totalSeats, allocationMethod, japanShugiinRules, imposedSnap) Yes
electionCandidates rows of cancelled races status: "withdrawn", withdrawnAt Yes
electedOfficials seated Shūgiin and Sangiin members (votes are scoped to current holders) Shūgiin rows deleted on dissolution; seat rows written at resolution Yes
characters, npps currentOffice currentOffice: null for dissolved Shūgiin members Yes
bills status, currentChamber, originChamber, votes, otherChamberVotes, votingEndsAt status, currentChamber, failedAt Yes
billWhips Shūgiin whips for the bill deleted on entering override_shugiin Whip owners
cabinetMembers player-held positions (for quorum and voters) no Yes
noConfidenceVotes active vote blocks a PM snap no Yes
seats, states seat totals per region, region list no Seat maps, yes
countryGameStates (_id: "JP") jpShugiinElectoralMandate set when the 1994 reform bill passes No
gameState currentTurn, preset no No

Configuration#

Setting Default and where set Effect
gameState.preset world seed (1953-default, 1991-default, or modern) Seat totals, era overrides, 1994 reform eligibility
electionSystems (lowerChamber, upperChamber, subNationalChamber) pr_hareQuota in and each era file Chooses the allocation path
lowerElectionSystem.snapElectionsAllowed true (institutionsFacts.ts); upperElectionSystem.snapElectionsAllowed false Gates the snap API and the vacancy watcher
termYears, seatsContested, staggeredClasses 4 / all / (6, partial, 2 classes) in institutionsFacts.ts Cycle shape
coalitionThreshold 233 in institutionsFacts.ts, 234 in eras/1953.ts Fallback only, see the seat table
majorPartyIds ["ldp", "cdp"], ["ryo", "jsp"] in 1953 Spoiler sets
cabinetBillsEnabled true for JP only (institutionsFacts.ts) Enables the Cabinet-review route
cabinetEligibleChamberKeys ["shugiin", "sangiin"] Who can sit in Cabinet
DEFAULT_DURATIONS All election window lengths
SNAP_ELECTION_LIMIT, SNAP_ELECTION_COOLDOWN_TURNS 2, 336 in snapElection.ts PM snap gates
PM_VACANCY_DEADLINE_TURNS, NO_CONFIDENCE_COOLDOWN_TURNS 96, 48 Government clocks
jpShugiinElectoralMandate unset until the reform bill passes Switches new races to the 1994 mixed rules

There are no per-world feature flags for the Diet bill flow itself.

Timing#

PM call (or 96-turn vacancy watcher)
  -> triggerSnapElection
       cancel regular Shugiin races -> fail Shugiin bills -> spawn snap_shugiin x8
       -> vacate Shugiin seats -> count snap -> PM vacated, government "pending"
  snap runs 48 turns (24 + 24) -> resolves per region
  -> PM appointment vote (Shugiin) ... bills frozen until government forms
  -> next regular Shugiin anchored at snap end + 192

Worked trace#

Seat sharing. A Shūgiin region elects 14 seats. 104,000 votes are cast: A 49,000, B 31,000, C 18,000, D 6,000. The gate is 10% of 104,000 = 10,400, so D (5.8%) is out. Pool votes are 98,000. Exact shares: A 49,000 / 98,000 x 14 = 7.0000, B 4.4286, C 2.5714. Floors: 7, 4, 2 (13 seats). Remainders: A 0, B 0.4286, C 0.5714, so C takes the last seat. Result: A 7, B 4, C 3, D 0. The same votes in a Sangiin race with the 0.20 gate (20,800 votes): only A (47.1%) and B (29.8%) qualify, C at 17.3% does not. Pool 80,000: A 8.575, B 5.425, floors 8 and 5, A has the larger remainder, so A 9, B 5, C 0.

Snap election. On turn 10,000 a PM with no previous snaps calls one. The snap lasts 48 turns, so primaries end on turn 10,024 and the general on 10,048. The next regular Shūgiin race is anchored to 10,048 + 192 = 10,240, so it spans turns 10,048 to 10,240 with its general starting at 10,216. snapElectionsUsed becomes 1 and lastSnapElectionTurn is 10,000, so the next call is refused until turn 10,336 (336 turns later). A call is refused if the used count is already 2. Vacating the PM arms the vacancy clock at pmVacancyDeadlineTurn = 10,000 + 96 = 10,096; if the government is still pending at that turn, the watcher fires an automatic snap that ignores both gates.

Bill. A Shūgiin-origin bill passes the Shūgiin at 24 hours, then the Sangiin rejects it (simple majority of votes cast needed, a tie fails). It moves to override_shugiin, whips are cleared, and the Shūgiin needs 2/3 of votes cast: with 300 votes cast, 200 are needed, 199 fails the bill.

Edge cases and limits#

Invariants#

Invariant Enforced by
Seats awarded in a race sum to the race's seat total largestRemainderSeats; tested in src/lib/turn/election/largestRemainderSeats.test.ts. A runtime cap scales down any over-allocation in allocateSeats
Class 1 plus Class 2 equals the regional Sangiin total getJpSangiinClassSeats; tested in
Shūgiin supremacy: Sangiin-origin bills never reach override JP_NATIONAL_CONFIG.onRejectFn; tested in
At most 2 PM snaps per appointment and 336 turns between them triggerSnapElection; tested in src/lib/turn/snapElection.test.ts
A dissolution never strands the country without races Region check before any write; tested in snapElection.test.ts
One cabinet bill in review per country Route check; no dedicated test found
1994 reform race seat split is law-consistent (300 + 200) japanShugiinFrozenRegionCapacity; tested in

Failure and recovery#

Connections#

Driven by:

Affects:

Tests#

File Covers
src/lib/turn/snapElection.test.ts Snap trigger, limit, cooldown, VONC block, bill failure, cycle numbering, JP 1994 rules on snap races, imposed snaps
Auto-snap watcher
Diet bill transitions, override, cabinet review majority and tie
src/lib/turn/election/seatAllocation.test.ts, largestRemainderSeats.test.ts Allocation method per preset, largest remainder
src/lib/turn/election/rules/seatEligibility.test.ts Gate values (Shūgiin 0.10)
Seat maps and class split
1994 reform seat capacity
Cabinet-bill route
Snap API

Gaps: no test pins the Sangiin gate value; no test for planNextLowerChamberCycle with a JP snap; the Cabinet 2-holder quorum rule is not covered by a named test here.

Known issues and history#

Last checked: 2026-10-29, version 1.18.0

Ask