pub enum RiskSignalKind {
Novelty,
TestReachability,
PatternDeviation,
InvariantAdjacency,
SelfFlaggedUncertainty,
}Expand description
Why a signal fired. Variants are wire-stable; new variants are appended.
Variants§
Novelty
New control-flow shape that doesn’t appear elsewhere in the repo.
TestReachability
No test in the repo statically reaches the changed symbol. Reasoning text must clarify this is static reachability via tree-sitter, not runtime coverage.
PatternDeviation
New code structurally diverges from local exemplars (sibling functions or the prior version of the same symbol).
InvariantAdjacency
An invariant or enforces-tagged annotation lives on the changed
symbol.
SelfFlaggedUncertainty
Agent flagged uncertainty about its own output. Passthrough from the captured state’s provenance.
Implementations§
Source§impl RiskSignalKind
impl RiskSignalKind
pub fn as_str(&self) -> &'static str
Sourcepub fn priority_rank(&self) -> u8
pub fn priority_rank(&self) -> u8
Render-time priority. Lower numbers surface first when budgeting.
See state_review::budget for the full algorithm.
The order is load-bearing: changing it changes which signals reviewers see first when many fire on the same state. If you bump these numbers, update the budgeting test goldens too.
Trait Implementations§
Source§impl Clone for RiskSignalKind
impl Clone for RiskSignalKind
Source§fn clone(&self) -> RiskSignalKind
fn clone(&self) -> RiskSignalKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RiskSignalKind
Source§impl Debug for RiskSignalKind
impl Debug for RiskSignalKind
Source§impl<'de> Deserialize<'de> for RiskSignalKind
impl<'de> Deserialize<'de> for RiskSignalKind
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>,
impl Eq for RiskSignalKind
Source§impl Hash for RiskSignalKind
impl Hash for RiskSignalKind
Source§impl PartialEq for RiskSignalKind
impl PartialEq for RiskSignalKind
Source§fn eq(&self, other: &RiskSignalKind) -> bool
fn eq(&self, other: &RiskSignalKind) -> bool
self and other values to be equal, and is used by ==.