KeiSeiKit-1.0/_primitives/_rust/kei-frustration-loop/src/lib.rs
Parfii-bot a4e667de10 KeiSeiKit-public — clean state
Single-commit clean baseline after security scrub of niche-tells,
project codenames, internal jargon, and contributor-email leaks.

Contents:
- 100 Rust crates (_primitives/_rust/)
- 37 agent manifests (_manifests/) + generated specs (_generated/)
- 67 user-invocable skills (skills/)
- 33 hooks (hooks/)
- Composition blocks (_blocks/)
- Documentation (docs/, README.md)
- TS adapter packages (_ts_packages/)
- Assembler (_assembler/)
- Roles (_roles/)
- Templates (_templates/)
- Forgejo CI (.forgejo/)

Author: Denis Parfionovich <info@greendragon.info>

License: see LICENSE.
2026-05-01 12:09:03 +08:00

26 lines
1 KiB
Rust

//! Library surface for `kei-frustration-loop`.
//!
//! Owns the per-user / online learning loop on top of the
//! `frustration-matrix` batch classifier:
//! * `persistence` — per-user firmware paths + atomic file swap
//! * `feedback` — JSONL feedback log (Correct / Wrong / NewCategory)
//! * `nightly` — Phase-0 nightly scan cron hook
//! * `bootstrap` — install-time first-bake of per-user firmware
//! * `auto_train` — feedback-threshold-triggered retrain
//!
//! Constructor Pattern: this crate is the LOOP responsibility — different
//! lifecycle and consumer than `frustration-matrix` (the offline batch
//! classifier + n-gram firmware trainer). Re-exports only.
//!
//! All five modules consume the public surface of `frustration-matrix`
//! (`categories::compile_all`, `Firmware`, `Firmware::train_from_dir`)
//! via path dependency, never via internal helpers.
pub mod auto_train;
pub mod bootstrap;
pub mod feedback;
pub mod nightly;
pub mod persistence;
pub mod cli;
pub mod runners;