MOMENT
Internals
Crate path, key types, adjacent protocols for MOMENT.
MOMENT (Multi-Agentic Operational Metrics & Event Notification Tracking) 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/moment/v1/ | published JSON Schemas |
ProtocolModule contract
impl ProtocolModule for MomentProtocol {
fn protocol_name(&self) -> &'static str { "MOMENT" }
fn version(&self) -> &'static str { "v1.0.0" }
fn operations(&self) -> Vec<&'static str> {
vec![
"observe",
"query",
"rollup",
]
}
async fn invoke(&self, op: &str, payload: Value, ctx: &InvokeContext)
-> Result<Response, ProtocolError>
{
match op {
"observe" => self.observe(payload, ctx).await,
"query" => self.query(payload, ctx).await,
"rollup" => self.rollup(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