Expand description
Execution mode and the mode-driven gate decision.
Mode is a per-session CLI flag on devflow start — there is no config file
and no per-phase toggling.
- Auto: Define and Plan run once. Code ↔ Validate auto-loop until clean.
Then Ship. The only human gate is at Ship — unless Validate fails
MAX_CONSECUTIVE_FAILUREStimes in a row, which forces a gate. - Supervise: Same pipeline, but Validate always fires a gate to Hermes → Human before advancing to Ship.
Structs§
- Mode
Parse Error - Error returned when parsing an unsupported mode name.
Enums§
- Mode
- How DevFlow drives the pipeline for a session.
Constants§
- MAX_
CONSECUTIVE_ FAILURES - Number of consecutive Validate failures in Auto mode before a gate is forced.
- MAX_
INFRA_ FAILURES - Ceiling for
crate::state::State::infra_failuresbefore an infrastructure-class fault chain (OOM/ResourceKilled, missing agent binary/AgentUnavailable) forces a terminal gate (D-08, 17-01). - MAX_
PREFLIGHT_ RETRIES - Ceiling for
crate::state::State::preflight_retriesbefore a preflight gate’sGateAction::LoopBackrecursion aborts rather than polling another 7-day gate timeout (18f, D-18f backstop). A failing preflight is a readiness problem the operator is actively being asked about right now, not a transient infrastructure blip, so this takes the tighterMAX_CONSECUTIVE_FAILURES-style ceiling rather than the more lenientMAX_INFRA_FAILURES. Unlike those two counters, this one is NOT reset bytransition()— it is reset by preflight success and by human approval (GateAction::Advance), both insiderun_preflight(devflow-cli/src/main.rs).
Functions§
- transition_
resets_ consecutive_ failures - Whether
transition()should zerocrate::state::State::consecutive_failureswhen moving fromfromtoto.