phenotypic.sdk_.resolve_split_assignment_path#

phenotypic.sdk_.resolve_split_assignment_path(output_dir: Path) Path[source]#

Return the split assignment that exists, preferring .pht-tune-cache/.

Read-only resolver mirroring resolve_progress_dir(). The held-out split is checked in the hidden tune cache FIRST, THEN at the legacy output root — a missing split silently RE-DERIVES a fresh held-out partition on resume (a reproducibility / held-out-leak bug), so resume MUST find a legacy-root split.json. Falls back to the new location when neither exists (the default for a fresh derive-and-write).

Parameters:

output_dir (Path) – The run output directory.

Returns:

The split-assignment path that exists, else the new cache location.

Return type:

Path