Expand description
macp-core — the transport-free coordination vocabulary of MACP.
This crate holds the stable types every other MACP crate (and external library consumers) build on, with no dependency on tonic, storage, or any async runtime:
error::MacpError— the canonical error enum and RFC error codessession— thesession::Sessionmodel andSessionStartvalidationmode::ModeResponse— the result a mode hands back to the kerneldecision— the Decision mode’s domain types (shared with policy)policy—policy::PolicyDefinition,policy::PolicyDecision,policy::PolicyError, the sharedpolicy::CommitmentRules, and thepolicy::PolicyEvaluatortrait that modes call throughcommitment_hash— the RFC-MACP-0013 canonical commitment hash
Re-exports§
pub use error::MacpError;pub use mode::ModeResponse;pub use policy::PolicyDecision;pub use policy::PolicyDefinition;pub use policy::PolicyError;pub use policy::PolicyEvaluator;pub use session::Session;pub use session::SessionState;
Modules§
- commitment_
hash - RFC-MACP-0013 canonical commitment hash.
- decision
- Decision mode domain types.
- error
- mode
- The result a coordination mode hands back to the kernel.
- policy
- Policy vocabulary and the pluggable evaluation trait.
- session
Constants§
- MACP_
VERSION - The MACP protocol version this runtime implements and negotiates
(
Envelope.macp_version,Initialize’ssupported_protocol_versions/selected_protocol_version). Real, kernel-enforced API — unlike the#[doc(hidden)]constants insession, this one backs an actual wire-level check, so it is a plain, stablepub const.