mati 0.1.2

An enforcement layer for codebase knowledge: confirmed gotchas gate what AI agents read and edit at the hook level. Not a passive memory store.
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 device;
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 device::stable_device_id;
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,
};