Skip to content
robertgussPublic

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Mo

An open-source language and runtime for living software. Humans state the intent, agents write the code, and agents can inspect and diagnose running services. The development toolchain also supports typed live upgrades and state migration.

Status: v0.2.0. The toolchain builds and runs services. The Phase 4 diagnostic evaluation passed its gate with 14 of 16 sessions correct, including two recorded misses. Typed live upgrades shipped in v0.2.0, which closes Phase 5: its drill, pause series and 4/4 agent evaluation passed on one frozen build. See the upgrade run record. Contributions are not yet open.

The idea

Agents now write a growing share of software, but languages and runtimes are still built for human authors and human operators. Mo is designed for agents first:

  • Intent lives in the language. People state what a program must do, as promises and example tables. The toolchain checks programs and runs their tests. The approval workflow for protected intent is planned for Phase 6.
  • A runtime agents can operate. Agents can look inside a running Mo service through authenticated, bounded operator views. Pure queries run offline over exported state. Failure replay reconstructs a recorded case with the original program and runtime build; it does not reproduce the live heap or mailbox. A verified fix can still be wrong: independent tests rejected two such fixes in the diagnostic evaluation.
  • Upgrades while running. The development toolchain checks candidate programs and typed migrations, rehearses them offline, and activates them at a service message boundary. mo push uses a separate upgrade credential and a loopback connection; remote operators use a tunnel. The drill, the pause series and the agent evaluation passed on one frozen build. This functionality ships in v0.2.0.

Mo draws on Elixir and the BEAM (processes, supervision, hot code loading), Rust (safety plus control over memory and performance), Koka (effects and in-place updates) and Elm (helpful error messages).

What's here

Building

Mo is implemented in C. Building requires a C17 compiler, POSIX, make and Python 3 (to embed the version-matched reference and guide):

make              # build build/<compiler>/debug/mo
bash ci/check.sh  # every check, run locally

See docs/design/implementation.md for the rules the implementation follows and how it is checked.

Install v0.2.0 from source

Check out the release tag and build it in its permanent location. Its build inputs match the evaluated candidate recorded in the freeze:

git clone https://github.com/robertguss/mo mo-v0.2
cd mo-v0.2
git checkout --detach v0.2.0
make CC=gcc build/gcc/debug/mo
./build/gcc/debug/mo --version
./build/gcc/debug/mo guide

Keep the tree where it was built: the executable contains its lib/ path. A local rebuild has its own identity; replay of an existing failure needs the exact executable that recorded it. For a service installation and keeping those builds, see the task-queue runbook.

Roadmap

See docs/ROADMAP.md. Phase 4 closed with v0.1.0 and Phase 5, typed live upgrades, closed with v0.2.0: its 1,000-kill drill, pause series and agent evaluation (4/4) passed on one frozen build. v0.2 preparation notes describe the implemented behavior and unresolved limits.

Background

The research behind Mo is archived in robertguss/mo-v2. It includes 13 experiments and Lean proofs of Mo's memory-reuse rules.

License

Licensed under either of Apache License, Version 2.0 or MIT license, at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Mo by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages