Skip to content

coleman.spec.run_id

Deterministic run ID computation from canonical JSON.

coleman.spec.run_id

Deterministic run identifier derivation.

The run_id is the first 12 hex characters of the SHA-256 digest of the canonical JSON serialisation of a resolved :class:RunSpec. Canonical means: sorted keys and no whitespace padding — so the same logical spec always yields the same id.

compute_run_id

compute_run_id(spec)

Derive a deterministic run identifier from spec.

Parameters:

Name Type Description Default
spec RunSpec

Resolved run specification.

required

Returns:

Type Description
str

12-character hex string (SHA-256 prefix).