MAP Docs
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

PathContains
protocols/maestro-lib/src/lib.rsProtocolModule impl, operation dispatch
protocols/maestro-lib/src/protocol.rscore protocol logic
protocols/maestro-lib/src/types.rsrequest/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

RelationMembers
Consults
Records toMAX · MOTET · MOMENT
Subject toMAXIM · MOAT (cross-org) · MOOT (disputes)
Settled withMEAL · MANA · MADE

Status

Implemented · production-grade.

Tests

cargo test -p maestro-lib --all-features

See also

On this page