pub enum GateStatus {
Pass,
Warn,
Fail,
Skipped,
}Expand description
What a gate concluded on this run.
Four-valued rather than a boolean because audit’s verdict has a warn tier
(crates/cli/src/cli_report.rs maps it onto three conclusions) and because
a gate can stand down without passing. Widening a published boolean later
would retype a required field and bump every carrying envelope, so the width
is decided here.
Variants§
Pass
The gate ran and its condition did not hold.
Warn
The gate ran and reached a warn tier that does not fail the run. Only
audit-verdict can report this today.
Fail
The gate ran and its condition held.
Skipped
The gate could not judge this run and deliberately stood down: a
change-scoped baseline comparison, health --report-only, or a security
advisory shadowed by a configured gate. Distinct from pass, which
asserts the condition was evaluated and did not hold.