moon fmt --check
moon check --target all
moon test --target js
moon test --target wasm
moon test --target wasm-gc
moon run cmd/main --target js
moon run bench/main --target js
moon fmt --check
moon check --deny-warn --target all
moon info && git diff --exit-code -- '*.mbti'
moon test --deny-warn --target all
moon run cmd/main --target js
moon run bench/main --target js
MoonBit 0.10.4 does not accept --deny-warn on moon fmt or moon info.
The CI workflow explicitly names those gates and uses the supported strict
equivalents when required. Engine::snapshot captures committed histories and
logical WAL only; files, databases, distributed locks, and crash-atomicity are
adapter responsibilities, not claims made by the core library.
MoonTxnKit
面向 MoonBit 的确定性 MVCC 状态事务、谓词冲突检测与逻辑恢复内核。
MoonTxnKit 为工作流调度器、规则引擎、模拟器、内存服务和测试替身提供可复用的 “快照读取 + 原子变更 + 冲突证据 + WAL 恢复”能力,不绑定线程、磁盘或网络。
核心能力
AtomicPlan业务前置条件与整批状态变更;防止扫描幻读
提交前,Serializable 事务会检查快照之后是否有任何匹配前缀的键被新增、修改 或删除。若存在,返回
PredicateWrite冲突,避免“扫描为空后两个事务都插入” 一类幻读与写偏斜。验证
边界
当前值模型为
String,谓词模型为精确字符串前缀。项目不实现 SQL、任意比较 范围、磁盘刷盘、进程崩溃原子性或完整 SSI 依赖图;这些属于后续索引和适配层。License
Apache-2.0
Strict verification and persistence boundary
MoonBit 0.10.4 does not accept
--deny-warnonmoon fmtormoon info. The CI workflow explicitly names those gates and uses the supported strict equivalents when required.Engine::snapshotcaptures committed histories and logical WAL only; files, databases, distributed locks, and crash-atomicity are adapter responsibilities, not claims made by the core library.