fix(report): weight 1h cache writes at 2x, not 1.25x #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/1h-cache-write-weight"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
burnrate already split cache_creation into its 5m and 1h halves and charted them separately, then multiplied both by 1.25. Only the 5m write bills at 1.25x base input; a 1h write bills at 2x, so every 1h token was counted at 62.5% of its weight and the composition legend named the wrong multiplier next to the wrong bar.
be_of now weights 1.25 on (cache_creation - ephemeral_1h) and 2 on ephemeral_1h. Across my own 40 active days that moves the total from 851M to 947M billed-equiv, +11.4%. Transcripts predating the cache_creation breakdown report no 1h tokens and keep the 5m weight throughout, which the docstring says outright.
Fixture weights match, so per-message billed-equiv is an exact 775 instead of 700, and the suite fails in 19 places if the two weights are collapsed back into one. 141 tests pass.