Files
jellybit/openspec/changes/archive/2026-07-17-2026-07-17-retry-reject-broken-torrent/tasks.md
T

18 lines
915 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 1. Код
- [x] 1.1 В `Worker.Retry` заменить ветку `alive && classify(state)==classErrored`:
вместо `reAdd=true` — отказ `ErrConflict` с понятным сообщением (починить
раздачу `recheck` в qBittorrent), без изменения состояния и без `Add`
- [x] 1.2 `reAdd` оставить `true` только когда раздачи нет (`!alive`)
## 2. Тесты
- [x] 2.1 `TestRetryRejectsLiveErroredTorrent``error`/`missingFiles`: retry
возвращает `ErrConflict`, состояние `failed` не тронуто, `Add` не вызван
- [x] 2.2 `TestRetryReattachesLiveHealthyTorrent` — контроль: живой здоровый
торрент перецепляется без `Add`
## 3. Спека
- [x] 3.1 MODIFIED-требование в `state-reconciliation`; `openspec validate --strict`