MAP Docs
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

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/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

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