Runtime and Tool Configuration
The Rust runtime owns game state and time. Python configuration supplies data
and operator tools. The frozen Python engine’s GameDefines and optimization
configuration have been retired; old coefficient tables do not configure the
live Rust campaign.
Native session
mise run play starts the runtime and Bevy client through
tools/run_observer_session.py. The launcher gives the runtime the writer
connection and gives the client separate observer and known-reader
capabilities.
Input |
Meaning |
|---|---|
|
PostgreSQL writer connection; defaults to the local test service on
|
|
Explicit campaign UUID when the command supports opening a campaign |
|
Absolute state root for |
|
Player data root; client logs use |
|
Rust tracing filter; the launcher also enables its session and client capture filters |
|
Set to |
The launcher accepts --campaign UUID, --new, --preset,
--defines PATH, and --no-build. Its --help output owns the exact
combinations. A new campaign
preserves existing worlds. V5 admission refuses older weekly campaign content.
Simulation Interval
The authoritative Rust clock uses one four-week simulation tick. These constants
are defined in babylon_kernel::clock and are not runtime overrides:
Constant |
Value |
Meaning |
|---|---|---|
|
28 |
Fixed simulation days in one transition and commit |
|
4 |
Weeks represented by one period |
|
13 |
Periods in a modeled 364-day year |
V5 Michigan content validates TICK_DURATION_DAYS = 28 in its authored
parameters and stores the duration in canonical foundation definitions.
Admission refuses a different duration or
an older weekly preset. Observed source units, including QCEW weekly wages,
retain their original meanings. Four-week flow budgets do not multiply opening
stocks, population counts, or per-batch recipes.
Reference tools and Python logging
The retained babylon.config.base.BaseConfig loads .env and supports
DEBUG, TESTING, DATABASE_URL, LOG_LEVEL, LOG_FORMAT,
LOG_DIR, METRICS_ENABLED, and METRICS_INTERVAL. These values belong
to their Python consumers. DATABASE_URL defaults to a SQLite file under the
current working directory’s data/sqlite directory; it is separate from the
Rust campaign’s PostgreSQL connection.
babylon.config.logging_config.setup_logging reads
[tool.babylon.logging] from pyproject.toml and can accept an explicit
logging configuration file. The default handler writes rotating babylon.log
and errors.log files under LOG_DIR. The default directory is the
player data root’s logs directory. Rust client logging uses its own tracing
subscriber and babylon-client.log.
Operational commands
.mise.toml and its included task files define build, data, test, and
simulation commands. Inspect mise tasks and each command’s --help for
current arguments. Run mise run sim:report for 15 four-week periods, or
mise run sim:report 130 for ten modeled years. The report wrapper restarts
at each 13-period boundary and records the actual runtime’s interval in its
validated evidence.
See Debug Simulation Outcomes for report interpretation and Architecture Boundary for the live authority boundary.