Files
ECC/tests/lib
vnegriyandClaude Opus 5.5 8b4723a613 fix(atomic-write): size the rename attempt cap for the shortest wait
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>
2026-11-18 21:28:58 +03:00
..
2026-11-05 23:24:35 -05:00
2026-11-05 23:24:06 -05:00