Skip to content

feat(benchmarks): OpenHands + Terminus2 normalizer recipe — 716 labeled sessions unlocked - #519

Merged
drewstone merged 1 commit into
mainfrom
r2/importer-recipe
Aug 1, 2026
Merged

feat(benchmarks): OpenHands + Terminus2 normalizer recipe — 716 labeled sessions unlocked#519
drewstone merged 1 commit into
mainfrom
r2/importer-recipe

Conversation

@drewstone

Copy link
Copy Markdown
Contributor

What

The prepare-stage recipe that turns the two biggest unimported CodeTraceBench families into analyst-readable instruments: benchmarks/trace-analysis/codetracebench-oht2-20260801/prepare-bulk.py + three CodeTracer user-skills (openhands_completions, openhands_sessions, terminus2_commands), pinned to the same CodeTracer commit (2d302191) and dataset revision (aa213b84) as every prior split.

Upstream CodeTracer ships parsers for both families but neither reproduces the annotation's step numbering (Terminus2 episode-level: 11/222 rows match; OpenHands run-events-only: 1/199) and the swe_raw completion-log layout has no parser at any upstream commit — so the numbering conventions were derived empirically against every verified manifest row and enforced fail-loud: a row whose step count cannot be matched is never imported, because a miscounted row silently misaligns every gold label on it.

Live result (receipts committed to the bench cache, referenced in the README)

Family candidates imported failed (all named) steps gold incorrect steps
OpenHands 520 496 24 (8 no-artifact, 16 count-mismatch) 20,120 581
Terminus2 222 220 2 (empty archives) 15,948 438

Rule validation across all extracted rows: completions 313/313, sessions 183/199, commands 220/222 step-count matches. Spot proof 6/6 + independent operator re-check: labels == steps.json == OTLP spans.

Why it matters

Every existing split is spent, and split3 was found positionally degenerate post-certification — these 716 never-touched labeled sessions are the only path to honest future certification, and the first cross-agent-family generalization test the analyst has ever had (mini-SWE-only until now).

Companion: tangle-network/traces PR pinning the family import invariants in tests. Gates: biome clean, typecheck exit 0, build green, suite 4656/3 skipped.

… Terminus2

Per-row fault-tolerant preparation for the 742 verified OpenHands and
Terminus2 rows: downloads the pinned dataset archives, normalizes through
CodeTracer's skill contract, mirrors every traces importer gate before the
all-or-nothing bulk import, and emits per-family labels plus a receipt
naming every failed row and reason.

Upstream CodeTracer (2d302191, repository HEAD) has no parser for the
swe_raw completion-log layout, and its openhands/terminus2 seed parsers
do not reproduce the annotation's step numbering, so three local skills
carry the annotation-faithful conventions with count evidence against
every verified row: openhands_completions 313/313, openhands_sessions
183/199, terminus2_commands 220/222. Result: 496/520 OpenHands and
220/222 Terminus2 rows import; the 26 losses are 8 manifest rows without
archives, 16 condensed session streams whose published views disagree
with the annotated count, and 2 empty archives.
@drewstone
drewstone merged commit cefe60a into main Aug 1, 2026
2 checks passed
@drewstone
drewstone deleted the r2/importer-recipe branch August 1, 2026 22:21
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