unilab.visualization.interactive_playback.make_sim2sim_preflight

unilab.visualization.interactive_playback.make_sim2sim_preflight(cfg, *, algo_name)[source]

Build a sim2sim contract preflight closure for interactive playback entrypoints.

Requires the composed Hydra config for the playback run; the legacy non-Hydra path (which silently skipped the preflight) has been removed, so a missing or non-Hydra config fails closed. A source run whose contract snapshot is missing, malformed, or uses retired keys also fails closed in resolve_sim2sim_config(); only an explicit None source run dir skips the check.

Parameters:
  • cfg (DictConfig)

  • algo_name (str)

Return type:

Callable[[str | None], Any]