Skip to main content

Crate calandria_sim

Crate calandria_sim 

Source
Expand description

Deterministic execution and virtual capabilities for Calandria duties.

The crate owns one virtual-time domain, bounded typed deliveries, explicit owner turns, deterministic scheduling, transactional effects, and immutable post-action monitoring. It performs no I/O, starts no threads, reads no wall clock, and obtains no ambient entropy.

Re-exports§

pub use action::ActionId;
pub use action::ActionKey;
pub use action::ActionKind;
pub use action::ActionMeta;
pub use action::ActionRecord;
pub use action::ReadySet;
pub use clock::ClockError;
pub use clock::VirtualClock;
pub use entropy::EntropySeed;
pub use entropy::EntropyStreamId;
pub use entropy::SplitMix64;
pub use event::Delivery;
pub use event::EventId;
pub use event::EventToken;
pub use event::TimelineId;
pub use model::ActionContext;
pub use model::CancelFailure;
pub use model::DutyId;
pub use model::Model;
pub use model::ObservationError;
pub use model::ObservationFailure;
pub use model::SendError;
pub use model::SendFailure;
pub use model::Topology;
pub use model::TopologyError;
pub use plan::Planned;
pub use scheduler::Fifo;
pub use scheduler::Replay;
pub use scheduler::ReplayDivergence;
pub use scheduler::ReplayPosition;
pub use scheduler::RoundRobin;
pub use scheduler::Scheduler;
pub use scheduler::Seeded;
pub use scheduler::SeededError;
pub use script::ExactScript;
pub use script::Plan;
pub use script::ScriptBuildError;
pub use script::ScriptBuildFailure;
pub use script::ScriptFailure;
pub use script::ScriptLimits;
pub use script::ScriptStep;
pub use simulation::DutySnapshot;
pub use simulation::InjectionError;
pub use simulation::InjectionFailure;
pub use simulation::KernelFailure;
pub use simulation::LimitFailure;
pub use simulation::Monitor;
pub use simulation::NoopMonitor;
pub use simulation::RunEnd;
pub use simulation::RunError;
pub use simulation::RunReport;
pub use simulation::Simulation;
pub use simulation::SimulationBuildError;
pub use simulation::SimulationBuildFailure;
pub use simulation::SimulationLimits;
pub use simulation::SimulationPhase;
pub use simulation::SimulationSnapshot;
pub use simulation::SimulationView;
pub use simulation::Step;
pub use simulation::StepError;
pub use timeline::ScheduleError;
pub use timeline::ScheduleFailure;
pub use timeline::Timeline;
pub use timeline::TimelineLimits;
pub use timeline::TimelineSnapshot;
pub use trace::Trace;
pub use trace::TraceEntry;
pub use trace::TraceError;
pub use trace::TraceLimits;
pub use trace::TraceSnapshot;

Modules§

action
Canonical action identity, readiness, and committed action records.
clock
Virtual monotonic time advanced only by the simulation owner.
entropy
Explicit portable entropy streams for deterministic scheduling and scenarios.
event
Stable identity and ownership envelopes for scheduled events.
model
Typed adaptation of concrete owner semantics to deterministic execution.
plan
Finite delayed outcomes for deterministic capability scripts.
scheduler
Deterministic selection among canonically ordered enabled actions.
script
Exact finite capability scripts with bounded retained ownership.
simulation
Deterministic one- and many-duty execution over one virtual-time domain.
timeline
Bounded virtual-time event ownership with stable same-time delivery.
trace
Bounded causal action traces for deterministic replay.