Skip to main content

services/
lib.rs

1//! Ultron's local services, served to the Python kernel as host operations (RLM-first: the model's only tool stays
2//! `rlm`; these are kernel APIs reached through `refinements.*`, `gates.*` and `rlm.host_request`):
3//!
4//! - [`local`]: refinements (lessons, instruction / skill / agent changes) with proposal, approval, activation,
5//!   rejection and rollback over one event ledger anchored to the conversation branch, and the experiment history
6//!   (`ultron/local-services.ts`);
7//! - [`validation`]: the worker's activation checks for skill proposals and instructions
8//!   (`ultron/refinement-validation.ts`);
9//! - [`gates`]: release gates, frozen definitions and recorded baseline-versus-candidate comparisons
10//!   (`ultron/release-gate.ts`);
11//! - [`session_values`]: these documents (and the task journal, definitions, usage ledger and memory journal) as
12//!   values of the session, so resume and fork restore matching state.
13//!
14//! The host enforces the guarantees (protected targets, capability non-escalation, evidence, versions, frozen gate
15//! definitions, append-only history); nothing here prompts the user or calls a model.
16
17pub mod gates;
18pub mod local;
19pub mod session_values;
20pub mod validation;
21
22pub use gates::ReleaseGateModule;
23pub use local::{
24    Branch, BranchSource, LocalOptions, LocalServices, LocalServicesModule, instruction_hook, refinement_view,
25};
26pub use session_values::{SessionDocument, SessionValues};
27pub use validation::validate_refinement_content;