Skip to main content

Crate brainos_orchestrate

Crate brainos_orchestrate 

Source
Expand description

§Brain Task Orchestrator

Decomposes user requests into executable task plans, tracks state through a dependency DAG, coordinates execution with approval gates at the right moments, and synthesizes outcomes into user-facing summaries.

This is the “prefrontal cortex” of Brain OS — the planning and coordination layer that turns “build a feature” into a sequence of researched, planned, implemented, tested, and delivered steps.

Re-exports§

pub use decompose::DecompositionContext;
pub use decompose::DecompositionError;
pub use decompose::LlmDecomposer;
pub use decompose::TaskDecomposer;
pub use graph::GraphError;
pub use graph::RollbackAction;
pub use graph::TaskGraph;
pub use orchestrator::OrchestrateError;
pub use orchestrator::TaskOrchestrator;
pub use state::StepOutcome;
pub use state::StepState;
pub use state::TaskCounts;
pub use state::TaskPhase;
pub use state::TaskState;
pub use step::StepAction;
pub use step::TaskStep;
pub use synthesize::format_plan_for_approval;
pub use synthesize::summarize_task;

Modules§

decompose
LLM-based task decomposition + procedural memory validation.
graph
DAG dependency graph with parallel execution support.
orchestrator
Task orchestrator — the execution loop that coordinates decomposition, approval, execution, and outcome synthesis.
state
Task and step state machine.
step
Task step types — individual units of work in a task plan.
synthesize
Outcome synthesizer — aggregates step outcomes into user-facing summaries.