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
| Path | Contains |
|---|---|
engine/observability/src/lib.rs | ProtocolModule impl, operation dispatch |
engine/observability/src/protocol.rs | core protocol logic |
engine/observability/src/types.rs | request/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
| 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 observability --all-featuresSee also
ProtocolModuletrait — the contract- Engine pipeline — the 8 stages
- Plugins — author your own