80626092026-08-20TK-10633 Option C prep: LIVE bucket-split (62 HAVE HWC / 584 HELD, both variants) + HWC restore-map + order-history via FULL token (near-zero) + canary-10
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FTb6zN3GEtWz4ML6e7S4ox
dbe09cd · 2026-09-24 · apply-tk10634: cap the 429 retry + stop writing the reversibility ledger in dry-run
The 429 branch re-called graphql() with tries UNCHANGED and no cap, so a sustained
Shopify throttle recursed forever and the live-store run neither finished nor hit
the failure path. Now capped (tries<10) with a thrown error on exhaustion, matching
the 502/503 and THROTTLED branches. Also moved both appendFileSync(REV_PATH) calls
to AFTER the idempotent-skip and !APPLY checks, so a dry-run no longer emits a
reversibility ledger that rollback could later replay as if writes had happened.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
File tree
40 files tracked. Click any to browse the source at HEAD.