Skip to main content

brainos_orchestrate/
lib.rs

1//! # Brain Task Orchestrator
2//!
3//! Decomposes user requests into executable task plans, tracks state through
4//! a dependency DAG, coordinates execution with approval gates at the right
5//! moments, and synthesizes outcomes into user-facing summaries.
6//!
7//! This is the "prefrontal cortex" of Brain OS — the planning and
8//! coordination layer that turns "build a feature" into a sequence of
9//! researched, planned, implemented, tested, and delivered steps.
10
11mod actions;
12mod aggregation;
13pub mod decompose;
14mod execute;
15pub mod graph;
16mod lifecycle;
17pub mod orchestrator;
18mod prompts;
19mod replan;
20pub mod state;
21pub mod step;
22pub mod synthesize;
23
24pub use decompose::{DecompositionContext, DecompositionError, LlmDecomposer, TaskDecomposer};
25pub use graph::{GraphError, RollbackAction, TaskGraph};
26pub use orchestrator::{OrchestrateError, TaskOrchestrator};
27pub use state::{StepOutcome, StepState, TaskCounts, TaskPhase, TaskState};
28pub use step::{StepAction, TaskStep};
29pub use synthesize::{format_plan_for_approval, summarize_task};