pub struct SimConfig {
pub cycles: usize,
pub cost_per_cycle: u128,
pub revenue_per_accepted_task: u128,
pub submit_quality: u8,
}Expand description
The knobs of a forecast run. Treasury / reward units are $LH wei (u128),
matching work_cycle::State::treasury.
Fields§
§cycles: usizeHow many cycles to project (the forecast horizon). The run also stops
early if the treasury can’t afford a cycle — see Forecast::ran_out_at.
cost_per_cycle: u128$LH (wei) the company BURNS each cycle regardless of work — the inference
floor (~0.01–0.2 $LH/turn in the live system). Debited every cycle; a
cycle the treasury can’t cover is the runway wall.
revenue_per_accepted_task: u128$LH (wei) EARNED from an external paying caller per task the company
accepts this cycle (the x402 / outside-payment income that the
Accept-and-Payout of an internal task notionally fulfils). Added to the
treasury and booked as accounting::Ledger::period_revenue.
submit_quality: u8The fixed 1..=5 quality at which every Assigned task is assumed to be
delivered each cycle (the documented modeling assumption above). A
submission >= a task's criteria.min_quality is accepted (earns revenue),
below it is rejected (pure burn). Sweep it for best/worst-case forecasts.