﻿# robomimic done modes: a terminal boundary is not automatically task success

Inspect robomimic conversion settings before interpreting dones as success labels or using them to stop value bootstrapping in offline reinforcement learning.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-robomimic-done-mode-terminal-boundary-not-success-label/
Language: en

## Inspect the meaning before counting successes

An analyst reads the final done value in each robomimic demonstration and counts every terminated trajectory as a successful manipulation. That conclusion is valid only if the producing pipeline defined termination that way. A recording can end without satisfying a task predicate, and a task can become successful before the stored trajectory ends. Keep the boundary signal and the success criterion distinct until the conversion settings establish their actual relationship for the file being analyzed.

## Read the common container contract

The [dataset overview](https://robomimic.github.io/docs/datasets/overview.html) describes the HDF5 trajectory structure, including actions, rewards and dones. A shared field name enables common loading code; it does not establish a single annotation policy for every imported source. Preserve the environment metadata and preprocessing provenance with an exported dataset. Without them, the array is syntactically readable while its intended role in a learning objective can remain ambiguous.

## Trace how done was written

The [state-to-observation conversion source](https://raw.githubusercontent.com/ARISE-Initiative/robomimic/master/robomimic/scripts/dataset_states_to_obs.py) supports marking success states, marking trajectory ends or combining those conditions. It also supports copying existing done values instead of replacing them with inferred values. Consequently, a converter’s presence alone does not reveal which policy produced an artifact. Record the actual options, source file and code revision. Inspect transitions around both success and the final recorded action rather than checking only whether the last entry is true.

## Separate wrapper success from stored boundaries

The [environment interface](https://raw.githubusercontent.com/ARISE-Initiative/robomimic/master/robomimic/envs/env_base.py) exposes task success separately from ordinary stepping and environment state operations. Use the concrete wrapper’s documented success implementation when reconstructing labels. If evaluating an offline value target, state explicitly which condition stops bootstrapping; replacing one done policy with another changes that target even when all observations and actions stay fixed. This is an objective change, not merely a different choice of file serialization.

## Publish a small provenance check

Select trajectories that end before success, reach success early or contain ambiguous boundaries if such cases exist in the source. Compare original done values, reconstructed success and the chosen training mask. [Entity-aware split design](/journal/data-guide-entity-group-split-design/) keeps corresponding converted trajectories together; [software reproducibility](/journal/software-stack-reproducibility/) preserves converter options. Report disagreements as annotation-policy differences unless further evidence establishes an error. This prevents a convenient terminal flag from becoming an unsupported benchmark success claim or an undocumented learning-target modification.
