Search, inspect,
then season.
The spice can be in any closed drawer. The robot inspects drawers, updates its belief after each look, then picks the spice, seasons the food, and puts it back.
A principled programming model and runtime for parallel, asynchronous closed-loop robot agents, with a theoretical foundation for compositional abstraction across different timescales.
We study long-horizon manipulation under partial observability. One model alone is not a practical way to solve these tasks; robots instead run hierarchical closed-loop pipelines of perception, memory, planning, learned skills, and control. These modules work at different timescales: a planner reasons over the whole task, while a controller acts many times per second. Many robotics and AI works study such hierarchies, for example hierarchical task and motion planning, learned abstractions for planning and hierarchical world models. On a robot, these timescales have to meet in physical time. A foundation model may take seconds to reason while the controller must keep acting, so its result can be stale when it arrives. Deep learning has PyTorch for composing layers; robotics has no widely used way to compose modules in time, so timing is wired by hand in callbacks and glue code.
Retriever is a programming model and runtime for these pipelines. Each module is a Flow with a Clock that says when it runs and Sync policies that say which inputs it reads. You can step the graph locally to debug, or run it asynchronously on the robot. With initial states, inputs, clock decisions, and random draws logged, a run can be replayed exactly. Retriever-0, the agent below, is one such graph.
The spice can be in any closed drawer. The robot inspects drawers, updates its belief after each look, then picks the spice, seasons the food, and puts it back.
The bag hides what is inside. The robot lifts the bag, finds the items, and sorts them onto plates in one closed-loop run.
The same structure runs the drawer search and the bag task. It combines perception, belief memory, planning, monitoring, skills, and control across both.
The closed-loop pipeline carries both tasks across many skills. See the reported results in the blog, including what happens when each part is removed.
Retriever-0 takes a goal in natural language, plans with a VLM, keeps a language memory of what it has observed, and executes learned bimanual skills, all in one closed-loop program. Both tasks use the same modules. In the bag task, the bag deforms as the robot handles it, so perception and manipulation have to stay in a fast loop. The blog summarizes the task setups and component ablations.
The videos above show a few features of Retriever-0, each declared in its program:
SkillCmd.These features belong to Retriever-0’s specific models and graph. The videos illustrate the behavior; the paper and blog report the component ablations.
The playground below replays a recorded MuJoCo simulation of the drawer search with a Panda arm. Press Run, change the speed, and switch between a fresh search and a search that uses the remembered drawer.
Retriever-0 is a demonstration agent for long-horizon manipulation under partial observability. It closes the perception–reasoning–action loop by combining camera observations, belief memory, VLM planning, VLA skills, execution monitoring, and high-rate control. The agent updates its memory and plan during the task, while the controller keeps running.
Retriever-0 closes the loop across perception, belief memory, planning, skill execution, and control.
Read the graph through Flow, Clock, and Sync:
Two feedback loops react to what actually happened: inspection → memory → new plan, and progress → monitor → next skill. New observations change the belief used by planning. The execution monitor reads plan chunks and skill progress to decide when to replan or switch skills, while the controller keeps running.
In Python, these loops are ordinary Pipeline edges declared with the same Flow, Clock, and Sync vocabulary.
The same graph fits in a short Python program: define the Flows with their Clocks, then compose them in a Pipeline with a Sync policy on each edge.
Each task class implements the core Flow API. The surrounding program assigns clocks, wires edges, and chooses sync policies. step() and run() execute the same graph.
# 1) Define Flows (what computes) and clocks (when they run)top_cam = CameraSource(id=0) @Rate(hz=30)wrist_cam = CameraSource(id=1) @Rate(hz=30)belief = BeliefMemoryFlow() @Trigger("inspection_done")monitor = ExecutionMonitorFlow() @Trigger("belief_updated", "progress_prediction")planner = VLMPlanFlow("gemini") @Trigger("replan")vla = VLASkillFlow("pi05") @Rate(hz=2)robot = ControllerFlow(id=0) @Rate(hz=200)
# 2) Compose the graph and declare sync policies on edgespipe = Pipeline("Closed-loop Agent")with pipe: wrist_cam.then(vla, sync=Latest()) \ .then(robot, sync=Chunking())
top_cam.then(belief, sync=Latest()) \ .then(planner, sync=Latest()) \ .then(monitor, sync=Latest()) \ .then(vla, sync=Latest())
# 3) Debug locally or deploy asynchronouslypipe.step(dt=0.1)pipe.run(backend="dora")Drag across the timeline to follow 15 seconds of execution. Each row is a Flow running on its own clock. Arrows show time spent computing, and blocks show outputs that remain valid until a replacement arrives.
Dots mark Flow starts. Dashed links connect causes to effects. They do not mark regular global ticks. Timings are schematic, not measured.
The graph, the code, and the timeline show the same program. pipe.step and pipe.run execute the same graph.
Each Flow selects inputs by timestamp. Record a run, then replace the camera sources with the recording and run the same graph again:
# Record: step the pipeline and log every pipeline outputpipe.record("session.rrd", steps=200, dt=0.1)
# Replay: each camera becomes a replay source on the same clockpipe.replay(top_cam, path="session.rrd")pipe.replay(wrist_cam, path="session.rrd")pipe.step(dt=0.1) # or pipe.run(backend="in-process")Replay is exact under two conditions. The log fixes initial states, the inputs each Flow consumed, the clock and commit decisions, and the random draws, with strictly causal feedback and same-tick reads in dependency order. The re-run computations are deterministic. Then replay gives the same outputs, however the scheduler interleaves the Flows. A recorded run can also be stepped through again with pipe.step, and the log shows what each Flow read.
Robotics is unlikely to settle on one planner, policy library, middleware, or hardware stack. A shared graph vocabulary for modules, clocks, and data handoff makes systems easier to compare, modules easier to replace, and traces easier to inspect. As reasoning models get stronger, something must still decide when they are called, which observations they see, and what the controller does meanwhile; Retriever is where those decisions are written down, so a better model can drop in as one Flow.
ROS 2 callbacks can implement this behavior. Retriever makes local state, computation, run clocks, and sync policies explicit in one graph. In the drawer example, an inspection that does not find the spice updates memory so the search continues after the drawer leaves view.
Each edge's Sync policy declares how to handle late or stale inputs—hold the last valid value for a bounded duration, mark it expired, trigger a safe fallback, or wait for a fresh event—while each Clock sets whether lagging ticks drop, catch up, or warn. Deciding whether an older plan still applies after a belief update stays in the monitor or planner Flow.
In Retriever-0, the monitor reads plan chunks, belief updates, and skill-progress predictions. It selects the active skill command, resolves conditional branches, and emits replanning and inspection-complete events. A Flow is a stateful computation module, not flow matching.
Yes, a capable model with updatable memory and tools could solve the task. Retriever exposes how computations, memory, and timing are composed; it does not rule out that alternative.
Linfeng Zhao, Haojie Huang, Jiayuan Mao, Weiyu Liu, Lawson L. S. Wong, and Mykel J. Kochenderfer. Retriever: Composing the Perception-Reasoning-Action Loop for Long-Horizon Manipulation. arXiv:2607.17213, 2026.
Download BibTeX · Paper (arXiv) · PDF · Permanent citation link
@misc{zhao2026retriever, title = {Retriever: Composing the Perception-Reasoning-Action Loop for Long-Horizon Manipulation}, author = {Linfeng Zhao and Haojie Huang and Jiayuan Mao and Weiyu Liu and Lawson L. S. Wong and Mykel J. Kochenderfer}, year = {2026}, eprint = {2607.17213}, archivePrefix = {arXiv}, primaryClass = {cs.RO}, url = {https://arxiv.org/abs/2607.17213}}We thank Sebastian Castro, Toby Huang, Siyuan Huang, Haoyan Lin, Shoukang Yu, and Liyun Zhang for helpful technical discussions and contributions to implementation and experimentation. We thank Hao Zhou and Jason Wu for their support. Also, we thank Will Shen, Wenlong Huang, Leslie Kaelbling, Jeannette Bohg, and other colleagues for helpful discussions and feedback.