Skip to content

arcstep/mwr

Repository files navigation

MWR

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.

Workspace

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 states
  • mwr-registry: provider, world, block, and version indexes
  • mwr-engine: deterministic matching, assembly, and sufficiency checks
  • mwr-runtime: role orchestration, budgets, snapshots, and audit events
  • mwr-tools: the mwr CLI and task/meta-tool bridge
  • mwr-evals: reproducible baselines, scenarios, and measurements
  • mwr-rig: optional Rig model and tool adapter
  • mwr-test-support: unpublished in-memory provider and fixtures
  • integrations/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.

Development

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-features

The default test suite is self-contained and does not require model credentials, MeiLang, or another sibling workspace.

Design boundary

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.

License

MIT

About

An angent of modular-world-reasoning

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages