RegHarness: Regulating What Code-as-Policy Agents Keep from Steps to Skills
Shengming Liu, Yunyi Gao, Xinyi Wang, Jianyong Sun, Shuai Wang, Yi Deng, Li Chenye, Mingcai Zhou, Sim Kuan Goh
Abstract
Code-as-Policy agents generate, execute, and revise robot programs, but often lack explicit mechanisms to govern what persists across executions: which actions are retained within a trial and which code modifications carry over to subsequent runs. This leaves two critical aspects of agent behavior insufficiently controlled: step-level execution and cross-run adaptation. We present RegHarness, a two-level harness that governs both forms of persistence for the RATs agent team, without relying on a vision-language-action (VLA) policy or demonstrations. Within each trial, run-time governance evaluates each proposed step from a reset scene, replaying the committed steps, while a fixed-rule controller commits the step only when both RATs' verifier and a task-long LLM auditor approve it. Between runs, a coding agent uses logged failures to develop and test revisions to skills, primitives, and rules, which remain disabled by default until explicitly enabled by the authors. Using a single low-cost model across all run-time roles, RegHarness achieves an 87.8% success rate (158/180) on paired LIBERO-PRO trials, compared with 39.4% for RATs, and a 72.0% success rate on MolmoSpaces trials. A ablation study of RegHarness's two levels shows that its skill refinement alone increases RATs' successful trials from 71 to 135, whereas run-time governance alone achieves 105 and RATs' native stepwise reset-and-replay mode achieves only 46. These findings suggest that, for Code-as-Policy agents operating with low-cost models, task success depends not only on how generated programs are executed, but also on the quality of the reusable skills they invoke and how those skills evolve across runs.
Create a lesson
Metadata
- Comments
- 18 pages, 7 figures, including the appendix
Related papers
PyRUA-Dex: Learning Programmatic Policies for Dexterous Bimanual Manipulation with Coding Agents
Shared title terminologycs.ROFeixiang Ruan, Guodong Lv, Kewei Zhang et al.
Atomic Policy: Composing Atomic Manipulation Skills with Agentic Reasoning
Shared title terminologycs.ROKaidi Zhang, Pengyuan Guo, Zhengtong Xu et al.
VLAs Execute, Code Recovers: 3D Skill Envelopes Bridge the Compositional Gap in Agentic Manipulation
Shared title terminologycs.ROJiajie Zhang, Yankai Xiang, Changhao Chen
Ground Your Steps: Optimizing Sampling Schedules in Flow Matching Robot Policies
Shared title terminologycs.ROLicheng Yang, Yonghao He, Lingfeng Qian et al.
Next-Manip: On-Demand Agent-Policy Collaboration for Robotic Manipulation
Shared title terminologycs.ROJiayi Liu, Ke Ye, Jiaming Zhou et al.
Boundary-Aware Policy Learning for Agent-Orchestrated Robot Manipulation
Shared title terminologycs.ROKaipeng Fang, Yuhao Wang, Ji Zhang et al.