feat: add reconcile strategies, deep check, rate limit and cost profile

- reconcile --strategy head, --deep (checksum_mismatch), restore needs the same SHA-256
- [reconciler] max_objects_per_second (2000), pause interrupted by signal
- --apply stops rechecks once the limit is exceeded (unchecked)
- pass cost in the summary: S3 objects and requests, bytes, DB sessions, phases
- S3 client counters, cleaner exits with os._exit after main()
- fault tests, hook args, driver reconcile-signal --pace
- bench profile reconcile / reconcile_quick: fill outside the API, gateway metrics, background load
- sync spec deltas, rules, AGENTS.md, PLAN.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-23 04:52:56 +03:00
co-authored by Claude Opus 5.5
parent dcdfe5f2e4
commit 8d4cf7eebf
41 changed files with 5344 additions and 441 deletions
+11 -1
View File
@@ -201,7 +201,17 @@ paths:
`fresh_rows`, `lost_known`, `refused`, `unlogged`, `interrupted_by`,
`duration_ms`): `info`, если ничего не осталось, иначе `warning`;
- предел — `error` «Reconcile changes exceed limit» (`changes`,
`max_changes`);
`max_changes`, с change `track2-reconcile-cost` — `unchecked`;
`changes` после раннего отказа — `max_changes + 1`, нижняя граница);
- стоимость прохода (change `track2-reconcile-cost`, решения 8 и 15):
записи прохода связаны полями `strategy` и `deep`; итог ещё называет
`max_objects_per_second`, `storage_objects`, `s3_requests` (`list`,
`head`, `get`, `delete`), `read_bytes`, `db_sessions`, `unchecked`,
`phase_ms` (`list`, `rows`, `stale`, `recheck`, `act`) — ключи
постоянные, значения числа; «Started cleaner» — ещё
`reconcile_max_objects_per_second`, а у разового прохода
`reconcile_strategy` и `reconcile_deep` (у сервиса — `null`). SHA-256
объектов и строк в записях нет;
- непредвиденная ошибка — `error` «Reconcile pass failed» с traceback
(`cleaner`); «Started cleaner» с change называет ещё `mode`,
`reconcile_interval_seconds`, `reconcile_page_size`,