1 RolloutDatasetWriter

rollouts.RolloutDatasetWriter(config)

Generate target-RRI rollout records and write a standalone Zarr store.

For each source row the writer selects V1 actor-visible targets, validates GT/evaluation matches when required, regenerates candidates at each rollout step from updated history/budget, scores candidates by target RRI, and persists compact replay records. Heavy diagnostics should be retained only for selected actions or retained chains through the downstream Zarr policy.

This class is the handoff point between data_handling and pose_generation: it reads immutable VinOfflineSample roots, calls the finite-candidate counterfactual generator, and emits RolloutZarrRecord objects that are stored independently of the VIN offline cache.

1.1 Methods

Name Description
run Build the configured rollout store.

1.1.1 run

rollouts.RolloutDatasetWriter.run(invocation=None, shard_entry=None)

Build the configured rollout store.

In normal mode the configured source split and max_samples decide the rows. In shard mode the RolloutShardEntry is authoritative: source rows are filtered and ordered from the manifest, max_samples is ignored, and source/config hash mismatches fail before generation.