﻿# OpenPI action chunk brokers change when observations reach the model

Follow the OpenPI client action broker from cached chunk to renewed inference, distinguish prediction length from execution horizon, and account for reset and network timing.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-openpi-action-chunk-broker-observation-refresh/
Language: en

## A policy call at the client need not be a model call

A robotics application may invoke its policy wrapper on every control tick and assume each new camera image reaches the inference server. With chunked actions, a wrapper can instead return the next cached command. Logging wrapper calls as model calls therefore misdescribes both feedback frequency and compute demand.

The [OpenPI project](https://raw.githubusercontent.com/Physical-Intelligence/openpi/main/README.md) publishes several robot model workflows. Pin the selected model and client revision rather than extrapolating one timing policy to every package built around the family.

## The broker caches a structured result

The [action chunk broker](https://raw.githubusercontent.com/Physical-Intelligence/openpi/main/packages/openpi-client/src/openpi_client/action_chunk_broker.py) calls the inner policy when no cached result exists, then slices array fields at the current chunk step. Between refreshes, newly supplied observations do not trigger inner inference.

That is a concrete feedback schedule. If a recorded observation appears in a client trace, it does not prove the server conditioned the current command on it. Preserve the observation associated with the original chunk request.

## Execution horizon differs from prediction extent

The broker's `action_horizon` determines when the cached result is discarded. The model may return a longer action sequence. Executing only a prefix and replanning is different from consuming the full predicted array.

Record returned extent, consumed extent, and control-tick duration separately. A chosen horizon must fit available array entries. The [tensor-axis guide](/journal/tensor-axes-batch-sequence-hidden/) helps identify chunk and action-component dimensions rather than treating the whole response as a flat vector.

## Transport latency and reset have their own boundaries

The [WebSocket policy client](https://raw.githubusercontent.com/Physical-Intelligence/openpi/main/packages/openpi-client/src/openpi_client/websocket_client_policy.py) sends an observation and waits for its response. This transport path does not make the simple broker an asynchronous replanning system.

The broker resets its cached state when reset is invoked. Preserve episode boundaries explicitly; otherwise an application can retain commands derived from an earlier episode. Distinguish local broker reset from any separate server-side state-management protocol.

## Measure feedback freshness alongside inference duration

An offline audit can trace observation timestamp, request time, response time, and each consumed chunk position. This reveals how old the conditioning observation is when a command is selected, without inventing a universal control frequency.

The [latency and throughput guide](/journal/throughput-latency-tradeoff/) provides context for reporting compute timing. Reducing server requests is not automatically better task performance: action freshness, transport behavior, and the selected execution policy define different parts of the system.
