Repository navigation
Commit 9f1f730
committed
test(bedrock): scope the tier 1h guard to rows that price a 1h write
What:
- Narrow the tier invariant: a tier that omits `cacheWritesPrice1h` now fails
only when the entry itself prices a 1h write, so a 5m-only row's tier has no
rate to shadow and is exempt.
Why:
The first cut required a 1h rate on every tier that repriced `inputPrice`,
which would have failed a future 5m-only model that gains a long-context tier.
CodeRabbit's inline suggestion on thread KJYK named the correct exemption.
Impact:
Test-only. Still fails on the shadow it targets: removing the 1h rate from
`anthropic.claude-sonnet-4-6`'s 1M tier fails the case with "reprices input but
not the 1h write". All four current tiers pass.1 parent f5aa3e1 commit 9f1f730
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
563 | | - | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
564 | 566 | | |
565 | | - | |
566 | | - | |
567 | | - | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
568 | 570 | | |
569 | 571 | | |
570 | | - | |
571 | | - | |
| 572 | + | |
| 573 | + | |
572 | 574 | | |
573 | 575 | | |
574 | 576 | | |
| |||
0 commit comments