diff --git a/docs/decisions.md b/docs/decisions.md index 8f1ee8f..3102c28 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -149,15 +149,29 @@ probe. - expected use `100·e`, pace delta `d = u − 100·e` in percentage points - **ahead** when `d ≥ +threshold`; **behind** when `d ≤ −threshold` and `e ≥ 0.5`; **on track** otherwise. The threshold defaults to 10 points and is a setting. -- when ahead, the projected time of reaching 100 % at the average rate so far, - `t + (100 − u) · e·W / u`, shown only if it comes before `r`. +- **Forecasts.** At the average rate so far, the use at reset is `u / e` (for `e > 0`). Whenever + that passes 100 % (that is, `d > 0`, whatever the threshold), the time of reaching 100 %, + `t + (100 − u) · e·W / u`, is shown; it always comes before `r`. A second forecast uses the + recent rate: the rise of `u` over the window's samples from the last 24 h, when they span at + least 3 h. It is shown beside the average forecast, never instead of it. +- **Window instance.** The samples of one window with the same reset time. A reset starts a new + instance at 0 %. +- **Days of a long window.** For a window longer than a day: today's use is `u` now minus `u` at + the local start of today (the last sample of the same instance at or before it, or 0 when the + instance began today). The use of each local day of the instance is computed the same way. + The even pace per day is `100 · 1 d / W`. The daily budget is `(100 − u)` divided by the days + left until `r`. A window without a known length or reset has no pace; FinalToken never guesses one. **Why.** R5. A straight line from the window's start to its reset is a pace the user can check -by hand. +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 +use today" and "how much may I use per day from now on" (developer feedback, 2026-10-14). -**Gives up.** Weekday and working-hour patterns. +**Gives up.** Weekday and working-hour patterns. Forecasts assume a constant rate. Day figures +are only as fine as the samples (D5 keeps one per hour while the value stands still), and Claude +has no samples from before the app's first probe. ## D8 — Desktop app @@ -173,6 +187,13 @@ by hand. The tray icon offers Open, Refresh now, Settings and Quit. Closing the window keeps the app running in the tray. Starting the app opens the stats panel (R4). Start with the OS is an opt-in setting. +- **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 + follow the per-day use of the long windows, token totals and charts, limit history, and the + top entries by model and by project with the rest folded into "Other". 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 + colour alone. - **Popups (R5).** A small borderless, topmost window that does not take focus, at the bottom right of the primary screen's work area. It goes away after 8 s or on a click; a click opens the stats panel. A popup shows when a window's pace state ([D7](#d7--pace)) changes to