judging-step-with-before-now-vlm
Judges the current subgoal of a task from camera frames taken before the step and now - sends the BEFORE and NOW frames of each camera, the task, the subgoal and the subgoals after it to a VLM that returns a status (complete / in_progress / failure) and an action (next / continue / replan / grasp_tool / place_tool), and routes on the action. Use when a graph must decide after (or during) a step whether to advance, keep going, replan, or recover a wrong object or a wrong destination, with only cameras, after capturing a robot.get_observation before the step.
before Observation, task string, subgoal stringstatus string, action string, reason string, grasp_target string, place_destination string, place_held_object stringrobot.get_observationExits
What the skill reports when it ends; a policy branches on these.
complete The VLM chose "next" - clear visual evidence in NOW that the subgoal is done (its object at its destination).in_progress The VLM chose "continue" - not done yet but still achievable, including not started; also any action outside recovery_mode's vocabulary.failed The VLM chose "replan" - dropped, stuck, no visible progress, or the plan no longer fits the NOW scene; `reason` says which.wrong_object The VLM chose "grasp_tool" - the hand holds or is closing on an object other than the subgoal's; `grasp_target` names the right one.wrong_destination The VLM chose "place_tool" - the held object is heading to or was released at another destination; `place_destination` is a freeform phrase for the right one.no_verdict No camera has RGB in both BEFORE and NOW, vlm.query raised, or its reply had no JSON; nothing was judged (VoLoAgent continued in this case).Scripts
Use it
Take this bundle (and the tools it calls) into a registry for your task, then point your policy generator at it:
git clone https://github.com/runtime-si/RoboSkillHub
cd RoboSkillHub && uv sync
uv run --no-sync roboskillhub search "judges the current subgoal of a task from camera frames…" --why
uv run --no-sync roboskillhub view --bundles judging-step-with-before-now-vlm --out my_registrySee Get started for searching by task and robot, locking what a policy uses, and fetching it on the robot.