Sharpen the task — before a single line is written.
Your task description gets pressure-tested before a single line of code runs. Gaps get surfaced and closed. The clearer your description, the better the result — and the easier it is to judge in the morning.
If the request is weak: the work stays in planning until it is specific enough to build and honest enough to judge. A clear done condition is the difference between a useful result and a confusing one.