codeburn/scripts/upgrade-path
iamtoruk 52ceceb211 cache: re-derive the daily rollup for the codex session_meta model fix
The codex parse version and CODEX_CACHE_VERSION bumps in #1040 make codex
sessions re-parse, but the daily cache has no per-provider invalidation, so
every day already finalized keeps its old per-model rows - and usage-aggregator
serves every day before today from that cache, with ten-year retention. Raise
DAILY_CACHE_VERSION and MIN_SUPPORTED_VERSION to 20 so history re-derives once
off the warm session cache.

The re-derivation test now seeds v19, the last shipped version, so it models the
real 19 -> 20 path, and the upgrade-path check expects daily-cache.v20.json.

Measured on a real 110-day cache: no day lost value, none disappeared, 100 came
back identical, and 9 grok days rose by $19.80 in total from rollups an earlier
parse change had left stale. Every codex model row was unchanged - that corpus
predates the provenance field the fix corrects.
2026-08-19 11:28:40 -07:00
..
compare.mjs ci: verify the 0.9.20 upgrade path on every platform 2026-08-18 12:14:55 -07:00
gen-corpus.mjs ci: verify the 0.9.20 upgrade path on every platform 2026-08-18 12:14:55 -07:00
run.mjs cache: re-derive the daily rollup for the codex session_meta model fix 2026-08-19 11:28:40 -07:00