Skip to content

Audit batch: prefetch storm, day-bucketing unification, warm-path efficiency#711

Merged
iamtoruk merged 1 commit into
mainfrom
fix/audit-batch
Jul 16, 2026
Merged

Audit batch: prefetch storm, day-bucketing unification, warm-path efficiency#711
iamtoruk merged 1 commit into
mainfrom
fix/audit-batch

Conversation

@iamtoruk

Copy link
Copy Markdown
Member

Fixes everything from the three-agent verification campaign: the critical perpetual prefetch storm (12 parses/30s), the V1 day-bucketing split (charts now sum exactly to headlines), an 11% warm overview win, TZ cache guard, lock hygiene, EPERM resilience, FDA onboarding hint, and the low-severity items. Fail-on-old-code tests throughout. Root 2023, app 327.

…rm-path collapse

- prefetch fires exactly once per provider per session; memo sized to
  detected providers so base keys never evict (was: 12 full-history
  parses every 30s forever from LRU thrash re-triggering the effect)
- day-aggregator buckets whole turns by user-message timestamp,
  matching the report/headline path: trend bars and provider breakdown
  now reconcile exactly (midnight-straddling turns were split);
  DAILY_CACHE_VERSION 13 with an IANA tz guard that rehydrates when
  the cache crosses timezones
- overview's redundant second all-provider scan collapsed (~11% faster
  warm); numbers parity-guarded
- lock takeover cleans stale hydrating.lock; SIGINT/SIGTERM release it
- scanner skips EPERM/EACCES provider dirs (progress shows skipped)
  instead of aborting; onboarding hints Full Disk Access
- rateLimited quota copy render tests; export -f json emits valid
  empty JSON when no data

Root 2023 (+4), app 327 (+3), typechecks clean.
@iamtoruk
iamtoruk merged commit db289fa into main Jul 16, 2026
3 checks passed
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