Deterministic agent space kernel for MoonBit: TOML space contracts, gate-enforced code generation, Mealy-pure transitions, effect-interpreter runtime, and verification sandbox.
Dependencies
| 包 | 沙箱 | 职责 | 依赖 |
|---|---|---|---|
| space/ | EffectSpace Sandbox(解空间) | 合法状态/事件/effect 词表与机器件 | 无 |
| runtime/ | Runtime Sandbox(运行空间) | 副作用执行边界:Port 权限/资源/超时/审计 | space |
| verify/ | Verification Sandbox(验证环境) | 纯函数模型 + 属性 + 不变量,零真实 Port | space |
| gen/ | 解空间生成器 | 读合同产表驱动状态机 + dispatch + 测试骨架 | toml + space |
moon run examples --target native # 示例 loop:合同 → 门 → 大 loop,零 LLM
moon test gen runtime space out verify --target native # 本模块全部门件
moon run cmd --target native # 合同再生(修改 domain/*.toml 后)合同 hello_loop_space 过门:态 3 / 事件 3 / 效应 1 / 转移 3
终局: Done / Completed / rounds=2
r1: DoIt → WorkDone (completed)
槽位 result_summary = did itInstall
Download zipDeterministic agent space kernel for MoonBit: TOML space contracts, gate-enforced code generation, Mealy-pure transitions, effect-interpreter runtime, and verification sandbox.
Dependencies