A pass releases the quarantine only after the object hashes to the row again, reads exactly ceil(N/page) SQL pages, publishes audit.attachment_discarded reason=reconcile for the intents it drops, is assembled by dishka with the same storage provider as the API and ends any failure as reconcile.failed with exit code 1. The demo passes 13 of 13 checks, and the cost matrix up to 100k confirms the request counts and the constant memory of H2 and refutes its linear time at 100k (19.6 instead of 10 +- 30 %, the RustFS listing page grows from 91 to 197 ms). student-test (348), test, persistence and failover pass on the stand. The requirements are synced into lab4-storage-reconciler. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V1d3RLHNBBMA6UqBLLJv27
30 lines
2.4 KiB
Markdown
30 lines
2.4 KiB
Markdown
## 1. Зона `attachments`: приложение
|
||
|
||
- [x] 1.1 `Pass`: хеширование объекта строки в карантине с совпавшим размером и без `--deep`; `_healthy` только после совпавшего хеша
|
||
- [x] 1.2 `Pass._rows`: выборка `страница + 1`, без пустой страницы
|
||
- [x] 1.3 `StorageReconciler` с портом `EventPublisher`: публикация событий после удаления намерения
|
||
- [x] 1.4 Проверка группы: `make lint`
|
||
|
||
## 2. Зона `attachments`: точка входа
|
||
|
||
- [x] 2.1 `AttachmentStorageProvider` в `entrypoints/ioc.py`; `ReconcileProvider` и сборка `make_async_container` в `entrypoints/reconcile.py`; журнал удалений через `EventBus`
|
||
- [x] 2.2 `main`: любая ошибка прохода → `reconcile.failed`, код `1`
|
||
- [x] 2.3 Проверка группы: API-тесты: другие байты той же длины оставляют карантин; восстановленные снимают его без `--deep` одним `GET`; SQL-страниц `⌈N/страница⌉`; событие `reason=reconcile`; ошибка не `Unavailable` → `reconcile.failed`, код `1`
|
||
|
||
## 3. Обвязка трека
|
||
|
||
- [x] 3.1 `scripts/reconcile-inject.sh`: один uuid у объекта без строки
|
||
- [x] 3.2 `scripts/reconcile_track.py demo`: множества найденного и внедрённого, чужие байты той же длины, `rechecked` под нагрузкой, `docker stop` идущего прохода
|
||
- [x] 3.3 `scripts/reconcile_track.py cost`: очистка прошлой серии, N до 100k; `Makefile` (`help`, `upload-memory ARGS`), `AGENTS.md`
|
||
- [x] 3.4 Проверка группы: `make check`, `make lint`
|
||
|
||
## 4. Измерения
|
||
|
||
- [x] 4.1 `make reconcile-demo` на чистом стенде → `evidence/reconcile/`
|
||
- [x] 4.2 `make reconcile-cost` на чистом стенде (1k, 10k, 30k, 100k) → `evidence/reconcile/cost/`; прошлая серия → `cost-b191623/`
|
||
- [x] 4.3 Проверка группы: H1 и H2 (формулировка `148868b`) по сырым отчётам
|
||
|
||
## 5. Проверка
|
||
|
||
- [x] 5.1 `make check`, `make lint`, `make student-test`, `make test`, `make test-persistence ACTION_SCRIPT=scripts/restart.sh`, `make test-failover ACTION_SCRIPT=scripts/stop-one.sh`
|