Files
mtusi2026lab4/openspec/changes/harden-lab4-storage-reconciler/tasks.md
T
ArtyomandClaude Opus 5.5 f1ee385a1b Tie the track tooling to keys, sets and a clean series
reconcile-inject.sh wrote an orphan under a key whose uuid differed
from the id it printed, so the demo could only compare counts; it now
uses one uuid for both, and the dry-run check compares the found and
the injected sets per class. The heal step returns the original bytes
under one quarantined key and random bytes of the same length under
another, and checks that only the first leaves the quarantine. The
load phase sums rechecked over its passes, and a new step stops a pass
hanging on a paused S3 with docker stop and checks exit code 143 within
seconds and a free lock afterwards.

reconcile_track.py cost clears the run files of the previous series and
measures 1k, 10k, 30k and 100k with --deep everywhere. The scenarios
record date, commit and docker inspect of the replicas or of S3 at the
moment they are down. make load-evidence and make clean-clone-evidence
rerun the message load and the clean clone block with raw output, and
make upload-memory passes ARGS to reproduce the run directories.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V1d3RLHNBBMA6UqBLLJv27
2026-10-30 09:01:39 +03:00

2.4 KiB
Raw Blame History

1. Зона attachments: приложение

  • 1.1 Pass: хеширование объекта строки в карантине с совпавшим размером и без --deep; _healthy только после совпавшего хеша
  • 1.2 Pass._rows: выборка страница + 1, без пустой страницы
  • 1.3 StorageReconciler с портом EventPublisher: публикация событий после удаления намерения
  • 1.4 Проверка группы: make lint

2. Зона attachments: точка входа

  • 2.1 AttachmentStorageProvider в entrypoints/ioc.py; ReconcileProvider и сборка make_async_container в entrypoints/reconcile.py; журнал удалений через EventBus
  • 2.2 main: любая ошибка прохода → reconcile.failed, код 1
  • 2.3 Проверка группы: API-тесты: другие байты той же длины оставляют карантин; восстановленные снимают его без --deep одним GET; SQL-страниц ⌈N/страница⌉; событие reason=reconcile; ошибка не Unavailable → reconcile.failed, код 1

3. Обвязка трека

  • 3.1 scripts/reconcile-inject.sh: один uuid у объекта без строки
  • 3.2 scripts/reconcile_track.py demo: множества найденного и внедрённого, чужие байты той же длины, rechecked под нагрузкой, docker stop идущего прохода
  • 3.3 scripts/reconcile_track.py cost: очистка прошлой серии, N до 100k; Makefile (help, upload-memory ARGS), AGENTS.md
  • 3.4 Проверка группы: make check, make lint

4. Измерения

  • 4.1 make reconcile-demo на чистом стенде → evidence/reconcile/
  • 4.2 make reconcile-cost на чистом стенде (1k, 10k, 30k, 100k) → evidence/reconcile/cost/; прошлая серия → cost-b191623/
  • 4.3 Проверка группы: H1 и H2 (формулировка 148868b) по сырым отчётам

5. Проверка

  • 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