Skip to main content

khive_brain_core/
lib.rs

1//! Brain primitives — Beta posteriors, section types, profile state, weight derivation.
2
3pub mod brain_signal;
4pub mod brain_state;
5pub mod posterior;
6pub mod profile;
7pub mod query_class;
8pub mod section_state;
9pub mod section_type;
10pub mod signal;
11pub mod tunable;
12
13pub use brain_signal::{entity_signal, is_recall_positive, BrainSignal};
14pub use brain_state::{
15    validate_brain_state_snapshot, validate_brain_state_snapshot_with_capacity, BrainState,
16    BrainStateSnapshot,
17};
18pub use posterior::{BetaPosterior, EntityPosteriors};
19pub use profile::{
20    resolve_consumer_profile, BalancedRecallSnapshot, BalancedRecallState, ConsumerKind,
21    ProfileBinding, ProfileLifecycle, ProfileRecord,
22};
23pub use query_class::compute_query_class;
24pub use section_state::{
25    derive_deterministic_weights, derive_weights, SectionPosteriorSnapshot, SectionPosteriorState,
26    DEFAULT_ESS_CAP, DEFAULT_EXPLORATION_EPOCH, DEFAULT_SECTION_WEIGHT_FLOOR, DEFAULT_TAU_0,
27    DEFAULT_TAU_EXPLOIT,
28};
29pub use section_type::SectionType;
30pub use signal::{FeedbackEventKind, FeedbackSignal};
31pub use tunable::{PackTunable, ParameterDef, ParameterSpace};