HeadlessTests.ViewsRenderAndInteractionsApplySettingsAndPopupActions failed on master since 2026-10-16 08:33 UTC, on Windows and Linux. The forecast fixture fixes now at 2026-10-15 16:45 UTC, but PanelWindow read DateTimeOffset.UtcNow. Once the real clock passed the fixture's forecast start, the "Forecast from" note correctly disappeared. The app was right; the test depended on the date.
App:PanelWindow takes an optional TimeProvider, TimeProvider.System by default, so the real app behaves as before. The panel hands it, or the now it computed, to PaceBar, BurnUpChart, InstancePeaks, UsageChart and every Display.Projection, Display.Forecast and Display.ForecastWaiting call. The burn-up chart now gets the panel's render time as Now instead of the history query time, so the tile and its chart always agree. The two times differ by seconds.
Tests: the headless panels run on a FixedClock set to fixture time. A new check renders the forecast fixture with the clock just before, at and just after the forecast start, at the reset and a year later. Only the first shows the note, on the tile and on the burn-up chart. FixedClock moved out of FormattingTests so the tests share one class.
Retention:HistoryStore keeps Claude events for 60 days on its clock. App and Core tests that add fixed-date Claude events now pin that clock (FixedClock, TestClock), or they would fail from mid-December 2026.
src/FinalToken.App/AGENTS.md and tests/FinalToken.App.Tests/AGENTS.md record the rule: panel code reads time only from its TimeProvider, and tests pin it.
Popups still format dates on the system clock; their tests check only the prefix, so they do not depend on the date.
Decisions
None changed. The panel still follows D7 and D8; only where it reads the time changed.
The views do not change. The headless screenshots (runs/shots/app, outside the repo) now render as of fixture time; the forecast limits view shows "Resets in 6 d 23 h" and "Forecast from 16.10.2026 10:33" as on 2026-10-15.
Closes #11
## What and why
`HeadlessTests.ViewsRenderAndInteractionsApplySettingsAndPopupActions` failed on `master` since 2026-10-16 08:33 UTC, on Windows and Linux. The forecast fixture fixes now at 2026-10-15 16:45 UTC, but `PanelWindow` read `DateTimeOffset.UtcNow`. Once the real clock passed the fixture's forecast start, the "Forecast from" note correctly disappeared. The app was right; the test depended on the date.
- **App:** `PanelWindow` takes an optional `TimeProvider`, `TimeProvider.System` by default, so the real app behaves as before. The panel hands it, or the `now` it computed, to `PaceBar`, `BurnUpChart`, `InstancePeaks`, `UsageChart` and every `Display.Projection`, `Display.Forecast` and `Display.ForecastWaiting` call. The burn-up chart now gets the panel's render time as `Now` instead of the history query time, so the tile and its chart always agree. The two times differ by seconds.
- **Tests:** the headless panels run on a `FixedClock` set to fixture time. A new check renders the forecast fixture with the clock just before, at and just after the forecast start, at the reset and a year later. Only the first shows the note, on the tile and on the burn-up chart. `FixedClock` moved out of `FormattingTests` so the tests share one class.
- **Retention:** `HistoryStore` keeps Claude events for 60 days on its clock. App and Core tests that add fixed-date Claude events now pin that clock (`FixedClock`, `TestClock`), or they would fail from mid-December 2026.
- `src/FinalToken.App/AGENTS.md` and `tests/FinalToken.App.Tests/AGENTS.md` record the rule: panel code reads time only from its `TimeProvider`, and tests pin it.
Popups still format dates on the system clock; their tests check only the prefix, so they do not depend on the date.
## Decisions
None changed. The panel still follows D7 and D8; only where it reads the time changed.
## How it was tested
On `0549e86`:
- Windows 11: `dotnet build FinalToken.slnx -c Release`: 0 warnings, 0 errors. `dotnet test --solution FinalToken.slnx -c Release`: 321 passed, 0 failed (`master` had 320 passed, 1 failed). `python -B tools/docs/check_docs.py`: 0 errors.
- Arch Linux container (distro .NET SDK 10.0.112): `dotnet build`: 0 warnings, 0 errors. `dotnet test`: 321 passed, 0 failed.
- The views do not change. The headless screenshots (`runs/shots/app`, outside the repo) now render as of fixture time; the forecast limits view shows "Resets in 6 d 23 h" and "Forecast from 16.10.2026 10:33" as on 2026-10-15.
The headless forecast check failed after 2026-10-16 08:33 UTC because
the fixture fixes now while PanelWindow read DateTimeOffset.UtcNow.
PanelWindow now takes an optional TimeProvider (system by default) and
hands it to the pace bar, burn-up, peak and usage charts and every
forecast label. The tests pin it to fixture time and check the
"Forecast from" note before, at and after the forecast start.
App test fixtures now use fixed dates and pin HistoryStore's clock, so
the 60-day Claude retention cannot drop their samples later.
Refs #11
Storage, rework and limit-analysis tests add Claude events with fixed
2026-10-14 timestamps to a HistoryStore on the system clock. The 60-day
Claude retention would drop them from mid-December 2026 on, so these
stores now use TestClock.
Refs #11
Reviewed head 0549e862c5d41e593d1b4d80f9eafc58376b36ef in the separate detached worktree FinalToken-wt/review-12-0549e86 on Windows.
Read PR #12, linked issue #11 and its comments, the complete diff from origin/master, the root and all three touched projects' AGENTS.md files, requirements R1-R5, and decisions D1, D2, D5, D7 and D8. There were no earlier PR comments or reviews.
Checked the panel clock propagation through tiles, pace bars, burn-up charts, past-instance tooltips, token charts and shared forecast/date formatters. Checked the fixed retention clocks in App and Core tests. The regression checks cover immediately before, exactly at and immediately after the forecast start, at reset and a year later, for both the tile and burn-up waiting note.
Commands run from the reviewed worktree root:
dotnet build FinalToken.slnx -c Release and a confirming dotnet build FinalToken.slnx -c Release --no-restore: build passed; 0 warnings, 0 errors.
dotnet test --solution FinalToken.slnx -c Release: 321 passed, 0 failed, 0 skipped across all four test projects.
python -B tools/docs/check_docs.py: 0 errors.
git diff --check origin/master...HEAD: passed.
Inspected the generated light and dark screenshots of both forecast limits and window charts under FinalToken-wt/runs/shots/app/forecast-1280x900-{Light,Dark}-{limits,windows}.png. The early-window tile and chart show the same forecast-start date, and the ahead-window projection and chart agree. No visual defect found in these views. Linux and NativeAOT publishing were not rerun in this review.
No source files changed.
**Agent review: pass** on 0549e862c5d41e593d1b4d80f9eafc58376b36ef
## Blocking
None.
## Notes
None.
## Checked
Reviewed head `0549e862c5d41e593d1b4d80f9eafc58376b36ef` in the separate detached worktree `FinalToken-wt/review-12-0549e86` on Windows.
Read PR #12, linked issue #11 and its comments, the complete diff from `origin/master`, the root and all three touched projects' AGENTS.md files, requirements R1-R5, and decisions D1, D2, D5, D7 and D8. There were no earlier PR comments or reviews.
Checked the panel clock propagation through tiles, pace bars, burn-up charts, past-instance tooltips, token charts and shared forecast/date formatters. Checked the fixed retention clocks in App and Core tests. The regression checks cover immediately before, exactly at and immediately after the forecast start, at reset and a year later, for both the tile and burn-up waiting note.
Commands run from the reviewed worktree root:
- `dotnet build FinalToken.slnx -c Release` and a confirming `dotnet build FinalToken.slnx -c Release --no-restore`: build passed; 0 warnings, 0 errors.
- `dotnet test --solution FinalToken.slnx -c Release`: 321 passed, 0 failed, 0 skipped across all four test projects.
- `python -B tools/docs/check_docs.py`: 0 errors.
- `git diff --check origin/master...HEAD`: passed.
Inspected the generated light and dark screenshots of both forecast limits and window charts under `FinalToken-wt/runs/shots/app/forecast-1280x900-{Light,Dark}-{limits,windows}.png`. The early-window tile and chart show the same forecast-start date, and the ahead-window projection and chart agree. No visual defect found in these views. Linux and NativeAOT publishing were not rerun in this review.
No source files changed.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #11
What and why
HeadlessTests.ViewsRenderAndInteractionsApplySettingsAndPopupActionsfailed onmastersince 2026-10-16 08:33 UTC, on Windows and Linux. The forecast fixture fixes now at 2026-10-15 16:45 UTC, butPanelWindowreadDateTimeOffset.UtcNow. Once the real clock passed the fixture's forecast start, the "Forecast from" note correctly disappeared. The app was right; the test depended on the date.PanelWindowtakes an optionalTimeProvider,TimeProvider.Systemby default, so the real app behaves as before. The panel hands it, or thenowit computed, toPaceBar,BurnUpChart,InstancePeaks,UsageChartand everyDisplay.Projection,Display.ForecastandDisplay.ForecastWaitingcall. The burn-up chart now gets the panel's render time asNowinstead of the history query time, so the tile and its chart always agree. The two times differ by seconds.FixedClockset to fixture time. A new check renders the forecast fixture with the clock just before, at and just after the forecast start, at the reset and a year later. Only the first shows the note, on the tile and on the burn-up chart.FixedClockmoved out ofFormattingTestsso the tests share one class.HistoryStorekeeps Claude events for 60 days on its clock. App and Core tests that add fixed-date Claude events now pin that clock (FixedClock,TestClock), or they would fail from mid-December 2026.src/FinalToken.App/AGENTS.mdandtests/FinalToken.App.Tests/AGENTS.mdrecord the rule: panel code reads time only from itsTimeProvider, and tests pin it.Popups still format dates on the system clock; their tests check only the prefix, so they do not depend on the date.
Decisions
None changed. The panel still follows D7 and D8; only where it reads the time changed.
How it was tested
On
0549e86:dotnet build FinalToken.slnx -c Release: 0 warnings, 0 errors.dotnet test --solution FinalToken.slnx -c Release: 321 passed, 0 failed (masterhad 320 passed, 1 failed).python -B tools/docs/check_docs.py: 0 errors.dotnet build: 0 warnings, 0 errors.dotnet test: 321 passed, 0 failed.runs/shots/app, outside the repo) now render as of fixture time; the forecast limits view shows "Resets in 6 d 23 h" and "Forecast from 16.10.2026 10:33" as on 2026-10-15.Agent review: pass on
0549e862c5## Blocking
None.
Notes
None.
Checked
Reviewed head
0549e862c5d41e593d1b4d80f9eafc58376b36efin the separate detached worktreeFinalToken-wt/review-12-0549e86on Windows.Read PR #12, linked issue #11 and its comments, the complete diff from
origin/master, the root and all three touched projects' AGENTS.md files, requirements R1-R5, and decisions D1, D2, D5, D7 and D8. There were no earlier PR comments or reviews.Checked the panel clock propagation through tiles, pace bars, burn-up charts, past-instance tooltips, token charts and shared forecast/date formatters. Checked the fixed retention clocks in App and Core tests. The regression checks cover immediately before, exactly at and immediately after the forecast start, at reset and a year later, for both the tile and burn-up waiting note.
Commands run from the reviewed worktree root:
dotnet build FinalToken.slnx -c Releaseand a confirmingdotnet build FinalToken.slnx -c Release --no-restore: build passed; 0 warnings, 0 errors.dotnet test --solution FinalToken.slnx -c Release: 321 passed, 0 failed, 0 skipped across all four test projects.python -B tools/docs/check_docs.py: 0 errors.git diff --check origin/master...HEAD: passed.Inspected the generated light and dark screenshots of both forecast limits and window charts under
FinalToken-wt/runs/shots/app/forecast-1280x900-{Light,Dark}-{limits,windows}.png. The early-window tile and chart show the same forecast-start date, and the ahead-window projection and chart agree. No visual defect found in these views. Linux and NativeAOT publishing were not rerun in this review.No source files changed.