unilab.utils.sim2sim.resolve_sim2sim_config¶
- unilab.utils.sim2sim.resolve_sim2sim_config(source_run_dir, target_cfg, *, algo_name=None, strict=True)[source]¶
Validate a target play config against the source training contract.
Returns
Noneifsource_run_dirisNone(an explicit “no source run” play); otherwise returnstarget_cfgunchanged (never mutated). RaisesCrossBackendIncompatibleErrorunderstrictwhen any DENYLIST field differs, including asymmetric presence forENV_STRUCTURAL_DENYLISTpaths. A source run whose contract snapshot is missing, malformed, or uses keys outside the current schema fails closed with the same error regardless ofstrict.