kian_core/lib.rs
1//! `kian-core` — concept model, session state machine, six-invariant
2//! assertions.
3//!
4//! DESIGN §7 assigns this crate: "Concept model, session state machine,
5//! six-invariant assertions" with key interfaces `SessionId`, `EventKind`,
6//! `Projection`. It is the narrow waist of the system (AGENTS.md constraint
7//! 10): no provider, channel, daemon or super-agent specific code may live
8//! here.
9//!
10//! The event stream is the sole truth (constraint 1): all session state is a
11//! projection of events and projections are disposable and rebuildable.
12//!
13//! Modules:
14//! - [`model`] — concept model (DESIGN §2.1)
15//! - [`events`] — event classification and envelope, schema v0 (DESIGN §3.1, §3.3)
16//! - [`state`] — session state machine and pure projection (DESIGN §2.2)
17//! - [`context`] — model-context projection `derive_model_context` (DESIGN §3.2, constraints 2/3)
18//! - [`control`] — reserved control-envelope convention (ADR-014, durable interrupt intent)
19//! - [`budget`] — the session token budget projection (ADR-055)
20//! - [`memory`] — the `memory/note` fold: fail-closed payload parsing, the
21//! latest-per-subject projection and range verification (MEMORY-MODEL §3)
22//! - [`invariants`] — the six semantic invariants + NoHalfTerminated as assertion predicates
23//! - [`seams`] — seam trait definitions (DESIGN §6.2); impl crates re-export
24
25pub mod budget;
26pub mod confirmation;
27pub mod context;
28pub mod control;
29pub mod events;
30pub mod fs;
31pub mod invariants;
32pub mod memory;
33pub mod model;
34pub mod repair;
35pub mod seams;
36pub mod secrets;
37pub mod state;
38pub mod worker;