Repository navigation
fix(transport): retry idempotent verbs on httpx transport errors; add KalshiNetworkError - #279
Conversation
… KalshiNetworkError Closes #240
93fb61e to
fc9d6f6
Compare
Code Review — PR #279: retry idempotent verbs on httpx transport errors; add KalshiNetworkErrorOverviewThis PR closes #240 by adding proper handling for Issues1.
|
Code Review — PR #279: Transport-level retry +
|
| Category | Finding | Severity |
|---|---|---|
| Correctness | Exception ordering (TimeoutException before TransportError) is right | ✅ |
| Correctness | Pre-wire ConnectError retry logic is sound | ✅ |
| Correctness | Budget check applied to new retry path | ✅ |
| Documentation | CLAUDE.md "POST/DELETE NEVER retried" needs scope clarification | Minor |
| Tests | DELETE+ConnectError retry not tested | Minor |
| Tests | WriteError/RemoteProtocolError on POST not tested | Minor |
| Tests | async sleep patching is slightly imprecise | Nitpick |
| Tests | fake_sleep duplicated 4× in async class |
Nitpick |
The core implementation is solid and ready to merge. Items 2–3 (DELETE and WriteError test coverage) are worth adding given this is explicitly a money-risk batch — but could be a fast follow if you want to keep the PR scope tight.
Closes #240
Part of #273 (post-v2.4 audit), Wave 1 money-risk batch.