babylon.engine.headless_runner
Headless Postgres-backed simulation runner package.
The canonical CLI surface for end-to-end Babylon simulations. A single
run() entry point bootstraps Postgres, hydrates hex state, executes the
tick loop, and emits an LLM-parseable artifact bundle (trace.csv +
summary.json + manifest.json).
Spec: 064-headless-sim-runner
- babylon.engine.headless_runner.run(config)[source]
Execute the headless simulation per
configand emit artifacts.- Return type:
- Returns:
SimulationRunResultdescribing the run outcome.- Parameters:
config (SimulationRunConfig)
Modules
CLI parser for the headless simulation runner. |
|
WorldState ↔ Postgres bridge for the headless runner. |
|
Engine event capture for the headless runner. |
|
Build manifest.json — the artifact-bundle reproducibility fingerprint. |
|
Pydantic entities for the headless simulation runner. |
|
Per-bridge reference-data cache for the spec-066 bridged headless runner. |
|
Build summary.json — terminal aggregates + audit log + performance. |
|
Core headless simulation runner — orchestrates Postgres + tick loop + artifacts. |
|
Predefined scope resolver for the headless simulation runner. |
|
Collect the run's storage footprint for the manifest |
|
Stream the trace.csv artifact from the trace-emission view. |