verify-first-build-least
Verify first, build least
Most avoidable coding mistakes come from writing against an imagined codebase, or from rewriting something that already exists in the real one. This loop grounds the plan first, then keeps what gets built as small as the problem allows.
Scale it to the task. The loop trades speed for caution, which a one-line fix does not need.
1. Ground the plan in the real code
Replace every assumption the plan rests on with something you observed. You are looking for the specific shapes and signatures your code will touch.
Read the ticket or request as the source of truth and pull out both the acceptance criteria and the constraints. Separate what is buildable now from what is blocked on something that does not exist yet, and say so early, because that reshapes scope before you invest in the wrong half.