MAP Docs
MOTIF

Internals

Crate path, key types, adjacent protocols for MOTIF.

MOTIF (Multi-Agentic Observability Traces & Insight Flow) lives in see-MOTET. This page covers where to find the implementation, the key Rust types, and how it composes with adjacent protocols.

Source

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

ProtocolModule contract

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

    fn operations(&self) -> Vec<&'static str> {
        vec![
            "detect",
            "catalog",
            "alert",
        ]
    }

    async fn invoke(&self, op: &str, payload: Value, ctx: &InvokeContext)
        -> Result<Response, ProtocolError>
    {
        match op {
            "detect" => self.detect(payload, ctx).await,
            "catalog" => self.catalog(payload, ctx).await,
            "alert" => self.alert(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 mim-lib --all-features

See also

On this page