Skip to content

[codex-analytics] add turn tool counts to turn events#21431

Open
rhan-oai wants to merge 1 commit intomainfrom
rhan/turn-tool-counts
Open

[codex-analytics] add turn tool counts to turn events#21431
rhan-oai wants to merge 1 commit intomainfrom
rhan/turn-tool-counts

Conversation

@rhan-oai
Copy link
Copy Markdown
Collaborator

@rhan-oai rhan-oai commented May 6, 2026

Summary

  • accumulate completed tool-item counts per turn from the item lifecycle
  • populate the reserved count fields on codex_turn_event
  • add reducer coverage for zero-count turns and mixed completed tool items

Why

PR #17090 moved tool-item analytics onto the item lifecycle, so the turn reducer can now derive the per-turn tool counts from the same completed items instead of leaving the reserved fields null.

Validation

  • just fmt
  • cargo test -p codex-analytics

@rhan-oai rhan-oai force-pushed the rhan/turn-tool-counts branch from f8b5b6d to d535e7b Compare May 6, 2026 22:44
@rhan-oai rhan-oai marked this pull request as ready for review May 6, 2026 22:53
@rhan-oai rhan-oai enabled auto-merge (squash) May 6, 2026 23: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.

2 participants