agent_doc_sqlite/lib.rs
1//! agent-doc-sqlite — SQLite-backed persistence layer for agent-doc.
2//!
3//! This crate isolates the bundled-SQLite C build (`rusqlite`'s slowest build
4//! dependency) from `agent-doc-orchestration` recompiles. It depends only on
5//! `agent-doc-core` (pure document data layer), so editing orchestration logic
6//! no longer pulls the SQLite amalgamation into that crate's build graph.
7//!
8//! Members:
9//! - `archive_index` — derived sqlite index over compacted-turn markdown archives.
10//! - `op_log` — durable operation log (actor + causal/Lamport tagging) for the
11//! operation-scoped drift model (`#op-scoped-drift-1`).
12//! - `state_store` — project-controller actor/lease/dispatch/queue/cycle/
13//! diagnostic/admin/recovery/layout SQLite state plus the storage and status
14//! types those queries use.
15
16pub mod archive_index;
17pub mod op_log;
18pub mod state_store;
19
20pub use state_store::{
21 ActorLastTransition, ActorRecord, ActorState, ActorTransitionStatus, ControlPlaneStoreCounts,
22 DispatchAttemptStatus, ProjectionDiagnosticStatus, SessionOperatorStatus,
23 SupervisorLeaseStatus,
24};