mati 0.1.0

Engineering knowledge that survives turnover
Documentation
//! Storage layer — SurrealKV (M-03)
//!
//! Two trees:
//! - `knowledge.db` — all user-visible records, versioning enabled
//! - `sessions.db`  — session analytics and hook events, 90-day retention
//!
//! Path: `~/.mati/<slug>/knowledge.db` and `sessions.db`

pub mod db;
pub mod durability;
pub mod enforcement;
pub mod extraction;
pub mod gotcha_ops;
pub mod migrations;
pub mod negative_exemplar;
pub mod record;
pub mod repair;
pub mod session;

pub use db::{derive_slug, KnowledgeWriteOp, Store};
pub use durability::Durability;
pub use migrations::CURRENT_SCHEMA_VERSION;
pub use record::{
    AgentKind, Category, ConfidenceScore, ContextPacket, DeviceId, FileRecord, GapType,
    GotchaRecord, KnowledgeGap, OnboardingScore, Priority, QualityScore, QualitySignal,
    QualityTier, Record, RecordLifecycle, RecordSource, RecordVersion, StaleReviewEntry,
    StaleReviewPayload, StalenessScore, StalenessSignal, StalenessTier, TodoComment, TodoKind,
    TombstoneReason,
};