Repository navigation
feat(repo): turn and compaction events per model call in events.jsonl #779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
napetrov
wants to merge
23
commits into
intel:main
Choose a base branch
from
napetrov:feat/trace-turn-events
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+529
−68
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
5eac7af
feat(repo): events.jsonl lines carry a format version, documented wit…
napetrov 482a728
feat(repo): turn and compaction events per model call in events.jsonl
napetrov 3b05a4f
docs(repo): license header on events-format.md
napetrov 4a53ce9
Put the turn and compaction rows inside the events table
antonwolfy 29725a7
fix(repo): null for unreported turn counts, tool-only first_useful steps
vchamarthi f3edd97
test(repo): pin prompt_tokens of a split Claude message to its parts
vchamarthi b64d5f2
Merge branch 'main' of https://github.com/intel/dokimi into pr779-add…
napetrov 3efa955
Address review: record the threads already fixed on this branch
napetrov b6c7505
docs(events): a call without usage writes no turn event
napetrov a652c40
fix(events): a Codex turn with only cached input reports the cached c…
napetrov 58331db
Thread: PRRT_kwDOVBg7g863pF-p: already fixed in 3efa955056
napetrov 5281db2
Merge remote-tracking branch 'intel/main' into pr779-address
napetrov 6dc4bab
test(repo): keep both checks of the incomplete-command test when turn…
napetrov c602d3b
Restore the line break before issued_s in the useful.py docstring
antonwolfy 8cd7231
Merge branch 'main' of https://github.com/intel/dokimi into pr779-r10
napetrov a37f0f5
test(repo): pin the null counts of an output-only Claude usage
napetrov 4ebb365
docs(repo): resolve the events-format.md conflict markers left by the…
napetrov cd23951
fix(repo): a Codex turn with only cached input sets the usage scope
napetrov 9da247c
docs(repo): say the turn sums match the totals only when the usage does
napetrov 14cf915
docs(repo): sort a Claude trace's turn lines by t; say when prompt_to…
napetrov de77efb
feat(repo): events.jsonl lines are format version 2; repo_event.v1.js…
napetrov fa5c31a
docs(repo): the events format examples are version 2 and validate aga…
napetrov 0d4a187
test(repo): the two event expectations are version 2 lines
napetrov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
dokimi/changelog.d/20261114_120500_napetrov_trace-turn-events.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <!-- | ||
| Copyright (C) 2026 Intel Corporation | ||
| SPDX-License-Identifier: Apache-2.0 | ||
| --> | ||
|
|
||
| ### Added | ||
|
|
||
| - **`events.jsonl` has a `turn` event per model call and a `compaction` event per compaction.** | ||
| A Claude run's turns come from its assistant records; their sums should match the run's | ||
| `input_tokens`, `output_tokens`, `cache_read_tokens` and `cache_write_tokens` when the result's | ||
| usage equals its per-call usage; a subagent's turns carry `agent`. Codex reports a turn per `turn.completed`, with a count it did not report | ||
| as `null`; Copilot's trace has no usage, so it writes no turn events. `process.tool_calls` counts | ||
| the tool events only. Lines are format version 2 (`repo_event.v2.json`): `output` and `output_truncated` sit on `command` lines only; `repo_event.v1.json` is unchanged. The format is documented in `docs/events-format.md`. |
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.