pub enum Mode {
Auto,
Supervise,
}Expand description
How DevFlow drives the pipeline for a session.
Variants§
Auto
Run the pipeline without human gates until Ship (or repeated failure).
Supervise
Fire a Validate gate to Hermes → Human before Ship.
Implementations§
Source§impl Mode
impl Mode
Sourcepub fn should_gate(self, stage: Stage, consecutive_failures: u32) -> bool
pub fn should_gate(self, stage: Stage, consecutive_failures: u32) -> bool
Whether stage should fire a gate, given how many consecutive Validate
failures have already occurred this session.
- Ship always gates (both modes).
- Supervise gates at every Validate.
- Auto gates at Validate only after
MAX_CONSECUTIVE_FAILURESfailures.
Sourcepub fn should_auto_loop(self, stage: Stage) -> bool
pub fn should_auto_loop(self, stage: Stage) -> bool
Whether a failed Validate at stage may auto-loop back to Code without a
human gate. Auto loops Code↔Validate; Supervise requires human approval.
Trait Implementations§
impl Copy for Mode
Source§impl<'de> Deserialize<'de> for Mode
impl<'de> Deserialize<'de> for Mode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnsafeUnpin for Mode
impl UnwindSafe for Mode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more