Resolve the run-id from a manifest, falling back to a caller-provided default (typically the run-directory basename) when the manifest carries neither a string nor a numeric runId.
runId
Parsed manifest
Default returned when runId is missing or non-string
Best-effort run identifier
Resolve the run-id from a manifest, falling back to a caller-provided default (typically the run-directory basename) when the manifest carries neither a string nor a numeric
runId.