diff --git a/crates/eureka-state/src/bin/huginn/recipes.rs b/crates/eureka-state/src/bin/huginn/recipes.rs index 8bcc46e..7d1c3b2 100644 --- a/crates/eureka-state/src/bin/huginn/recipes.rs +++ b/crates/eureka-state/src/bin/huginn/recipes.rs @@ -5,6 +5,7 @@ //! reads through `eureka_state::hold`, the decider the heartbeat's gate reads. use clap::{Args, Subcommand}; +use eureka_state::hold::BLOCKING; use huginn_mind::SemanticQuery; use huginn_mind::eureka_pipeline::{Line, PipelineKind}; use serde_json::{Value, json}; @@ -16,8 +17,6 @@ use crate::trouble::Trouble; const GAP_HOME: &str = "eureka-substrate"; /// How many neighbours `precedent` asks the index for. const PRECEDENT_TOP_K: u32 = 10; -/// Severities that block a cut. -const BLOCKING: [&str; 2] = ["Blocker", "High"]; #[derive(Args, Clone, Debug, Default)] pub struct Paging { diff --git a/crates/eureka-state/src/hold.rs b/crates/eureka-state/src/hold.rs index ec1fc24..a065afb 100644 --- a/crates/eureka-state/src/hold.rs +++ b/crates/eureka-state/src/hold.rs @@ -44,6 +44,10 @@ pub fn citing(target: &PipelineRef, role: Option<&str>) -> Citation { } } +/// Severities that block a cut: the one answer to what counts as blocking, read by `huginn findings --blocking` and by a Mind's +/// first line. +pub const BLOCKING: [&str; 2] = ["Blocker", "High"]; + pub fn of_kind(kind: PipelineKind) -> Selection { Selection { schemas: Some(vec![kind.type_id().to_string()]),