Commit bab60ac
fix: R2 hardening - NaN-safe JSON, isfinite guard, coupling docs
- json.dumps(allow_nan=False) prevents NaN/Infinity in JSON output
- math.isfinite() guard on p99 interpolation result
- ValueError/OverflowError catch in _get_request_counts
- Cross-reference comment for status label coupling (execution.py)
R2 review: 2 APPROVE (sec, opus), 2 REQUEST_CHANGES on documented
design limitations (in-process counters, hardcoded dispatch) - v2 items.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent c4faa4d commit bab60ac
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
252 | 257 | | |
253 | 258 | | |
254 | 259 | | |
| |||
260 | 265 | | |
261 | 266 | | |
262 | 267 | | |
263 | | - | |
| 268 | + | |
264 | 269 | | |
265 | 270 | | |
266 | 271 | | |
| |||
407 | 412 | | |
408 | 413 | | |
409 | 414 | | |
410 | | - | |
| 415 | + | |
| 416 | + | |
411 | 417 | | |
412 | 418 | | |
413 | 419 | | |
| |||
422 | 428 | | |
423 | 429 | | |
424 | 430 | | |
425 | | - | |
| 431 | + | |
0 commit comments