cs.RONov 25, 2026

RegHarness: Regulating What Code-as-Policy Agents Keep from Steps to Skills

Authors: Shengming Liu, Yunyi Gao, Xinyi Wang, Jianyong Sun, Shuai Wang, Yi Deng, Li Chenye, Mingcai Zhou, 

Organizations: School of Artificial Intelligence and Robotics, Xiamen University Malaysia, Sepang, Selangor, Malaysia · Embodied AI, Beijing Zhongke Huiling Robot Technology Co., Ltd., Beijing, China · Institute of Automation, Chinese Academy of Sciences, Beijing, China

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 2×22\times2 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.

Figures & tables

Appendix figures & tables12 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. RHO: Your Coding Agent is Secretly a Roboticist

    Jun 15, 2026Karim Elmaaroufi, Justin Svegliato, Sarunas Kalade +3LLM Agent HarnessesAI Control

  2. Playful Agentic Robot Learning

    Jun 17, 2026Junyi Zhang, Jiaxin Ge, Hanjun Yoo +17Robot Policy LearningRobot Skill Learning

  3. Code as Agent Harness

    May 18, 2026Xuying Ning, Katherine Tieu, Dongqi Fu +39LLM Agent OrchestrationLong-Horizon LLM Agents