Scene builderΒΆ
Source
Reproduction record from hylo-harness: adapters/hylo-code-agents/examples/README.md. Every number on this page was measured by the scripts next to it; run them to reproduce.
All program and tool experiments
A model writes a hylo.scene/v0.1 file from a one-line task: objects, their shapes and start regions, and a success
predicate. A checker runs five stages on it: schema; static (names and references); physics (the scene loads and
settles, nothing falls or penetrates, and the predicate is false at the start); reach (every object has a grasp the
arm reaches, and every place target is reachable); and satisfiable (objects placed where the predicate asks make it
true). The problems it finds go back to the model until the scene passes. code.llm then solves the scene with privileged state: robot.scene()
returns the simulator's object poses and joint states.
uv run hylo scene build "put the ball in the cup" --out runs/scenes/ball_cup --attempts 6
uv run hylo scene solve runs/scenes/ball_cup --turns 10 --reply-tokens 2500
Model: qwen3.5:35b-a3b (vision) for both building and solving, from scenes/results.json.
| Task | Build attempts (problems in the failed ones) | Solved | Turns | Steps | Model time |
|---|---|---|---|---|---|
| size_tower: "stack the three blocks into a tower ordered by size: the largest block at the bottom and the smallest on top" | 2 (a timed-out model call) | yes | 6 | 423 | 66 min |
| ball_cup: "put the ball in the cup" | 2 (timeout) | yes | 3 | 159 | 37 min |
| slide_lid: "slide the lid of the box open so that the box is uncovered" | 3 (timeout; predicate true at start) | yes | 2 | 87 | 17 min |
| drawer_block: "open the drawer and put the red block in it" | 6 (unstable; predicate true at start, twice; unsatisfiable; unstable) | no | 10 | 448 | 88 min |
| cylinder_upright: "a cylinder is lying on its side on the table; stand it upright on top of the wooden box" | 5 (schema; timeout, twice; predicate true at start) | no | 5 | 160 | 67 min |
| colour_row: "line up the red, green and blue blocks in a row along the y axis, in that order" | 2 (timeout) | no | 4 | 483 | 15 min |
All 6 scenes were built and checked; 3 of 6 were solved. Model time includes queueing on the shared Ollama server.
size_tower: the scene the model wrote (blue large, green medium and red small block), solved in 6 turns and 423 steps. The model moves the large block to the centre, stacks the medium one on it, then places the small one on top. The episode ends with the hand still over the tower, so the small block is partly hidden by the fingers. The caption shows each turn's thought, code and printed result.
ball_cup: the red ball picked up and dropped into the fixed blue cup, in 3 turns and 159 steps.
slide_lid: the gripper pushes the lid along its slide joint until it overhangs the front of the box (the predicate asks for at least 4 cm of travel), in 2 turns and 87 steps.
The three videos are re-simulated on a fresh mujoco.panda_scene from the recorded actions. Each re-simulation
gives the recorded task digest, step count and outcome, and the frames are rendered with Blender Cycles at 960x720.
Limitations.
- 3 of the 6 scenes were solved, and only with privileged state.
- The failures are the model's: it never opened the drawer, it did not turn the cylinder upright, and it lined the
blocks up in the wrong direction. In the last two it called
finish()without checking. - Single model calls took up to 26 min on the shared server, mostly queueing, and several builds lost an attempt to a timed-out call. The wall times say little about the method.