docs: estimate day use from tokens and chart one window instance (D7, D8)

The day chart stayed empty until the app had sampled a whole week,
although the token history covers it. D7 now scales price-weighted
tokens by the measured use of the instance to estimate spans without
samples, always marked as estimates. D8 replaces the long limit
history with a burn-up chart per window instance, an expandable
"Other" and one tooltip component. Developer feedback on the redesign.

Refs #5
This commit is contained in:
Florian Schmidt
2026-10-15 08:45:08 +02:00
parent 73f79eb6ac
commit d2ff67bb69
+28 -7
View File
@@ -163,17 +163,34 @@ probe.
The even pace per day is `100 · 1 d / W`. The daily budget is `(100 − u)` divided by the days The even pace per day is `100 · 1 d / W`. The daily budget is `(100 − u)` divided by the days
left until `r`. A 7-day instance that resets at another time than midnight touches 8 local left until `r`. A 7-day instance that resets at another time than midnight touches 8 local
dates; the first and the last are partial days and both are shown. dates; the first and the last are partial days and both are shown.
- **Estimates from tokens.** Where samples do not cover a span, its use is estimated from the
token history. Tokens are weighted by the provider's API price ratios: Claude input 1,
output 5, cache write 1.25, cache read 0.1; Codex uncached input 1, cached input 0.1,
output 8. A window whose label names a model family ("Fable") counts only that family's
models; any other window counts all of the provider's models. Because an instance starts at
0 %, the scale `k = u / (weighted tokens from the instance start to the sample)` turns weighted
tokens into percent of the limit; the newest sample gives `k`. A day, or a stretch of the
window chart, then uses samples where they exist at both ends, and `k` × its weighted tokens
where they do not. A finished instance uses its own last sample for `k` when it has one, else
the current `k`. Estimates are always marked as estimates. No tokens in the instance means no
estimate.
A window without a known length or reset has no pace; FinalToken never guesses one. A window without a known length or reset has no pace; FinalToken never guesses one; an estimate
is a marked calculation from measured tokens, not a guess.
**Why.** R5. A straight line from the window's start to its reset is a pace the user can check **Why.** R5. A straight line from the window's start to its reset is a pace the user can check
by hand. A user over pace by less than the threshold still runs out before the reset, so the by hand. A user over pace by less than the threshold still runs out before the reset, so the
date shows from the first point over pace. The day figures answer "how much of the week did I date shows from the first point over pace. The day figures answer "how much of the week did I
use today" and "how much may I use per day from now on" (developer feedback, 2026-10-14). use today" and "how much may I use per day from now on" (developer feedback, 2026-10-14).
Measured samples alone left the day chart empty until the app had run for a whole week, while the
token history already covers it; the estimate fills it at once and agrees with the measured use
of the instance by construction (developer feedback, 2026-10-15).
**Gives up.** Weekday and working-hour patterns. Forecasts assume a constant rate. Day figures **Gives up.** Weekday and working-hour patterns. Forecasts assume a constant rate. Measured day
are only as fine as the samples (D5 keeps one per hour while the value stands still), and Claude figures are only as fine as the samples (D5 keeps one per hour while the value stands still).
has no samples from before the app's first probe. Estimates miss use from other devices and from claude.ai or the web, which counts against the
limit but leaves no local tokens; they also miss changes in model mix within an instance and
any weighting the provider applies beyond the price ratios.
## D8 — Desktop app ## D8 — Desktop app
@@ -191,9 +208,13 @@ has no samples from before the app's first probe.
opt-in setting. opt-in setting.
- **Panel (R4).** It leads with one tile per limit window: used percent, pace, the forecasts of - **Panel (R4).** It leads with one tile per limit window: used percent, pace, the forecasts of
[D7](#d7--pace) and, for windows longer than a day, today's use and the daily budget. Then [D7](#d7--pace) and, for windows longer than a day, today's use and the daily budget. Then
follow the per-day use of the long windows, token totals and charts, limit history, and the follow the per-day use of the long windows, token totals and charts, one window chart per limit
top entries by model and by project with the rest folded into "Other". Diagnostics are window, and the top entries by model and by project, with the rest folded into an expandable
collapsed. Provider colours are fixed (Claude orange, Codex blue, validated for colour vision "Other". A window chart is a burn-up of one instance from its start to its reset: the used
percent as a line (measured, or estimated before the first sample), the even-pace diagonal
from 0 % to 100 %, the forecast to the reset and the previous instance faintly behind, with no
point markers; under it, the peak each past instance reached. Tooltips are one component: a
title and a label/value grid. Diagnostics are collapsed. Provider colours are fixed (Claude orange, Codex blue, validated for colour vision
deficiency on both themes). Pace states use status colours with an icon and a label, never deficiency on both themes). Pace states use status colours with an icon and a label, never
colour alone. colour alone.
- **Popups (R5).** A small borderless, topmost window that does not take focus, at the - **Popups (R5).** A small borderless, topmost window that does not take focus, at the