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
| Path | Contains |
|---|---|
see-MOTET/src/lib.rs | ProtocolModule impl, operation dispatch |
see-MOTET/src/protocol.rs | core protocol logic |
see-MOTET/src/types.rs | request/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
| Relation | Members |
|---|---|
| Consults | — |
| Records to | MAX · MOTET · MOMENT |
| Subject to | MAXIM · MOAT (cross-org) · MOOT (disputes) |
| Settled with | MEAL · MANA · MADE |
Status
Stub · interface defined; awaiting implementation.
Tests
cargo test -p mim-lib --all-featuresSee also
ProtocolModuletrait — the contract- Engine pipeline — the 8 stages
- Plugins — author your own