mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-29 10:43:47 +00:00
F1 — the upgrade-path guard was measuring the wrong layer. providerDetails come from the menubar payload, and on a version bump adoptOlderDailyCaches carries the superseded daily file forward as the baseline for exactly the days this scenario creates, so a session-cache loss was mostly masked: reverting the carry-forward showed a 10% dip where the real loss is 50%. It now sums export.json's per-call copilot records (straight out of the parse), deletes the baseline daily cache before the upgrade run so nothing else can answer, and asserts EQUALITY rather than "did not shrink" — the failure mode on the other side of the fix is a double. Proven: reverting the carry-forward now reports 80 calls -> 40, LOST history, and fails. (The double direction is asserted but not demonstrated; a faithful re-keying simulation is collapsed by serve-time dedup before it can be counted, which is noted at the step.) F2 — sync was forward-only in the wrong direction. A receiver that took `copilot:<sid>:shutdown:<model>:<n>` rollup spans from 0.9.20 keeps them forever (append-once, no retraction for a usage span) and would now also receive `copilot-store:` rows for the same sessions: permanent doubling on every synced receiver, on the first push after upgrade. Sessions whose rollup is already in the ledger are now FROZEN — their rows and residuals never go out, and the receiver keeps the older, lossier number. A bounded under-count in place of an unbounded over-count. Per-turn output spans are untouched either way (the rollup never held output, reconciliation never touches them), and sessions new to sync take the per-row path in full. `frozen` is reported by --dry-run and the nothing-to-push line; docs/sync/README.md gains an FAQ pointing at `codeburn sync reset --confirm` with the caveat that the receiver must be cleared too. F3 — docs/providers/copilot.md gains a Sharp edges section saying plainly that a day sealed on a short store snapshot is a permanent UNDER-REPORT the watermark advances past, not a stall, and that both realizable causes are now closed (read ordering, compaction anchor). F4 — the copilot dedup-key shapes are pinned by reading them back out of the source, minted keys and discriminator prefixes alike, with the reason: the durable union recognises history by key, so a changed prefix is a CACHE_VERSION bump, not a parse-version bump. F5 — the carry-forward comment now states its price: a bump no longer re-derives a call it carried forward, so cost-shaped fixes land (cost is recomputed from cached usage) but metadata and day-attribution fixes reach only newly parsed calls. F6 — the durable union filters at CALL level. A turn holding one cached call beside a new one used to be dropped whole; nothing enforced the one-call- per-turn assumption that made that safe. F7 — the retain-source fence no longer skips a store it cannot fingerprint. Present-but-unreadable defers, matching the classification path; only a genuinely absent one stays a skip. |
||
|---|---|---|
| .. | ||
| act | ||
| data | ||
| guard | ||
| mcp | ||
| providers | ||
| sharing | ||
| sync | ||
| antigravity-statusline.ts | ||
| audit-report.ts | ||
| bash-utils.ts | ||
| behavioral-weight.ts | ||
| budget.ts | ||
| cache-dir.ts | ||
| cache-refresh-lock.ts | ||
| classifier.ts | ||
| cli-date.ts | ||
| cli.ts | ||
| codex-cache.ts | ||
| codex-credits.ts | ||
| codex-throughput.ts | ||
| compare-stats.ts | ||
| compare.tsx | ||
| config.ts | ||
| content-utils.ts | ||
| context-budget.ts | ||
| context-tree-codex.ts | ||
| context-tree.ts | ||
| context-tui.tsx | ||
| currency.ts | ||
| cursor-cache.ts | ||
| daily-cache.ts | ||
| dashboard.tsx | ||
| day-aggregator.ts | ||
| doctor.ts | ||
| export.ts | ||
| fetch-utils.ts | ||
| format.ts | ||
| fs-utils.ts | ||
| granular-history.ts | ||
| ink-win.ts | ||
| main.ts | ||
| menubar-installer.ts | ||
| menubar-json.ts | ||
| model-breakdown.ts | ||
| model-efficiency.ts | ||
| models-report.ts | ||
| models.ts | ||
| optimize.ts | ||
| overview.ts | ||
| parse-worker.ts | ||
| parse-workers.ts | ||
| parser.ts | ||
| persistent-codeburn.ts | ||
| plan-usage.ts | ||
| plans.ts | ||
| quota.ts | ||
| serve.ts | ||
| session-cache.ts | ||
| session-population.ts | ||
| sessions-report.ts | ||
| sessions-tui.tsx | ||
| spend-flow.ts | ||
| sqlite.ts | ||
| text-table.ts | ||
| token-estimate.ts | ||
| types.ts | ||
| usage-aggregator.ts | ||
| web-dashboard.ts | ||
| workflow-insights.ts | ||
| yield.ts | ||