Skip to content

SCAR: Stage-Contracted Adaptation and Refinement of Executable Code Policies for Robot Manipulation

Zhifeng Rao, Xiaoyu Guo, Bo Ren, Zhen Tian, Min Wang, Mingkai Zheng

cs.CV

Abstract

Executable code policies offer a transparent representation for robot manipulation, yet multi-stage tasks often fail when an action completes locally while leaving the physical workspace unready for the next step. We introduce SCAR, a framework that combines stage contracts with feedback-driven policy adaptation and refinement across simulation, physical hardware, and trajectory generation. SCAR binds manipulation skills to typed interfaces and state predicates in a central registry. In its stage-ready runtime, stage transitions are governed by typed receipts that certify completed subgoals and fresh-state checks that verify gripper availability, object ownership, and scene stability before the next stage begins. An episode ledger tracks verified progress and remaining resource budgets, allowing the agent to cancel blocked tails and replan directly from the current scene without resetting completed work. Across 6,300 initial episodes in RoboDojo-Sim spanning five capability dimensions and three random seeds, targeted skill and prompt refinement with selective near-success restart increases macro success from 34.37% to 36.12% (+111 successful episodes) and achieves the highest Precision success rate (35.83%) among the compared methods. On a dual-arm Cobot Magic robot, visual-feedback code generation improves task completion from 0/10 to 8/10 unassisted trials following human-guided pre-evaluation refinement. Finally, we demonstrate that SCAR can distill a single teleoperated demonstration into a layout-parameterized trajectory generator through offline scene reasoning, producing trajectories used for downstream Vision-Language-Action (VLA) training.

Create a lesson