目录

MoonRewardForge

MoonRewardForge is a MoonBit toolkit for modeling, normalizing, clipping, and debugging reward signals in reinforcement-learning style workflows.

Repository links:

It focuses on four practical questions:

  1. How much reward comes from the base objective, shaping terms, and penalties?
  2. Is the signal too sparse to learn from reliably?
  3. Is clipping hiding useful signal?
  4. How do different normalization modes change the final score?

What it does

  • Composes reward terms into a per-step breakdown.
  • Computes trace-level totals and sparsity ratios.
  • Compares None, ScaleToAbsSum, and ZScore normalization modes.
  • Renders a plain-text report that is easy to inspect in CI or from the terminal.
  • Ships with a small demo scenario matrix so the project runs out of the box.

Why this topic

Reward shaping is a mature engineering problem in RL systems, and it has room to grow into a larger debugging workflow without becoming too narrow.

This project is intentionally framed as a reusable base:

  • today it is a scoring and reporting library,
  • later it can grow into log ingestion, YAML/JSON config parsing, visual dashboards, and experiment comparisons,
  • and it can be reused for robotics, game AI, recommendation, or agent-evaluation pipelines.

Repository layout

  • moonrewardforge.mbt core reward model and analysis routines
  • rewardforge_report.mbt report rendering helpers
  • cmd/main/main.mbt runnable demo
  • moonrewardforge_test.mbt blackbox tests
  • moonrewardforge_wbtest.mbt whitebox tests
  • .github/workflows/moon-ci.yml minimal CI
  • LICENSE Apache-2.0
  • docs/OSC2026_CHECKLIST.md submission self-check

Run locally

moon check
moon test
moon run cmd/main

Source and scope note

This repository is an original implementation.

The only external references used for design were:

  • the MoonBit language and toolchain documentation,
  • the OSC2026 submission guide,
  • and general reward shaping literature for the underlying RL concepts.

No upstream project was ported line-for-line. No other contributor should be introduced when you submit the project.

License

Apache-2.0

关于

MoonRewardForge 是一个面向强化学习工程调参场景的 MoonBit 奖励函数建模与调试工具,支持奖励项组合、权重汇总、归一化、裁剪、惩罚项分析、稀疏奖励检测和 reward shaping 报告生成,适合作为可扩展的实验分析底座。

60.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802047560号