A House Divided A House DividedDocumentation
↵
Changelog
Game Design/World & Simulation

Turn Processing Submodules

Last updated 2026-10-29
Source files

Historical record: this page describes the turn processing submodule layout as of the early turn-system refactor. For current behaviour see The Turn Processor (as shipped).

The live turn is driven by processTurn() in and entered through authenticated GET /api/cron/turn. It runs adapters from ; each adapter calls individually named phases through the runtime wrapper in .

Stable invariants#

Where code lives#

Concern Location
Orchestrator
Adapter registry
Phase runtime and telemetry
Large state-effects adapter
Domain implementations src/lib/turn/ and the owning domain modules
Per-country election phase list
HTTP entry

Counts and exact membership change frequently. Do not copy a numbered phase list from an older design document into new code or operational runbooks; inspect the registry or the as-shipped page instead.

Ask