pub struct WorldConfig {
pub space: Box<dyn Space>,
pub fields: Vec<FieldDef>,
pub propagators: Vec<Box<dyn Propagator>>,
pub dt: f64,
pub seed: u64,
pub ring_buffer_size: usize,
pub max_ingress_queue: usize,
pub tick_rate_hz: Option<f64>,
pub backoff: BackoffConfig,
}Expand description
Complete configuration for constructing a simulation world.
Passed to the world constructor (WP-5b). validate() checks all
structural invariants without producing intermediate artifacts.
Fields§
§space: Box<dyn Space>Spatial topology for the simulation.
fields: Vec<FieldDef>Field definitions. FieldId(n) corresponds to fields[n].
propagators: Vec<Box<dyn Propagator>>Propagators executed in pipeline order each tick.
dt: f64Simulation timestep in seconds.
seed: u64RNG seed for deterministic simulation.
ring_buffer_size: usizeNumber of snapshots retained in the ring buffer. Default: 8. Minimum: 2.
max_ingress_queue: usizeMaximum commands buffered in the ingress queue. Default: 1024.
tick_rate_hz: Option<f64>Optional target tick rate for realtime-async mode.
backoff: BackoffConfigAdaptive backoff configuration.
Implementations§
Source§impl WorldConfig
impl WorldConfig
Sourcepub fn validate(&self) -> Result<(), ConfigError>
pub fn validate(&self) -> Result<(), ConfigError>
Validate all structural invariants.
This is a pure validation pass — it does not return a
ReadResolutionPlan. The world constructor calls
validate_pipeline() directly to obtain the plan.