Skip to content

feat: add read-only TB2 results collector - #417

Merged
dahai80 merged 1 commit into
mainfrom
bench/tb2-results-collector
Nov 30, 2026
Merged

dahai80 merged 1 commit into
mainfrom
bench/tb2-results-collector

Conversation

@dahai80

@dahai80 dahai80 commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add benchmarks/tb2/collect_results.py: parses harbor job dirs (jobs/<job>/<trial>/result.json) into a per-trial table (task, reward, turns, s/turn, tokens in/out) plus a summary block (resolve rate, token totals, s/turn stats, cap-timeout count). This is the one-command results table for tonight's run-a20.sh baseline.
  • Trial vs job result.json distinguished by content (task_name key), not directory-name heuristics — job timestamp names also contain __, which broke two earlier name-based attempts.
  • Accepts a jobs root, a single job dir, or anything in between; scans one and two levels below the given path.
  • Read-only; old trials that predate usage parsing (feat: adapter own-timeout + usage parsing, A20 baseline runner #409) render - columns instead of failing.

Test plan

  • python3 -I collect_results.py over all 10 existing jobs: 8 fix-git trials incl. the S1 pass (reward=1.0, capped), summary block correct.
  • Single job dir arg (jobs/2026-11-30__18-20-10, nop trial): 1 row, correct.
  • README Files section updated.

🤖 Generated with Claude Code

Parses harbor job dirs into a per-trial table (task, reward, turns,
s/turn, tokens) plus a summary block (resolve rate, token totals,
cap-timeout count). Distinguishes trial-level result.json from the
job-level aggregate by content (task_name key), not by directory-name
heuristics — job timestamp names also contain '__'. Accepts a jobs
root, a single job dir, or anything in between.

Co-Authored-By: Claude Code <[email protected]>
@dahai80
dahai80 merged commit 54cdea7 into main Nov 30, 2026
2 checks passed
@dahai80
dahai80 deleted the bench/tb2-results-collector branch November 30, 2026 10:42
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.

1 participant