Skip to main content

mlua_swarm/
enhance.rs

1//! Enhance domain — Rust wiring for the Blueprint self-enhancement flow.
2//!
3//! ## Post-refactor scope
4//!
5//! The old Rust implementation (`PatchSpawner` trait + impls, `PatchApplier`,
6//! four `VerifierAdapter` variants, `VerifierChain`, `VerifyContext`,
7//! `VerifyOutcome`) is gone. Everything moved to Pure Lua — see
8//! `scripts/{patch_applier,verifier_router,committer}.lua` and the three
9//! primitive bridges. The patch spawner rides on the `AgentKind::AgentBlock`
10//! axis, driven by an LLM through the `agent-block-core` SDK.
11//!
12//! What stayed on the Rust side:
13//!
14//! - `blueprint::default_blueprint()` — loader for the `default_blueprint.yaml`
15//!   source of truth.
16//! - `blueprint::extend_factory()` — builder that registers the Lua scripts
17//!   and the primitive bridges.
18//! - `EnhanceSetting` — the domain Entity. Its persistence contract lives in
19//!   `crate::store::enhance_setting`; the run log lives in
20//!   `crate::store::enhance_log`.
21
22pub mod blueprint;
23pub mod setting;
24
25pub use setting::{EnhanceSetting, EnhanceSettingInput, EnhanceSettingMeta};