MWR is the Rust implementation of Modular-World Reasoning: build or select a bounded, inspectable world before solving a task inside it.
The implementation is split into contracts, registry, deterministic assembly,
runtime, tools, evaluation, and optional model adapters. mwr-core deliberately
has no dependency on an AI framework or a domain-specific provider.
Package version lives only in root Cargo.toml
[workspace.package].version. Shared third-party pins live in
[workspace.dependencies]. Member crates inherit with
version.workspace = true and dep.workspace = true; internal path deps do
not repeat the package version. Workspace crates stay publish = false until
crates.io release, so path-only internal deps remain valid for cargo-deny.
mwr-core: contracts, identifiers, errors, permissions, and lifecycle statesmwr-registry: provider, world, block, and version indexesmwr-engine: deterministic matching, assembly, and sufficiency checksmwr-runtime: role orchestration, budgets, snapshots, and audit eventsmwr-tools: themwrCLI and task/meta-tool bridgemwr-evals: reproducible baselines, scenarios, and measurementsmwr-rig: optional Rig model and tool adaptermwr-test-support: unpublished in-memory provider and fixturesintegrations/mwr-meilang: excluded, independently tested protocol bridge for a caller-supplied MeiLang source driver; it is not a connection to a live MeiLang runtime. Keep its pin list aligned with the root workspace.
cargo fmt --check
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo test --workspace
cargo doc --workspace --no-deps
cargo deny check
cargo fmt --manifest-path integrations/mwr-meilang/Cargo.toml --check
cargo clippy --manifest-path integrations/mwr-meilang/Cargo.toml --all-targets --all-features -- -D warnings
cargo test --manifest-path integrations/mwr-meilang/Cargo.toml --all-featuresThe default test suite is self-contained and does not require model credentials, MeiLang, or another sibling workspace.
The evolving design source is maintained separately under the docs/mwr
documentation tree in the Mei Projects workspace. This repository contains the
portable implementation and repository-facing usage only.
MIT