defining expected behavior precisely 2. **AI writes the implementation** -- generating code to pass your tests 3. **You run the tests** -- verifying the AI's implementation 4. **You refactor together** -- improving the code while keeping tests green