codeburn/scripts
Resham Joshi e5dff62fa1
perf: store the session cache in day pieces (#1550)
* Store the session cache in day pieces with a per-provider index

Layout v10: a provider's files live in pieces by the UTC day of their
newest call, each with a key file, and an index row per file (piece,
fingerprint, call span, v9 month) read on every load. A ranged load reads
the index, the key files and only the members it reports on; a save
rewrites only the pieces it touched. Rows keep v9's full-load order and
month scope, so orphans, the first-paint snapshot and dedup see what they
saw on v9. The v9 month shards re-lay out once, streaming, and are removed
after v10 publishes.

* Skip cached transcripts outside a narrow query's months when unchanged

v9 could not see them, so every narrow query re-parsed each older Claude
transcript it discovered and republished the cache. The index knows their
fingerprint; an unchanged one needs nothing, a changed one still re-parses
as if uncached.

* Read piece members in batches through one buffer, and full loads concurrently

* Write piece key files without a sync; rebuild lost keys from the piece

* Changelog: day pieces

* Seed dedup with the keys of unchanged transcripts outside the query's months before a whole-file parse

* Upgrade-path check: verify the v10 envelope, indexes, pieces and key files
2026-09-24 20:45:35 +02:00
..
perf Rename the compare-periods demo fixture generator 2026-09-12 13:43:24 -07:00
release-acceptance test: add repeatable release acceptance ledger (#1164) 2026-08-28 15:02:07 -07:00
upgrade-path perf: store the session cache in day pieces (#1550) 2026-09-24 20:45:35 +02:00
bundle-litellm.mjs chore(pricing): refresh the bundled snapshot; a refresh can no longer drop a model's pricing (#1483) 2026-09-19 11:25:21 -07:00
sign-plugin.mjs fix(plugins): codepoint-ordered signature canonicalization; sign fails loudly on unreadable files 2026-08-28 05:52:36 -07:00
slowest-tests.mjs 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
smoke-plugin-socket.mjs feat(plugins): ed25519 release-key verification and plugin add/remove (9b) 2026-08-28 00:30:43 -07:00