Skip to main content

Module slots

Module slots 

Source
Expand description

Run-slot enumeration for a condition cell.

A condition directory holds either a single run directly (the legacy flat layout: eval-<id>/<cond>/run.json) or N nested runs under 1-based run-<k> subdirectories (eval-<id>/<cond>/run-2/run.json). Stages that walk the workspace by convention enumerate slots through run_slots so both layouts — including a mix across cells within one iteration — read the same way.

Structs§

RunSlot
One run’s artifact directory within a condition cell.

Functions§

run_key
The lookup key for a run within the iteration: <eval_id>:<condition>, with a :r<k> suffix for indexed runs in a multi-run cell.
run_slots
Enumerate the run slots of cond_dir: its run-<k> subdirectories sorted numerically when any exist, otherwise cond_dir itself as the single legacy slot. Existence checks stay with the caller — a nonexistent cond_dir still yields the legacy slot.