MAP Docs
MARE

Internals

Crate path, key types, adjacent protocols for MARE.

MARE (Multi-Agentic Reflexive Evaluation) lives in protocols/mare-lib. This page covers where to find the implementation, the key Rust types, and how it composes with adjacent protocols.

Source

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

ProtocolModule contract

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

    fn operations(&self) -> Vec<&'static str> {
        vec![
            "score",
            "stake",
            "slash",
        ]
    }

    async fn invoke(&self, op: &str, payload: Value, ctx: &InvokeContext)
        -> Result<Response, ProtocolError>
    {
        match op {
            "score" => self.score(payload, ctx).await,
            "stake" => self.stake(payload, ctx).await,
            "slash" => self.slash(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

Implemented · production-grade.

Tests

cargo test -p mare-lib --all-features

See also

On this page