MAESTRO
Internals
Crate path, key types, adjacent protocols for MAESTRO.
MAESTRO (Multi-Agentic Ensemble Strategy & Task Resource Orchestrator) lives in protocols/maestro-lib. This page covers where to find the implementation, the key Rust types, and how it composes with adjacent protocols.
Source
| Path | Contains |
|---|---|
protocols/maestro-lib/src/lib.rs | ProtocolModule impl, operation dispatch |
protocols/maestro-lib/src/protocol.rs | core protocol logic |
protocols/maestro-lib/src/types.rs | request/response types (derive schemars::JsonSchema) |
protocols/maestro-lib/tests/ | unit + integration tests |
schemas/maestro/v1/ | published JSON Schemas |
ProtocolModule contract
impl ProtocolModule for MaestroProtocol {
fn protocol_name(&self) -> &'static str { "MAESTRO" }
fn version(&self) -> &'static str { "v1.0.0" }
fn operations(&self) -> Vec<&'static str> {
vec![
"charter.declare",
"goal.refine",
"graph.commit",
"graph.diff",
"graph.replan",
"dispatch.next",
"outcome.report",
"credit.trace",
"query.goals",
]
}
async fn invoke(&self, op: &str, payload: Value, ctx: &InvokeContext)
-> Result<Response, ProtocolError>
{
match op {
"charter.declare" => self.charter_declare(payload, ctx).await,
"goal.refine" => self.goal_refine(payload, ctx).await,
"graph.commit" => self.graph_commit(payload, ctx).await,
"graph.diff" => self.graph_diff(payload, ctx).await,
"graph.replan" => self.graph_replan(payload, ctx).await,
"dispatch.next" => self.dispatch_next(payload, ctx).await,
"outcome.report" => self.outcome_report(payload, ctx).await,
"credit.trace" => self.credit_trace(payload, ctx).await,
"query.goals" => self.query_goals(payload, ctx).await,
_ => Err(ProtocolError::UnknownOperation(op.into())),
}
}
}Adjacent
| Relation | Members |
|---|---|
| Consults | — |
| Records to | MAX · MOTET · MOMENT |
| Subject to | MAXIM · MOAT (cross-org) · MOOT (disputes) |
| Settled with | MEAL · MANA · MADE |
Status
Implemented · production-grade.
Tests
cargo test -p maestro-lib --all-featuresSee also
ProtocolModuletrait — the contract- Engine pipeline — the 8 stages
- Plugins — author your own