`src/engine.rs` — the engine module root
The re-export root for the whole engine: pub use bare::*; pub use core::*; — so loopctl::engine::{BareLoop, RunConfig, Loop, ...} all resolve from here.
Key items
engine::BareLoop— the driver (frombare).engine::core::{Loop, Run, Session, Turn, RunConfig, TurnMode, LoopMachine, MachineState, MachineStep, MachineOutcome, MachinePolicy}(fromcore).
Behavior notes
- Two namespaces behind one door:
engine::coreholds the brain-side types,engine::barethe driver — most user code imports fromenginedirectly and never notices.
Deep dives: state machine · driver. Sibling root: engine-core.md.