#[non_exhaustive]pub enum Rule {
IncompleteCoverage,
MissingArtifact,
MalformedMetadata,
MockEvidence,
MissingProvenance,
DirtyCheckout,
StaleRunner,
BuildMismatch,
CorrectnessRegression,
MissingDeliverable,
UndispositionedChange,
}Expand description
Why a bundle failed the gate.
Why: the gate’s output is read by an operator deciding whether to close a
milestone, so each finding needs a stable machine-readable key as well as
prose. A single opaque “gate failed” string would send them back to diffing
JSON by hand — the exact cost the first qualification attempt paid.
What: one variant per rejection reason; Rule::as_str is the stable key
the JSON report emits.
Test: bakeoff::tests::rule_keys_are_distinct.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
IncompleteCoverage
A required level (1, 2, or 3) is absent from the bundle.
MissingArtifact
A required per-level artifact is missing or empty.
MalformedMetadata
metadata.json did not parse, or contradicts its own level’s
tcode_report.json.
MockEvidence
The level declares mock/offline evidence, or its verifier ran nothing.
MissingProvenance
A provenance field is empty, "unknown", or zero.
DirtyCheckout
The runner or candidate checkout had uncommitted changes, so its recorded revision does not identify what ran.
StaleRunner
The runner path/revision is inconsistent across levels or differs from the pinned revision.
BuildMismatch
Levels disagree about which tcode build produced them, or the build
differs from the pinned candidate.
CorrectnessRegression
Verifier pass rate or terminal status regressed against the baseline.
MissingDeliverable
A level the baseline covered is absent from the candidate.
UndispositionedChange
A cost/token/turn/duration change exceeded tolerance with no recorded disposition.
Implementations§
Source§impl Rule
impl Rule
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
The stable snake_case key for this rule.
Why: the JSON report and the human report must name a rule identically,
and a caller grepping CI output needs a key that survives rewording.
What: the same literal the Serialize impl emits.
Test: bakeoff::tests::rule_keys_are_distinct.
Trait Implementations§
impl Copy for Rule
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more