In everyday life
Like counting stitches at the end of every row of knitting, not only when the scarf is done. A dropped stitch found at once costs one row; found at the end, it costs the scarf.
One case
An agent renames a function that 40 files use. It works in 8 steps of 5 files and runs the tests only once, at the end. 23 tests fail, from three different steps, and now the agent must search all 40 files to find which edits caused which failures.
Every case
A break found right after the step that caused it is cheap: the cause is in the last few lines. A break found after a batch is buried, and more work already sits on top of it. The cost of a mistake grows with the distance between making it and seeing it. So each step is a bracket: a known-good state, one change, one check, and only then the next step.
The word
Engineers call this
End every step greenPassing. A check that passes is shown green; a check that fails is shown red. before you take the next one. Then a failed check points at the last step, not at the whole job.