The full SHA of HEAD and whether the working tree differs from it.
The tree differs when a tracked file has a change or an untracked file lies outside regen/runs/; an untracked earlier run does not count. Nothing is refused for a dirty tree: spotregen mutate copies the working tree and records the fact, where base_commit refuses.