Skip to main content

katgpt_types/
slod.rs

1//! SLoD scale-boundary POD type — shared between katgpt-core's SLoD operator
2//! (Plan 235) and katgpt-sense's LOD router. Pure data, zero deps.
3//!
4//! Co-extracted from `katgpt-core/src/slod.rs` (Plan 338 Phase 1) so that the
5//! promoted katgpt-sense crate can depend on the leaf crate only, breaking the
6//! katgpt-core cycle. katgpt-core re-exports this via
7//! `katgpt_core::slod::ScaleBoundary` (bit-for-bit path preserved).
8
9/// A detected scale boundary from the spectral analysis.
10#[derive(Debug, Clone, Copy)]
11pub struct ScaleBoundary {
12    /// Diffusion scale σ at which this boundary was detected.
13    pub sigma: f32,
14    /// Composite boundary score S(σ).
15    pub score: f32,
16    /// Effective rank K* (number of significant eigenmodes) at this scale.
17    pub k_star: usize,
18}