Un agente di codifica può gestire una correzione di bug end-to-end — riprodurre, localizzare, correggere, verificare, fare commit — ma rimani in controllo gating il ciclo con autorizzazioni limitate, approvazione umana e piccoli step reversibili. L'agente fa la digitazione; tu decidi cosa effettivamente approda.
Il ciclo
1. REPRODUCE → write/run a failing test that demonstrates the bug (red)
2. LOCATE → search the codebase, read the relevant files, form a hypothesis
3. PROPOSE → draft a minimal fix (you can review the plan before any edit)
4. VERIFY → run tests + lint/typecheck → fix is proven by the test going green
5. REVIEW → show the DIFF for your approval (nothing committed yet)
6. COMMIT → only after approval, on a branch, with a clear message
