1 RolloutZarrRecord

rollouts.trace.RolloutZarrRecord(result, lineage, rollout_id_prefix)

One counterfactual rollout result plus source/target lineage.

CounterfactualRolloutResult owns the generated trajectories and candidate shells. RolloutLineage owns where those trajectories came from. The Zarr writer flattens this pair into normalized source, target, rollout, step, and candidate tables.

1.1 Methods

Name Description
lineage_for_chain Return lineage with rollout id and chain id for one retained trajectory.

1.1.1 lineage_for_chain

rollouts.trace.RolloutZarrRecord.lineage_for_chain(chain_id)

Return lineage with rollout id and chain id for one retained trajectory.