MAP Docs
MAX

Internals

Crate path, key types, adjacent protocols for MAX.

MAX (Multi-Agentic Audit & eXplainability) lives in protocols/max-lib. This page covers where to find the implementation, the key Rust types, and how it composes with adjacent protocols.

Source

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

ProtocolModule contract

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

    fn operations(&self) -> Vec<&'static str> {
        vec![
            "audit_log_entry",
            "audit_query",
            "traceability_graph",
            "explainability_request",
            "compliance_report",
            "health_check",
        ]
    }

    async fn invoke(&self, op: &str, payload: Value, ctx: &InvokeContext)
        -> Result<Response, ProtocolError>
    {
        match op {
            "audit_log_entry" => self.audit_log_entry(payload, ctx).await,
            "audit_query" => self.audit_query(payload, ctx).await,
            "traceability_graph" => self.traceability_graph(payload, ctx).await,
            "explainability_request" => self.explainability_request(payload, ctx).await,
            "compliance_report" => self.compliance_report(payload, ctx).await,
            "health_check" => self.health_check(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 max-lib --all-features

See also

On this page