coco_pipe.decoding.persistence#
Resumable decoding-run artifact utilities.
Functions#
|
Recursively redact credentials before persisting configs or reports. |
|
Return a stable short hash for a run configuration. |
|
Return whether |
|
Rehydrate aggregate rows for a safely resumed experiment. |
|
Write exactly one run-level success, partial, or failure marker. |
Module Contents#
- coco_pipe.decoding.persistence.redact_sensitive(value)#
Recursively redact credentials before persisting configs or reports.
- Parameters:
value (Any)
- Return type:
Any
- coco_pipe.decoding.persistence.config_hash(config)#
Return a stable short hash for a run configuration.
- Parameters:
config (collections.abc.Mapping[str, Any])
- Return type:
- coco_pipe.decoding.persistence.completed_for_config(output_dir, config)#
Return whether
output_dircontains a successful matching run.- Parameters:
output_dir (str | pathlib.Path)
config (collections.abc.Mapping[str, Any])
- Return type:
- coco_pipe.decoding.persistence.load_completed_result_records(output_dir, context)#
Rehydrate aggregate rows for a safely resumed experiment.
- Parameters:
output_dir (str | pathlib.Path)
context (collections.abc.Mapping[str, Any])
- Return type:
- coco_pipe.decoding.persistence.write_run_status(root, status)#
Write exactly one run-level success, partial, or failure marker.
- Parameters:
root (str | pathlib.Path)
status (str)
- Return type: