app: earlier forecasts, a daily budget that holds for the day, clear week totals #13

Closed
opened 2026-10-18 09:36:02 +02:00 by schmidt.florian · 5 comments
Owner

Developer feedback on the panel, 2026-10-18.

What to change

  1. Earlier forecasts. Forecasts (reach date, "≈ X % at reset", dotted line, recent rate) start after 10 % of a window today. Start them after 2 % (6 min of a session, about 3 h 22 min of a week), or as soon as the window is ahead. Early forecasts are rough; the developer accepts that.
  2. Equal tiles. The Codex week tile had no "≈ X % at reset" line while Claude's had one. Cause: the Codex week had reset early on 2026-10-17 20:40 and was 6.4 % elapsed, under the 10 % start. Point 1 fixes that case. Beyond it, every tile of the same window kind shows the same rows in the same order, with a muted placeholder when a value is not available yet.
  3. Daily budget. The budget is (100 − u now) / (time to reset), drawn as one line over every day of the week chart. Each use today lowers it, while today's bar rises against it, and the partial first day is held to a full day. Change it so today's budget is set at the start of the day and does not shrink with today's use, partial first and last days get their share of hours, and later days shrink only when today goes over its budget. Even pace gets the same share on partial days.
  4. Reset time in the week chart. Mark the instance start on the first day and the reset on the last day.
  5. "This week" is unclear. It is the Monday-based calendar week. Make the week totals follow the provider's weekly limit (since its start), fall back to the calendar week only when no weekly limit is known, and say which one each tile shows.

Plan

  • D7, D8 and D9 text changes (type/decision), before the code.
  • Core: forecast start 2 %; day shares, even pace and the new daily budget; week totals from the weekly limit with a calendar fallback, and the snapshot says which (D9).
  • App: tiles with equal rows; week chart with per-day even pace and budget steps, start and reset marks; token tiles that name their week.
  • Tests for each point, screenshots of the changed views in dark and light.
  • Build, all tests, docs check; fresh agent review.
Developer feedback on the panel, 2026-10-18. ## What to change 1. **Earlier forecasts.** Forecasts (reach date, "≈ X % at reset", dotted line, recent rate) start after 10 % of a window today. Start them after **2 %** (6 min of a session, about 3 h 22 min of a week), or as soon as the window is ahead. Early forecasts are rough; the developer accepts that. 2. **Equal tiles.** The Codex week tile had no "≈ X % at reset" line while Claude's had one. Cause: the Codex week had reset early on 2026-10-17 20:40 and was 6.4 % elapsed, under the 10 % start. Point 1 fixes that case. Beyond it, every tile of the same window kind shows the same rows in the same order, with a muted placeholder when a value is not available yet. 3. **Daily budget.** The budget is `(100 − u now) / (time to reset)`, drawn as one line over every day of the week chart. Each use today lowers it, while today's bar rises against it, and the partial first day is held to a full day. Change it so today's budget is set at the start of the day and does not shrink with today's use, partial first and last days get their share of hours, and later days shrink only when today goes over its budget. Even pace gets the same share on partial days. 4. **Reset time in the week chart.** Mark the instance start on the first day and the reset on the last day. 5. **"This week" is unclear.** It is the Monday-based calendar week. Make the week totals follow the provider's weekly limit (since its start), fall back to the calendar week only when no weekly limit is known, and say which one each tile shows. ## Plan - [x] D7, D8 and D9 text changes (`type/decision`), before the code. - [x] Core: forecast start 2 %; day shares, even pace and the new daily budget; week totals from the weekly limit with a calendar fallback, and the snapshot says which (D9). - [x] App: tiles with equal rows; week chart with per-day even pace and budget steps, start and reset marks; token tiles that name their week. - [x] Tests for each point, screenshots of the changed views in dark and light. - [x] Build, all tests, docs check; fresh agent review.
schmidt.florian added the type/featuretype/decision labels 2026-10-18 09:36:02 +02:00
schmidt.florian self-assigned this 2026-10-18 09:36:02 +02:00
Author
Owner

Agent work started.

  • Coordinator: claude-opus-5-5: decision text, briefs, verification, commits, PR.
  • Worker: gpt-6.1-sol (Codex): Core and App changes, tests, screenshots.
  • Branch: 13-panel-budget, worktree ../FinalToken-wt/13-panel-budget.
  • Decisions D7, D8 and D9 are updated in a8785fa, before the code.
  • A second worker builds #14 in parallel on other files; #14 will stack on this branch.
Agent work started. - **Coordinator:** `claude-opus-5-5`: decision text, briefs, verification, commits, PR. - **Worker:** `gpt-6.1-sol` (Codex): Core and App changes, tests, screenshots. - **Branch:** `13-panel-budget`, worktree `../FinalToken-wt/13-panel-budget`. - Decisions D7, D8 and D9 are updated in `a8785fa`, before the code. - A second worker builds #14 in parallel on other files; #14 will stack on this branch.
Author
Owner

The worker is done. I checked its diff, then built and tested on 941a597:

  • Build: 0 warnings, 0 errors.
  • Tests: 338 total, 0 failed. After I fixed the chart labels, the App tests ran again: 68 total, 0 failed.
  • Docs check: 0 errors.

The chart labels now name the same full-day rates as the tile's plan row. Before, they named the last day's partial value, so the chart said "Even 11.9%" next to a tile that said "14.3 %/day".

PR: #15. A fresh gpt-6.1-sol reviewer is running. #14 will stack on this branch.

The worker is done. I checked its diff, then built and tested on `941a597`: - Build: 0 warnings, 0 errors. - Tests: 338 total, 0 failed. After I fixed the chart labels, the App tests ran again: 68 total, 0 failed. - Docs check: 0 errors. The chart labels now name the same full-day rates as the tile's plan row. Before, they named the last day's partial value, so the chart said "Even 11.9%" next to a tile that said "14.3 %/day". PR: [#15](https://git.finalfactory.de/FinalFactory/FinalToken/pulls/15). A fresh `gpt-6.1-sol` reviewer is running. #14 will stack on this branch.
Author
Owner

PR #15 failed its second agent review. Per docs/agents/review.md the loop stops here, and the developer decides how it goes on.

Open finding (review 2): an estimated day baseline takes k from the first sample after midnight. Token history is kept per hour (D5), and the hour bucket that holds that sample keeps growing after it. Use in the rest of that hour can still move today's budget. Review case: 18.20 % → 18.88 % while today stays under budget. After that hour the baseline is fixed. This only happens when the instance has no sample at all before today; otherwise the measured baseline is used.

The stale-row finding is fixed and passed.

Options:

  1. Another round (proposed). Calibrate on whole hours before the first sample's hour: u₀ = u(first) · W(start, s) / W(start, hour of first). These hours are complete, so u₀ cannot move. It overstates u₀ by at most the part of an hour before the sample. D7 gets one line, and a regression test appends tokens to that hour between refreshes.
  2. No estimated budget. Without a measured baseline, the tile shows "Today +X % of the week" and no budget, as D7 already allows.
  3. Merge as is. The budget can move within the first hour after the first sample of an instance that had no earlier sample.

Agent work on #13 is paused until the developer decides.

PR [#15](https://git.finalfactory.de/FinalFactory/FinalToken/pulls/15) failed its second agent review. Per `docs/agents/review.md` the loop stops here, and the developer decides how it goes on. **Open finding** ([review 2](https://git.finalfactory.de/FinalFactory/FinalToken/pulls/15#issuecomment-18024)): an estimated day baseline takes `k` from the first sample after midnight. Token history is kept per hour (D5), and the hour bucket that holds that sample keeps growing after it. Use in the rest of that hour can still move today's budget. Review case: 18.20 % → 18.88 % while today stays under budget. After that hour the baseline is fixed. This only happens when the instance has no sample at all before today; otherwise the measured baseline is used. The stale-row finding is fixed and passed. **Options:** 1. **Another round** (proposed). Calibrate on whole hours before the first sample's hour: `u₀ = u(first) · W(start, s) / W(start, hour of first)`. These hours are complete, so `u₀` cannot move. It overstates `u₀` by at most the part of an hour before the sample. D7 gets one line, and a regression test appends tokens to that hour between refreshes. 2. **No estimated budget.** Without a measured baseline, the tile shows "Today +X % of the week" and no budget, as D7 already allows. 3. **Merge as is.** The budget can move within the first hour after the first sample of an instance that had no earlier sample. Agent work on #13 is paused until the developer decides.
Author
Owner

Decision (developer, 2026-10-18): another round. An estimated u₀ counts only the whole hours before the first sample's hour. D7 is updated in d2cf2c2. A gpt-6.1-sol worker builds it with a regression test that appends tokens to that hour between refreshes. A fresh review follows.

**Decision (developer, 2026-10-18): another round.** An estimated `u₀` counts only the whole hours before the first sample's hour. D7 is updated in `d2cf2c2`. A `gpt-6.1-sol` worker builds it with a regression test that appends tokens to that hour between refreshes. A fresh review follows.
schmidt.florian removed the status/needs-decision label 2026-10-18 10:23:35 +02:00
schmidt.florian removed the model/gpt-6.1-sol label 2026-10-18 10:47:17 +02:00
schmidt.florian removed the status/in-progressagent/florianmodel/claude-opus-5-5 labels 2026-10-18 10:54:07 +02:00
Author
Owner

Merged as 0a08b50 through #15 after the third agent review passed on 8bde2a3. The branch 13-panel-budget and its worktree are removed. #16 now targets master. No agent works on this issue anymore.

Merged as `0a08b50` through [#15](https://git.finalfactory.de/FinalFactory/FinalToken/pulls/15) after the third agent review passed on `8bde2a3`. The branch `13-panel-budget` and its worktree are removed. [#16](https://git.finalfactory.de/FinalFactory/FinalToken/pulls/16) now targets `master`. No agent works on this issue anymore.
Sign in to join this conversation.