1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Domain stores for conversation, message, task, plan, and other data persistence.
//!
//! ## Architecture
//!
//! Stores are backend-agnostic via the
//! [`StorageBackend`](crate::databases::traits::StorageBackend) trait.
//! The default backend is [`LanceDatabase`](crate::databases::lance::LanceDatabase).
// ── Domain stores ───────────────────────────────────────────────────────
/// Conversation metadata storage.
/// Cold-tier key fact storage with vector search.
/// Image analysis storage with semantic search.
/// Cross-process lock coordination (SQLite-backed).
/// Mental-model tier — synthesised agent beliefs about patterns.
/// Message storage with vector search (hot tier).
/// Execution plan storage with markdown export.
/// Warm-tier compressed summary storage with vector search.
/// Task and agent state persistence.
/// Tier assignment metadata tracking.
// ── Always available ────────────────────────────────────────────────────
/// Reusable plan template storage (pure logic, no DB dependency).