Skip to main content

mentedb_core/
tier.rs

1//! Memory tiers: cognitive-inspired storage hierarchy.
2
3use serde::{Deserialize, Serialize};
4
5/// Memory tiers inspired by human cognitive architecture.
6#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize, PartialOrd, Ord)]
7pub enum MemoryTier {
8    /// Active conversation context. Ultra-fast, limited capacity.
9    /// Analogy: human working memory (~7 items).
10    Working = 0,
11    /// Recent interactions and events. Fast retrieval with temporal decay.
12    /// Analogy: human episodic memory.
13    Episodic = 1,
14    /// Consolidated facts, concepts, and relationships.
15    /// Analogy: human semantic memory.
16    Semantic = 2,
17    /// Learned procedures, workflows, and skills.
18    /// Analogy: human procedural/muscle memory.
19    Procedural = 3,
20    /// Long-term storage. Compressed, immutable, sealed.
21    /// Analogy: human long-term memory archives.
22    Archival = 4,
23}