Skip to content

Repository files navigation

MEI Agent

Source root: mei-agent/ (formerly mwr-agent/ / mwr/).
Method brand: MEI (Micro-world Epistemic Inference; formerly MWR).
Dataset product: separate repo arcstep/rubble.

MEI Agent is the Rust implementation of Micro-world Epistemic Inference: identify, diagnose, and govern toward a bounded, inspectable micro-world (MW), then infer inside it (build-before-solve).

Implementation one-liner: mei-agent owns identify / triage / context assembly; inference is delegated to a concrete LLM. It is not a default multi-agent team and does not optimize for “rather too much context than missing some.”

The implementation is split into contracts, registry, deterministic assembly, runtime, tools, evaluation, and optional model adapters. mw-core deliberately has no dependency on an AI framework or a domain-specific provider. Rust crate prefix: mw-* (micro-world kernel); product root: mei-agent/.

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.

  • mw-core: contracts, identifiers, identify/triage cells (MW/HD/SF shortcodes), permissions, and lifecycle states
  • mw-registry: provider, world, block, and version indexes
  • mw-engine: deterministic matching, assembly, and sufficiency checks
  • mw-runtime: role orchestration, identify→triage→build/solve, budgets, snapshots, and audit events
  • mw-tools: the mw CLI and task/meta-tool bridge
  • mw-evals: structural smoke baselines and separate cell-probe triage/exit probes
  • mw-rig: optional Rig model and tool adapter
  • mw-test-support: unpublished in-memory provider and fixtures
  • integrations/mw-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/mw-meilang/Cargo.toml --check
cargo clippy --manifest-path integrations/mw-meilang/Cargo.toml --all-targets --all-features -- -D warnings
cargo test --manifest-path integrations/mw-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

Design contracts and long-form method notes are not published in this repository. This repo is the portable implementation and repository-facing usage only. Standalone project documentation may be added here at formal release time—without depending on a private monorepo docs tree.

RUBBLE packs and calibration runners: arcstep/rubble.

Baselines under baselines/ are runnable from this checkout (see that README).

License

MIT

About

An angent of modular-world-reasoning

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages