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