{ "prompt": "Our payment reconciliation job double-credits about one account in 50,000, but only on days when a retry overlaps the nightly settlement window. The idempotency key is the payment id. I have attached the worker, the settlement job, and three days of logs. Find the race and propose a fix that does not require taking the job offline.", "attachments": "worker.py (1,400 lines), settle.py (900 lines), logs (40MB)" }