Commit 6fe9d59
triage: clamp neutralPct to 0 to honor the 0-100 contract (#3594141069)
Independent Math.round of positive and negative can push their sum over 100
(e.g. 50.5->51 and 49.5->50), making the neutral remainder negative and violating
the OpenAPI 0-100 percentage contract. Clamp the remainder to 0.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent be73ee3 commit 6fe9d59
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
198 | 202 | | |
199 | 203 | | |
200 | 204 | | |
| |||
0 commit comments