MAME
Internals
Crate path, key types, adjacent protocols for MAME.
MAME (Multi-Agentic Meta-learning Engine) lives in protocols/mame-lib. This page covers where to find the implementation, the key Rust types, and how it composes with adjacent protocols.
Source
| Path | Contains |
|---|---|
protocols/mame-lib/src/lib.rs | ProtocolModule impl, operation dispatch |
protocols/mame-lib/src/protocol.rs | core protocol logic |
protocols/mame-lib/src/types.rs | request/response types (derive schemars::JsonSchema) |
protocols/mame-lib/tests/ | unit + integration tests |
schemas/mame/v1/ | published JSON Schemas |
ProtocolModule contract
impl ProtocolModule for MameProtocol {
fn protocol_name(&self) -> &'static str { "MAME" }
fn version(&self) -> &'static str { "v1.0.0" }
fn operations(&self) -> Vec<&'static str> {
vec![
"edit",
"redact",
"migrate",
]
}
async fn invoke(&self, op: &str, payload: Value, ctx: &InvokeContext)
-> Result<Response, ProtocolError>
{
match op {
"edit" => self.edit(payload, ctx).await,
"redact" => self.redact(payload, ctx).await,
"migrate" => self.migrate(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
Implemented · production-grade.
Tests
cargo test -p mame-lib --all-featuresSee also
ProtocolModuletrait — the contract- Engine pipeline — the 8 stages
- Plugins — author your own