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.
The live review path (daemon local get_review_payload) currently
treats every signal as visible rather than applying a ranked budget
split; keep this order load-bearing for callers that sort by it.
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 more