HF RL Explorer

Making MastForest construction ergonomic and safe

Making MastForest construction ergonomic and safe: a task in LegoFlow-SWE (Harbor dataset). Currently, constructing a MAST program by manually inserting nodes into a MastForest is both verbose and error-prone. Users must construct MastNode variants directly and then call the low‑level add node…

The task

Currently, constructing a MAST program by manually inserting nodes into a `MastForest` is both verbose and error-prone. Users must construct `MastNode` variants directly and then call the low‑level `add_node` method. There are no convenience methods for creating blocks, joins, splits, loops, or calls, which makes…

Part of Lego-X/LegoFlow-SWE.