judging-step-with-before-now-vlm
A step judge: did the subgoal happen, is it still happening, or did it fail?
How a graph uses it
textbefore (tool: robot.get_observation) -> <the step: skills / policy> -> judge (this skill)
Capture before with a robot.get_observation tool node just before the
step, run the step, then route on this skill's exit. now defaults to a
fresh robot.get_observation; pass it to judge a frame you already have.
Inside a running policy it can also be called periodically (VoLoAgent checked
every 80 sim steps) with before held from the start of the subgoal.
What it sends
One vlm.query with VoLoAgent's monitoring prompt followed by its task text:
textOverall task: "<task>" Current subgoal (<i>/<n>): "<subgoal>" Remaining subgoals after this: (or "This is the LAST subgoal.") <i+1>. ... Assess the current subgoal status and decide the action.
and the frames in VoLoAgent's order, BEFORE then NOW, external cameras before
wrist ones, each listed by number and camera name in the prompt. cameras
picks frames by name; by default every camera with RGB in both observations.
The prompt keeps VoLoAgent's rules: "complete" only on clear visual evidence,
not-started counts as in progress, "when in doubt, in_progress / continue",
do not replan just because the scene changed, and the wrong-object
(grasp_tool) vs wrong-destination (place_tool) rules with their phrasing
rules for place_destination.
Exits
The route follows the action, as VoLoAgent acted on the action token; the
status is reported beside it (status can disagree, e.g. failure + continue).
| action | exit |
|---|---|
| next | complete |
| continue | in_progress |
| replan | failed |
| grasp_tool | wrong_object (grasp_target) |
| place_tool | wrong_destination (place_destination, place_held_object) |
| - | no_verdict |
VoLoAgent's taxonomy does not split dropped / stuck / no progress into
separate tokens; they all arrive as replan with the cause in reason, so
they share the failed exit here.
Inputs
before: an observation (cameras withnameandrgb, as a list or a mapping), captured before the step.task,subgoal: the overall instruction and the current subgoal.remaining_subgoals([]),subgoal_index(1),subgoal_count(index + remaining): the plan around the subgoal, for the task text.now(freshrobot.get_observation),cameras(all shared).recovery_mode(replan_tools): VoLoAgent's action vocabularies,replan,replan_grasp,grasp,place,replan_place,tools,replan_tools. Upstream defaulted toreplan; the default here offers every action so every exit is reachable. Restrict it when the graph has no recovery for an exit: an action outside the vocabulary becomescontinue.stack_mode(false): adds VoLoAgent'splace_stackblock and passesplace_stackthrough.model: per-call model forvlm.query; otherwise the tool's configured one.
Live check
run() through the hub's vlm.query (OpenAI-compatible provider pointed at
Gemini's endpoint), default recovery_mode, one overhead frame per side.
Six pairs from a YAM station twin's calibrated overhead camera (640 x 480)
around a pushing-objects push of a 30 mm cube (it moved 84 mm along the
push, 7 mm sideways), and two from the real station's overhead camera:
| pair (BEFORE -> NOW) | subgoal | expected | gemini-3-flash-preview (2 runs) | gemini-robotics-er-2-preview |
|---|---|---|---|---|
| sim: start -> start, arm idle | push the cube 8 cm away from the arm | in_progress | in_progress, in_progress | in_progress |
| sim: start -> hand 12 cm over the cube | same | in_progress | in_progress, in_progress | in_progress |
| sim: start -> pushed, hand still 8 cm over the cube | same | complete | in_progress, in_progress | in_progress |
| sim: start -> pushed, hand moved clear | same | complete | complete, no_verdict | complete |
| sim: start -> pushed, hand clear | put the cube in the blue box | not complete | in_progress, in_progress | in_progress |
| sim: start -> pushed, hand clear | push the cube right, toward the box | not complete | in_progress, in_progress | in_progress |
| real: cube beside the box -> same, box nudged | put the cube into the grey box | not complete | in_progress, in_progress | in_progress |
| real: cable scene -> same scene, minutes later | pick up the cable's free end | in_progress | in_progress, in_progress | in_progress |
7/8 and 6/8 for flash, 7/8 for ER-2, 2-4 s per judgment. What to know:
- Judge after the hand has moved clear. With the hand still over the pushed cube both models said "in_progress" (3/3 more flash repeats too): the hand hides the cube and looks mid-push, and the prompt only allows "complete" on clear evidence. The same push judged with the hand moved away was "complete" every time it parsed (4/4 flash, 1/1 ER-2).
- No false "complete" in 24 judgments, including the two pairs where the
cube moved but not to the subgoal's destination. Neither model chose
failed/wrong_destinationfor the wrong-direction push: the cube was still pushable, and VoLoAgent's rules say in_progress when in doubt. The stated reasons there were wrong ("pushing it toward the blue box"), so readin_progressas "not done", not as "on track". - One flash reply (6.2 s, the other replies took 2-4 s) did not parse and
routed
no_verdict; three repeats of that pair parsed. The cause was not captured; a likely one is Gemini 3's thinking tokens counting againstvlm.query's 1024-token cap. - The failure exits (
failed,wrong_object,wrong_destination) were not reached live: the twin has one graspable object and nothing to drop it from; they are covered by the unit tests only.
Changes from VoLoAgent
Adapted from vlm_orchestrator/failure_handlers/vlm.py (prompt, parser) and
the BEFORE / NOW labelling of strategies/subgoal_base.py, Apache-2.0:
- One judgment per call; the graph decides when to judge (upstream: a handler gated every 80 steps).
- BEFORE is the observation before the step, not the episode start; the prompt's first bullet says so.
- The hub's
vlm.queryhas no system prompt and puts images after the text, so the system prompt and the task text are one prompt, and the images are listed by number with their BEFORE / NOW label instead of interleaved. - The mirrored-front-camera block is dropped (no such camera on a YAM).
- Actions become graph exits instead of tool activations; a failed call or an
unparseable reply routes
no_verdictinstead of silently continuing (wire it to thein_progressedge for upstream behaviour).


