test: add event aggregation performance baselines#38
Merged
Conversation
- add EAP task board for event aggregation performance work - add Claude synthetic usage-event benchmark - guard Codex cross-day attribution against file metadata shortcuts
There was a problem hiding this comment.
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
CollectUsageEventsbenchmark 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
make fmtmake testmake vetmake lintmake buildgo test ./provider/claude -run '^$' -bench BenchmarkCollectClaudeUsageEventsSynthetic -benchmemworkspace/EAP-001/verification.mdlocallyNotes
workspace/EAP-001/contains local handoff and verification artifacts, butworkspace/is intentionally ignored and not included in this PR.