mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-29 02:39:13 +00:00
fix(cache): DAILY_CACHE_VERSION 30 collides with open PR #1132
Two open branches claim daily-cache version 30, so a v30 file on disk carries unknown accounting. Bump this branch to 31 and move the Hermes pending-rederive contract version with it, so a v30 file written under #1132's accounting is treated as a foreign prior version: carried forward per slice, never adopted as the finalized base. The #946 copilot fixture seeded itself at DAILY_CACHE_VERSION - 5, a moving target that crossed the copilot contract boundary (26) at this bump and silently stopped granting the entitlement those tests exist to check. Pinned to 25, which is the fixed historical version the fixture actually means. Disclosure: the bump re-derives every day whose sources still survive, so finalized history shifts. On the reviewer's machine Claude moved -0.78 percent. That is a corrected figure replacing a stale cached one, not a loss, but it is a visible change to numbers users have already seen.
This commit is contained in:
parent
6fa5dfbeb7
commit
a8a3031b58
3 changed files with 62 additions and 5 deletions
|
|
@ -174,10 +174,11 @@ import type { DateRange, ProjectSummary } from './types.js'
|
|||
// but optimize added reasoning again. Re-derive so report matches the live parse.
|
||||
// v29: #1118 OrcaRouter route pricing (fusion aliases + peel; auto stays unpriced).
|
||||
// v28 on main already shipped #1115.
|
||||
// v30: Hermes cost provenance. Subscription-included sessions stay $0,
|
||||
// v31: Hermes cost provenance. Subscription-included sessions stay $0,
|
||||
// explicit estimates retain their status, and surviving Hermes sources replace
|
||||
// v29 slices produced by the old API-equivalent fallback.
|
||||
export const DAILY_CACHE_VERSION = 30
|
||||
// 31: #1234 Hermes cost contract; 30 is claimed by #1132.
|
||||
export const DAILY_CACHE_VERSION = 31
|
||||
const MIN_SUPPORTED_VERSION = 28
|
||||
|
||||
/// Providers whose per-day CALL COUNT means something different at
|
||||
|
|
@ -202,7 +203,9 @@ const MIN_SUPPORTED_VERSION = 28
|
|||
/// untouched, in both directions, and every other provider keeps the guard.
|
||||
const PENDING_REDERIVE_PROVIDER_VERSIONS: Readonly<Record<string, number>> = {
|
||||
copilot: 26,
|
||||
hermes: 30,
|
||||
// Tracks DAILY_CACHE_VERSION: a v30 file may have been written by #1132's
|
||||
// accounting, which never carried the Hermes cost contract.
|
||||
hermes: 31,
|
||||
}
|
||||
|
||||
function providersPendingRederiveFrom(fromVersion: number): string[] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue