MAP Docs
ARSENAL

Internals

Crate path, key types, adjacent protocols for ARSENAL.

ARSENAL (Agent Capability Tokens & Credential Proxy) lives in external. This page covers where to find the implementation, the key Rust types, and how it composes with adjacent protocols.

Source

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

ProtocolModule contract

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

    fn operations(&self) -> Vec<&'static str> {
        vec![
            "issue",
            "proxy",
            "consent",
        ]
    }

    async fn invoke(&self, op: &str, payload: Value, ctx: &InvokeContext)
        -> Result<Response, ProtocolError>
    {
        match op {
            "issue" => self.issue(payload, ctx).await,
            "proxy" => self.proxy(payload, ctx).await,
            "consent" => self.consent(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 mim-lib --all-features

See also

On this page