mirror of
https://github.com/affaan-m/ECC.git
synced 2026-12-06 23:24:01 +09:00
Review feedback (CodeRabbit, Greptile): the attempt cap still assumed 25 ms per wait, but the jittered waits average about 15 ms, so writers ran out of attempts at roughly 1 s on the default budget and about 5 s on the 10 s install-state budget. - Derive the safety cap from the minimum wait, so the elapsed budget is what actually stops retries. - Raise the minimum jittered wait from 1 ms to 5 ms. That keeps the safety cap meaningful (401 attempts per default write) while the 5-25 ms spread still breaks contender lockstep. - Add tests whose fake clock advances by the requested wait. They fail on the previous commit (retries stopped at 1073 ms and 5127 ms) and pass now. - Update the session-aliases bound that encoded the old cap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>