codeburn/src
iamtoruk 9ebd509c44 fix(sync,cache,ci): review A — forward-only sync, a guard that bites, call-level union
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.
2026-08-19 13:12:18 -07:00
..
act merge origin/main into pr994 2026-08-18 08:50:09 -07:00
data chore: bump to 0.9.20 2026-08-10 15:38:47 -07:00
guard feat(claude): account for /advisor escalations under the advisor model (#659) 2026-07-16 07:42:49 -07:00
mcp fix(report): surface estimated costs distinctly (#688) 2026-07-16 10:46:21 -07:00
providers fix(copilot): anchor a rollup leg's row interval at its compaction 2026-08-19 13:01:43 -07:00
sharing fix(sharing): answer malformed request URLs instead of crashing the server 2026-08-04 05:56:18 +03:00
sync fix(sync,cache,ci): review A — forward-only sync, a guard that bites, call-level union 2026-08-19 13:12:18 -07:00
antigravity-statusline.ts perf(desktop): share cache state and eliminate duplicate cold hydration 2026-08-12 17:16:41 +03:00
audit-report.ts Merge origin/main into feat/copilot-session-store-landing 2026-08-19 12:29:33 -07:00
bash-utils.ts perf(classifier): linear bash separator split 2026-08-16 18:31:41 -07:00
behavioral-weight.ts feat(copilot): read per-request input/cache from session-store.db 2026-08-17 17:52:01 -04:00
budget.ts feat(budget): spend budgets with overview display and scriptable --check (#562) 2026-07-16 11:10:16 -07:00
cache-dir.ts perf(desktop): share cache state and eliminate duplicate cold hydration 2026-08-12 17:16:41 +03:00
cache-refresh-lock.ts perf(desktop): share cache state and eliminate duplicate cold hydration 2026-08-12 17:16:41 +03:00
classifier.ts fix(insights): count read-shaped shell commands as reads, not as verification (#941) 2026-08-10 06:07:27 -07:00
cli-date.ts feat(cli): add lifetime period for CLI and dashboard (#753) 2026-07-20 05:24:33 -07:00
cli.ts Merge main into feat/multi-provider-plans, remove dead tautology 2026-05-16 10:42:03 -07:00
codex-cache.ts perf(parser): parallelize the cold Codex rollout parse on the same worker pool 2026-08-17 02:30:14 -07:00
codex-credits.ts feat(codex): compute Codex credit usage (#408, #495) (#510) 2026-06-18 17:03:46 +02:00
codex-throughput.ts feat(codex): add tool-excluded active throughput metrics 2026-07-24 22:53:43 -04:00
compare-stats.ts feat(copilot): read per-request input/cache from session-store.db 2026-08-17 17:52:01 -04:00
compare.tsx fix(compare): honor --model-a/--model-b in the TUI and resolve display names 2026-07-29 22:58:05 +05:30
config.ts feat(budget): spend budgets with overview display and scriptable --check (#562) 2026-07-16 11:10:16 -07:00
content-utils.ts fix(parser): flatten already-sliced previews and memoize canonical path walks 2026-08-16 01:49:10 -07:00
context-budget.ts fix(context-budget): stop double-counting home skills and CLAUDE.md 2026-08-04 06:32:58 +03:00
context-tree-codex.ts Extract shared token estimation helper, migrate all CHARS_PER_TOKEN sites (#644) (#677) 2026-07-16 11:58:22 -07:00
context-tree.ts Extract shared token estimation helper, migrate all CHARS_PER_TOKEN sites (#644) (#677) 2026-07-16 11:58:22 -07:00
context-tui.tsx dashboard: Workflow panel, footer coaching notes, title-first context list 2026-07-20 22:26:50 +02:00
currency.ts perf(desktop): share cache state and eliminate duplicate cold hydration 2026-08-12 17:16:41 +03:00
cursor-cache.ts perf(desktop): share cache state and eliminate duplicate cold hydration 2026-08-12 17:16:41 +03:00
daily-cache.ts Merge origin/main into feat/copilot-session-store-landing 2026-08-19 12:29:33 -07:00
dashboard.tsx Merge origin/main into feat/copilot-session-store-landing 2026-08-19 12:29:33 -07:00
day-aggregator.ts feat(copilot): read per-request input/cache from session-store.db 2026-08-17 17:52:01 -04:00
doctor.ts test(cache): make the round-2 review findings fail when broken 2026-08-05 05:58:17 +03:00
export.ts feat(copilot): read per-request input/cache from session-store.db 2026-08-17 17:52:01 -04:00
fetch-utils.ts fix(network): add timeouts to critical-path fetches (#445) (#448) 2026-06-06 03:25:36 +02:00
format.ts feat(copilot): read per-request input/cache from session-store.db 2026-08-17 17:52:01 -04:00
fs-utils.ts feat(copilot): track GitHub Copilot JetBrains IDE usage 2026-07-03 16:11:27 +05:30
granular-history.ts fix(dash): keep the disambiguator visible, make the bootstrap safe by construction 2026-08-18 05:49:16 +03:00
ink-win.ts fix(ink-win): strip synchronized-update escapes instead of exact-matching them 2026-08-04 03:06:47 +03:00
main.ts Merge origin/main into feat/copilot-session-store-landing 2026-08-19 12:29:33 -07:00
menubar-installer.ts menubar: install and launch the Windows tray app from codeburn menubar 2026-08-18 06:55:09 -07:00
menubar-json.ts kimicode: discover desktop-runtime sessions and fix menubar visibility 2026-07-23 21:31:25 +02:00
model-breakdown.ts feat(codex): add tool-excluded active throughput metrics 2026-07-24 22:53:43 -04:00
model-efficiency.ts fix(devin): report friendly GPT model names with effort tier (#585) 2026-07-01 16:01:49 +02:00
models-report.ts Merge origin/main into feat/copilot-session-store-landing 2026-08-19 12:29:33 -07:00
models.ts feat(models): name the MiMo v2 Flash row 2026-08-19 11:33:13 -07:00
optimize.ts parser: keep promptSource on lines over 32 KB 2026-08-18 12:00:29 -07:00
overview.ts fix(aggregator): apply --project/--exclude to the durable headline 2026-07-31 19:32:02 +08:00
parse-worker.ts perf(parse-workers): gate on pending bytes, size the per-worker budget per parse 2026-08-17 02:53:19 -07:00
parse-workers.ts perf(parse-workers): gate on pending bytes, size the per-worker budget per parse 2026-08-17 02:53:19 -07:00
parser.ts fix(sync,cache,ci): review A — forward-only sync, a guard that bites, call-level union 2026-08-19 13:12:18 -07:00
persistent-codeburn.ts refactor(cli): share persistent-codeburn resolver; tighten Antigravity hook ownership 2026-05-31 20:07:57 -07:00
plan-usage.ts feat(copilot): read per-request input/cache from session-store.db 2026-08-17 17:52:01 -04:00
plans.ts feat(providers): add Grok Build provider (#521) 2026-06-19 17:21:41 +02:00
quota.ts prerelease: quota NaN guard, 10-year daily retention, test date bomb (#764) 2026-07-20 07:37:56 -07:00
serve.ts fix(serve): close review follow-ups on the shared-cache PR 2026-08-16 18:29:11 -07:00
session-cache.ts fix(copilot): anchor a rollup leg's row interval at its compaction 2026-08-19 13:01:43 -07:00
session-population.ts fix(optimize): isolate sidechains from behavior 2026-08-14 02:51:54 +05:30
sessions-report.ts feat(copilot): read per-request input/cache from session-store.db 2026-08-17 17:52:01 -04:00
sessions-tui.tsx feat(cli): add interactive sessions browser (#793) 2026-07-21 13:03:47 +02:00
spend-flow.ts fix(cli): surface mDNS scan errors, robust spend-flow rollup + date label, harden tests 2026-07-10 16:20:41 -07:00
sqlite.ts fix(sqlite): only reach for an immutable URI where node:sqlite honours one 2026-08-18 10:38:01 -07:00
text-table.ts feat(devices): joined Totals by machine report (#536) 2026-06-20 19:23:03 +02:00
token-estimate.ts Extract shared token estimation helper, migrate all CHARS_PER_TOKEN sites (#644) (#677) 2026-07-16 11:58:22 -07:00
types.ts Merge origin/main into feat/copilot-session-store-landing 2026-08-19 12:29:33 -07:00
usage-aggregator.ts Merge origin/main into feat/copilot-session-store-landing 2026-08-19 12:29:33 -07:00
web-dashboard.ts fix(dash): keep the disambiguator visible, make the bootstrap safe by construction 2026-08-18 05:49:16 +03:00
workflow-insights.ts fix(optimize): isolate sidechains from behavior 2026-08-14 02:51:54 +05:30
yield.ts fix(sync): close credential-leak paths; session retraction; span/key/CLI hardening 2026-08-02 12:56:59 +00:00