Files
contracts-flask/History/opus-review-response-2026-06-28.md

21 lines
1.1 KiB
Markdown
Raw Permalink 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.
# Результат ревью Opus — исправлено
Дата: 28.06.2026
## Закрыто
| # | Баг | Статус |
|---|-----|--------|
| 1 | Двойная сериализация JSON (`json.dumps` ×2) | ✅ `PgRepository.set_document_parsed` передаёт `elements` напрямую |
| 2 | DI не доведён до `classify_batch` | ✅ `classify_batch(batch_id, llm_client=None, repo=None)` |
| 3 | `ParseResult.from_row` element_count=0 | ✅ `len(elements)` |
| 4 | `GroupingResult.unresolved` глобален | ✅ вынесен в `BatchGroupingResult` |
| 5 | Неполный Protocol | ✅ +7 методов: `get_document`, `list_by_batch`, `count_by_status`, `reset_classify_status`, `set_classify_processing`, `delete_document` |
| — | Тесты | 22/22 PASS |
## Осталось (следующая итерация)
- Интеграционные тесты на реальном PG (docker-compose + fixtures)
- Тест `classify_batch` с FakeLLM + MemRepo
- Фикстуры реальных LLM-ответов
- CompareOp сверка с process.py