feat: reconcile the bucket against attachment rows in the cleaner

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-22 19:32:08 +03:00
co-authored by Claude Opus 5.5
parent c13df14f36
commit c1648d9b83
53 changed files with 4207 additions and 205 deletions
+9
View File
@@ -207,6 +207,15 @@ stop_s3:
s3_check:
$(PYTHON) .claude/skills/run-mtusi-messenger/driver.py s3-check
# разовая сверка bucket и БД в контейнере уборщика (образ собирает
# make run_docker): по умолчанию dry-run — отчёт без изменений; APPLY=1 —
# исправить, MAX_CHANGES=N — предел изменений прохода вместо [reconciler]
# max_changes. Код 0 — расхождений нет, 3 — остались, 1 — прерван, 2 —
# конфигурация (design change track2-reconciler, решения 1 и 8)
.PHONY: reconcile
reconcile:
$(DC) run --rm --no-deps cleaner reconcile$(if $(filter 1,$(APPLY)), --apply)$(if $(MAX_CHANGES), --max-changes $(MAX_CHANGES))
# -------------------------
# Реплики за балансировщиком (HAProxy)