You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Status honesty: invalidations counts byte-moving recomputes, not provider cache busts #353
The epoch re-scores at every user prompt (prompt_reveal) and counts every byte-moving recompute as an invalidation. The provider receipts say the real cost is much smaller: the memory block rides at the END of the system message, so a selected-row change re-prefills only the tail — 68–427 input tokens/turn on the audited session, cache share 94.4% (fixed build) vs 97.5% (frozen baseline). The current wording ("every one invalidated a prompt cache") overstates cost and makes the honest number invisible.
Change
Relabel the metric everywhere it surfaces — src/status/payload.ts docs, the memory_status tool text, and the TUI panel (src/tui.tsx):
Keep the counter semantics EXACTLY as-is — this is labeling, not behavior.
Acceptance
All three surfaces carry the corrected wording; no counter logic changes (git diff touches no increment site).
A short docs note records the measured numbers: ~344 input tokens/turn average, one 3,257-token spike on a full block removal, 94.4% cache share over a 6-turn audit.
Existing status tests keep passing; a wording test pins the new phrase.
Footguns
Do not "fix" the counter into a cache-bust estimate — the plugin cannot see provider cache state; receipts live in the bench, not the plugin.
Landed: PR #358 (fix/353-epoch-wording) merged to main; present at 0.20.0. Status surfaces label byte-moving epochs without claiming provider cache misses.
The "~344 input tokens/turn average, one 3,257-token spike" note is input-only, which on this provider is the uncached remainder. The spike is real and it is the interesting event; the average is not a cost.
Cost retraction (#392). The token figure above came from runSession().tokens = input + output + reasoning, with cache excluded and capture excluded. On this provider input is only the uncached remainder: one run reported 13,393 of 187,856 tokens that actually moved — 7%. A metric that undercounts by 93% still produces a plausible number, and a plausible number gets quoted.
Disposition: retracted as a cost claim. Do not quote it as tokens moved, saved, or spent. The stored wire logs for this run carry no provider usage object, so no recomputed figure exists.
Corrected metric, in force: work = session generation + capture generation, with cache read/write reported separately and never folded in. Two results survive it, both with n and seat named on #386: transport 0/5 to 5/5 (leak-checked, one seat) and reuse median 0.98x (n=6, no measurable effect).
Rules now written down where contributors hit them: no cost claim below n=6 pairs per arm; a ratio at 6 <= n < 21 is labelled "20% resolution"; the word "cheaper" does not appear without an n, a seat and a metric named on the same line; no dollar figure without a hosted-provider measurement.
Activity
abogartz commentedon Nov 8, 2026
Landed: PR #358 (fix/353-epoch-wording) merged to main; present at 0.20.0. Status surfaces label byte-moving epochs without claiming provider cache misses.
abogartz commentedon Nov 11, 2026
The "~344 input tokens/turn average, one 3,257-token spike" note is input-only, which on this provider is the uncached remainder. The spike is real and it is the interesting event; the average is not a cost.
Cost retraction (#392). The token figure above came from
runSession().tokens = input + output + reasoning, with cache excluded and capture excluded. On this providerinputis only the uncached remainder: one run reported 13,393 of 187,856 tokens that actually moved — 7%. A metric that undercounts by 93% still produces a plausible number, and a plausible number gets quoted.Disposition: retracted as a cost claim. Do not quote it as tokens moved, saved, or spent. The stored wire logs for this run carry no provider
usageobject, so no recomputed figure exists.Corrected metric, in force:
work = session generation + capture generation, with cache read/write reported separately and never folded in. Two results survive it, both with n and seat named on #386: transport 0/5 to 5/5 (leak-checked, one seat) and reuse median 0.98x (n=6, no measurable effect).Rules now written down where contributors hit them: no cost claim below n=6 pairs per arm; a ratio at 6 <= n < 21 is labelled "20% resolution"; the word "cheaper" does not appear without an n, a seat and a metric named on the same line; no dollar figure without a hosted-provider measurement.
fix(inject): count store moves beside byte moves, not instead of them
chore(release): 0.37.2 [skip ci]