()
| 344 | } |
| 345 | |
| 346 | reset() { |
| 347 | this._phase = PHASES.IDLE; |
| 348 | this._targetTest = null; |
| 349 | this._redConfirmed = false; |
| 350 | this._startedAt = null; |
| 351 | this._requirements = []; |
| 352 | this._loopActive = false; |
| 353 | this._regressionClean = false; |
| 354 | this._save(); |
| 355 | return { ok: true, phase: PHASES.IDLE, message: 'TDD state reset to idle.' }; |
| 356 | } |
| 357 | |
| 358 | // ─── Phase prompt injection ───────────────────────────────────────────────── |
| 359 |