solution_registry
Profile-scoped solution identities shared by evaluation and serving reports.
Functions
Select realized width/depth scenarios and assign stable report styles. |
|
Return a stable width/depth identity independent of artifact paths. |
|
Atomically persist a registry so partial writes cannot be resumed. |
- build_profile_solution_registry(mip_grid, *, selections)
Select realized width/depth scenarios and assign stable report styles.
- Parameters:
mip_grid (dict[str, Any])
selections (Iterable[tuple[int, int]])
- Return type:
dict[str, Any]
- canonical_solution_id(hidden_width, removed_sublayers)
Return a stable width/depth identity independent of artifact paths.
- Parameters:
hidden_width (int)
removed_sublayers (int)
- Return type:
str
- write_solution_registry(path, registry)
Atomically persist a registry so partial writes cannot be resumed.
- Parameters:
path (str | Path)
registry (dict[str, Any])
- Return type:
Path