Skip to content

fix(token): epoch fallback for out-of-range rollup ts + drop informal comment#260

Merged
kengio merged 2 commits into
mainfrom
fix/copilot-v3412-followup
Jul 12, 2026
Merged

fix(token): epoch fallback for out-of-range rollup ts + drop informal comment#260
kengio merged 2 commits into
mainfrom
fix/copilot-v3412-followup

Conversation

@kengio

@kengio kengio commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Post-merge Copilot autoreview findings on the v3.4.12 changes (tag held until these land):

  1. rollup.rsday_key/month_key/year_key fell back to Utc::now() for an out-of-range timestamp, bucketing a corrupt event under today and polluting the current period's rollup. Now falls back to the Unix epoch (self-flagging under 1970) via a shared utc_or_epoch helper + test.
  2. token_check.rs / token_gain.rs — drop the informal (Copilot) attribution from the fake-daemon read-loop test comments.

fmt + clippy clean; rollup + token tests pass.

kengio added 2 commits July 12, 2026 22:46
…comment

Post-merge Copilot findings on v3.4.12:
- rollup day/month/year_key fell back to Utc::now() for an out-of-range
  timestamp, which would bucket a corrupt event under TODAY and pollute the
  current period's rollup. Fall back to the Unix EPOCH instead (obviously wrong,
  self-flagging) via a shared utc_or_epoch helper. Add a test.
- Drop the informal '(Copilot)' attribution from the fake-daemon read-loop
  comments in token_check.rs / token_gain.rs test code.
@kengio kengio merged commit fc47c1a into main Jul 12, 2026
15 checks passed
@kengio kengio deleted the fix/copilot-v3412-followup branch July 12, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant