Add paired harness A/B experiment infrastructure - #111
Merged
Conversation
hututuQQQ
marked this pull request as ready for review
August 14, 2026 01:12
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Why
The existing benchmark path could run one harness at a time, but it could not execute a fair same-model paired A/B or compare raw trace behavior across harness formats.
Fairness and safety
Verification
pnpm test— 177 files passed, 1 skipped; 1,614 tests passed, 27 skippedpnpm lintpnpm test:harbor— 63 passedpnpm eval:fairnessAgentFactoryconstruction with the pinned Codex archivegit diff --checkCompleted formal experiment
Frozen design:
codex-vs-sigma-gpt56sol-max-tb21-20260814-v12144a098161b36df196156942798429575e7a244e3acd1c931f3834aa3494c1d8f9e079a06f15723dc4559016fe905c262c503519928129977c1ed81263a34e82openai-codex/gpt-5.6-sol, reasoningmax5c8eadf1f393183288fa08b8f73ca9a469cc5e00Outcome
Task pass counts across five repetitions:
Paired statistics
0.0019531251.535, task-cluster bootstrap 95% interval1.177–2.514; Sigma was slower in 41/50 pairs1.375(1.284–1.775); Sigma was slower in 26/30 pairs1.206(0.988–1.569); directional but the cluster interval includes 11.194(1.112–1.562), reasoning-token ratio:1.247(1.194–1.659)1.267(1.000–1.667); joint-success ratio:1.394(1.158–2.167)0.566,0.396–1.050), while Sigma emits more output/reasoning tokens; input/cache accounting should not be treated as interchangeable with uncached-token demandTrace findings
0.9)1.233; worse in 33/50 pairs)8.071)0.667(P250.538, P750.815), showing materially different execution shapes without conflatingexecandshellnamingInterpretation and limits
Within this preregistered sample, Codex is materially better on correctness and wall time. Sigma's weaker result is accompanied by 8 timeouts (Codex: 0), more tool use, substantially more repeated exact calls, and more output/reasoning tokens. Sigma's main favorable direction is lower raw input-token accounting, but its cluster interval crosses parity and this does not translate into lower uncached-token demand or wall time.
The correctness Wilson intervals and McNemar test operate on the 50 attempt pairs; five repetitions from the same task are not fully independent. Efficiency intervals therefore task-cluster-resample all repetitions together. With only 10 sampled tasks, the result is strong evidence for this frozen experiment, not a universal ranking over Terminal-Bench or every workload.