Tool-calling agents¶
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
tools.llm (RFC-0007) gives a chat model the robot as typed tools and lets it call them natively, one checked
action at a time: it measures freely (locate, grasp_options, pixel_to_world, calc, ...), and every action
(grasp, place, move_tcp, ...) is a proposal that runs through the kernel and the safety shield and comes back
as a measured receipt with fresh images. Refused actions that moved nothing cost no decision; handles measured
before the robot moved are refused as stale; the task's own check is the verdict.
uv run hylo preflight --model ollama:qwen3.5:35b-a3b --vision # text, image, tool call, tool result
uv run python harness/adapters/hylo-code-agents/examples/tools_llm/run_tools_llm.py run --out runs/tools-llm --episodes 3
uv run hylo watch runs/tools-llm/<run> # follow or replay an episode
uv run hylo seal runs/tools-llm/<run> # hash chains, inventory, read-only
qwen3.5:35b-a3b (vision, reasoning off, local, $0), zero-shot, cameras front / side / wrist with the
environment's segmentation, validation split, 3 episodes per task:
| Task | Success | Decisions (mean) | Model calls (mean) | Tokens in / out (mean) | Wall s (mean) |
|---|---|---|---|---|---|
| pick_place | 2/3 | 2.3 | 6.3 | 46,896 / 932 | 133 |
| put_in_bowl | 3/3 | 2.0 | 4.7 | 32,111 / 436 | 48 |
| stack | 3/3 | 3.3 | 8.7 | 73,884 / 1,138 | 122 |
| push_to_zone | 0/1 | 12 (8 more refused) | 29 | 377,227 / 7,999 | 962 |
push_to_zone was stopped after its first episode (it ran out of its 600 steps); press_by_number and sort_by_colour were not run for this page.
stack, seed 10000: locate both blocks, choose a grasp option, grasp, locate the target block again (the earlier handle is stale after the motion), place on it; five model calls, three decisions. Re-simulated from the trace, captions from the agent's turns and the condensed tool results.
The evidence a run keeps: every trace line is hash-chained (prev, h), so hylo seal refuses a run whose
lines were changed, removed or reordered and hylo seal --verify lists any file changed after sealing (the stack
run above: 3 episodes, 531 to 2,124 chained lines each, 45 files sealed). Model prompts are recorded by layer digest
(protocol, evidence rules, boundary, embodiment card) with the tool surface's digest. hylo chats turns the
successful, unsteered conversations into training records.
What the runs show.
- The model asks for a grasp option, executes it, re-locates the place target after the motion and places in two decisions on pick_place and put_in_bowl; stack takes three.
- An agent's own
finish(success)is not the verdict: in one pick_place episode the model reported success afterplace, and the task's check (object resting on the plate) said failure. - Without a push verb, push_to_zone has to be improvised from straight
move_tcpmotions; an early version of the agent let the model repeat the same refused rotation for 60 calls, so identical refused actions now count as repeated and three in a row end the episode.
Perturbed LIBERO¶
Seven perturbations of the official LIBERO scenes, declared on the task (benchmark params: perturb):
libero_goal "put the bowl on the plate": original; position (the bowl trades places with the cream cheese box); task (a rewritten goal: the cream cheese box on the plate, checked by LIBERO's own BDDL predicate); language (a paraphrase); object (recoloured); camera (moved about its view axis); noise (pixel noise and a glare spot); robot_init (the arm starts from offset joints).
27 of the 40 tasks of libero_spatial, libero_object, libero_goal and libero_10 have a goal rewrite (single On / In
goals onto a named object); each instruction has three paraphrases written by qwen3.5:35b-a3b and kept only when
they contain every object and place word of the original. The perturbations are implemented and tested on the simulator (the picture above, and the goal rewrite checked
by LIBERO's own predicate); tools.llm has not been evaluated on them yet.
