MAP Docs
MOTET

Internals

Crate path, key types, adjacent protocols for MOTET.

MOTET (Multi-Agentic Operational Telemetry & Event Transport) lives in engine/observability. This page covers where to find the implementation, the key Rust types, and how it composes with adjacent protocols.

Source

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

ProtocolModule contract

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

    fn operations(&self) -> Vec<&'static str> {
        vec![
            "emit",
            "trace",
            "subscribe",
        ]
    }

    async fn invoke(&self, op: &str, payload: Value, ctx: &InvokeContext)
        -> Result<Response, ProtocolError>
    {
        match op {
            "emit" => self.emit(payload, ctx).await,
            "trace" => self.trace(payload, ctx).await,
            "subscribe" => self.subscribe(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

Stub · interface defined; awaiting implementation.

Tests

cargo test -p observability --all-features

See also

On this page