MAP Docs
MOON

Internals

Crate path, key types, adjacent protocols for MOON.

MOON (Multi-Agentic Organizational & Operational Nexus) lives in protocols/moon-lib. This page covers where to find the implementation, the key Rust types, and how it composes with adjacent protocols.

Source

PathContains
protocols/moon-lib/src/lib.rsProtocolModule impl, operation dispatch
protocols/moon-lib/src/protocol.rscore protocol logic
protocols/moon-lib/src/types.rsrequest/response types (derive schemars::JsonSchema)
protocols/moon-lib/tests/unit + integration tests
schemas/moon/v1/published JSON Schemas

ProtocolModule contract

impl ProtocolModule for MoonProtocol {
    fn protocol_name(&self) -> &'static str { "MOON" }
    fn version(&self) -> &'static str { "v1.0.0" }

    fn operations(&self) -> Vec<&'static str> {
        vec![
            "submit_manifest",
            "execute_workflow",
            "workflow_status",
            "agent_deployment_status",
            "scale_deployment",
            "update_manifest",
        ]
    }

    async fn invoke(&self, op: &str, payload: Value, ctx: &InvokeContext)
        -> Result<Response, ProtocolError>
    {
        match op {
            "submit_manifest" => self.submit_manifest(payload, ctx).await,
            "execute_workflow" => self.execute_workflow(payload, ctx).await,
            "workflow_status" => self.workflow_status(payload, ctx).await,
            "agent_deployment_status" => self.agent_deployment_status(payload, ctx).await,
            "scale_deployment" => self.scale_deployment(payload, ctx).await,
            "update_manifest" => self.update_manifest(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 moon-lib --all-features

See also

On this page