Skip to content

test: add event aggregation performance baselines#38

Merged
Miss-you merged 1 commit into
mainfrom
codex/eap-001-baseline
Apr 17, 2026
Merged

test: add event aggregation performance baselines#38
Miss-you merged 1 commit into
mainfrom
codex/eap-001-baseline

Conversation

@Miss-you

Copy link
Copy Markdown
Owner

Summary

  • add a task board for the event aggregation performance optimization plan
  • add a synthetic Claude usage-event collection benchmark with file/event count metrics
  • add a Codex dated-layout cross-day guardrail that proves old file metadata is not final attribution and exact event filtering keeps only in-window events

Validation

  • make fmt
  • make test
  • make vet
  • make lint
  • make build
  • go test ./provider/claude -run '^$' -bench BenchmarkCollectClaudeUsageEventsSynthetic -benchmem
  • focused provider/cmd/stats/e2e checks recorded in workspace/EAP-001/verification.md locally

Notes

workspace/EAP-001/ contains local handoff and verification artifacts, but workspace/ is intentionally ignored and not included in this PR.

- add EAP task board for event aggregation performance work

- add Claude synthetic usage-event benchmark

- guard Codex cross-day attribution against file metadata shortcuts
Copilot AI review requested due to automatic review settings April 17, 2026 05:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds baseline artifacts to support upcoming performance work on event-based aggregation, including a reproducible Claude provider benchmark and a Codex cross-day correctness guardrail, plus a task-board document to track the optimization plan.

Changes:

  • Add a Codex cross-day dated-layout test that asserts attribution comes from event timestamps (not file metadata) and that date-window filtering keeps only in-range events.
  • Add a synthetic CollectUsageEvents benchmark for the Claude provider that reports file/event counts and allocations.
  • Add a performance optimization task board under docs/plans/ to coordinate follow-on work.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
provider/codex/parser_test.go Adds a cross-day + mtime guardrail test and an explicit FilterEventsByDateRange window check.
provider/claude/parser_test.go Adds a synthetic benchmark and helper to generate a multi-project usage-event tree with metrics.
docs/plans/2026-04-17-event-aggregation-performance-optimization-task.md Introduces the task board for the event-aggregation performance optimization plan and statuses.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Miss-you
Miss-you merged commit d200a00 into main Apr 17, 2026
6 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.

2 participants