core: require account attribution for legacy imports

Apply provider and historical account identity checks to the designated hourly import source. Retain previously attributed history when a CLI signs out, while excluding mismatched or unknown accounts.

Refs #19
This commit is contained in:
Florian Schmidt
2026-11-15 11:14:52 +01:00
parent b23b7289c7
commit 583f920307
3 changed files with 27 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
- [2026-11-14] D14's Fleet library reuses Core Pace/LimitAnalysis/ApiPrices; the web host and outbound worker add no second forecast implementation. Working-time schedules remain outside D7.
- [2026-11-14] Quota is one newest observation per account/window, not a sum. Source ids dedupe consumption across machines; local/session figures include shared copies and cannot be summed as machine-exclusive use.
- [2026-11-14] Legacy hourly history needs one source and UTC-hour cutoff. Reconcile Codex increases before clipping; without a pre-cutoff baseline, omit the first cumulative total and warn rather than potentially counting imported use twice.
- [2026-11-15] Legacy hourly history needs one account-attributed source and UTC-hour cutoff; provider and DataEmail checks match raw usage even after rebinding. Reconcile Codex increases before clipping; without a pre-cutoff baseline, omit the first cumulative total and warn rather than counting imported use twice.
- [2026-11-14] LoginCoordinator is memory-only and binds browser session/machine/profile/worker boot/deadline. CLI identity verification is separate from process success; never serialize login URLs, codes or authorization responses into fleet state.
- [2026-11-14] Persist worker export metadata before cursor advancement. Server merges acknowledged source records so an empty restart heartbeat cannot erase history. Current login health and historical data attribution are separate fields.