Commit 7ed2e89
fix: [#836] address re-review — rename misleading test + document negative-cost follow-up
Reviewer caught that the test 'tokens.input is never negative even with
inconsistent provider counts' is the OPPOSITE of what it actually
verifies. The test pins that the algebraic invariant
input + cache.read + cache.write === inputTotal holds when input IS
negative — not that input avoids being negative.
Renamed to 'invariant holds even when tokens.input goes negative on
inconsistent provider counts' which matches the test body. Expanded
the comment to note the downstream cost-calculation implication
(negative input × positive cost rate produces a negative cost
contribution) as a pre-existing follow-up concern.
No code behavior change.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 80d7e8a commit 7ed2e89
1 file changed
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
168 | 173 | | |
169 | 174 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
174 | 184 | | |
175 | 185 | | |
176 | 186 | | |
| |||
0 commit comments