fix(evals): count a resumed session's figures whole #143
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/report-figures"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
evals/report.shundercounted the turns and tokens of any attempt whose session a background task's notification resumed: 14 of the 42 attempts in the checklist trial of #142. For those attempts, Claude Code'sresult.jsonholds only the last segment'snum_turnsandusage, while its cost covers the whole run. That made the Turns and token columns unreadable for comparing policies.What changed
result.json'ssession_id: a turn for each user entry, and each assistant message's usage counted once. They still cover the main session alone, and the cost still comes fromresult.json. On the 28 attempts that were not resumed, the transcript gives exactly the figuresresult.jsondoes, so those rows don't change.How to verify
bash tests/agent-config/evals-report.shpasses 6 tests. The test "reports a resumed session's turns and tokens whole" fails on main, where the report shows| fix-bug | 1/1 | 2 | 10 | 5 | 1.00 | 60 |, the last segment's figures.evals/report.sh <tip run> <base run>changes only the rows of cases holding a resumed attempt: fix-bug, implement-feature, refactor-code, and review-pr.These pass on the tip:
bash tests/verify-agent-config.sh(260),bash tests/check-work-folder.sh(46),.agents/hooks/shellcheck.sh repo,prettier --check '**/*.md',scripts/verify-agent-config.sh, andgit diff --check main.Considerations
result.json. The figures are for comparing policies, not grading, and the pass or fail verdict still comes from the grader.