Turn an arbitrary run-id string into a short, filename-safe suffix.
Keeps ASCII word/dash characters only, trims leading/trailing dashes,
and caps the length at RUN_SUFFIX_MAX_LENGTH to avoid filesystem
path-length surprises. Falls back to DEFAULT_RUN_SUFFIX when no
characters survive the sanitiser.
Parameters
runId: string
Raw run identifier from the manifest (or directory name)
Turn an arbitrary run-id string into a short, filename-safe suffix. Keeps ASCII word/dash characters only, trims leading/trailing dashes, and caps the length at RUN_SUFFIX_MAX_LENGTH to avoid filesystem path-length surprises. Falls back to DEFAULT_RUN_SUFFIX when no characters survive the sanitiser.