Repository navigation
[Ready for Review] Adapter: gitgoodbench - #78
YanggWendy wants to merge 24 commits into
Conversation
Migrated from harbor-framework/harbor#3327. Converts the 60 merge samples of GitGoodBench Lite (JetBrains Research, REALM @ ACL 2025) into Harbor tasks: the task image reproduces the original scenario setup (branch at the first parent, merge of the second stopped on its conflicts) with the ground-truth merge commit purged, the instruction is the original merge prompt with the conflict hunks and the temporal ordering of the parents, the verifier mirrors the original Evaluator offline, and the oracle restores the ground-truth merge from a bundle. Parity against a reconstructed reference harness (parity/reference-harness.patch on JetBrains-Research/git-good-bench at b11ae6c; the released baseline agent is not runnable): mini-swe-agent 2.4.6 + deepseek-v4.1-flash, 3 runs over the 60 tasks on both sides with the same prompt, shell and hidden ground truth, original 40.56 +- 2.00 (SEM) vs Harbor 41.67 +- 0.96, overlapping run ranges, 52 of 60 tasks with identical outcomes. Oracle 60/60 on both sides.
|
/review-adapter |
1 similar comment
|
/review-adapter |
|
Structural validation of commit 729d3b4 at 2026-11-16 02:00:37 UTC Adapter contract v1 ( ✅ Adapter Validation:
|
…rom the metadata harbor-datasets#277 registers the 60 Lite tasks; the full split has no registry entry and no parity run, so adapter_metadata.json describes it in the notes instead of a harbor_adapter entry (removes the validator's cross-check warnings).
|
/review-adapter |
|
I found two cases where the verifier accepted a branch that didn’t meet the merge requirements. In one, the submitted commit had the wrong file contents. In the other, the files looked correct, but the branch history didn’t include the branch it was supposed to merge. The task asks for both the resolved files and the merge history that produced them. Could you make the verifier’s Git checks read the actual submitted commits with replacement objects disabled, and keep both cases alongside a correct merge in the tests? That would keep the same grading criteria and apply them to the branch the agent actually submitted. The 60 Lite tasks match the upstream cohort, and both sets of 180 parity records reproduce the reported scores and sample SEMs. |
The verifier copied packed-refs into its clean GIT_DIR, so refs/replace entries written by the agent were honored: a branch with the wrong tree passed behind a replacement that points to a correct merge commit, and an ordinary commit without the incoming parent passed when a replacement supplied the parent (review on harbor-framework#78). - GIT_NO_REPLACE_OBJECTS=1 for every verifier Git command; no GIT_* variable is inherited; only the id of the graded branch is taken over from the agent's refs. - The tree and the history no longer come from Git's view: the head commit and its ancestors are read with cat-file, used only if their content hashes to their id, and the tree id and parents are taken from that content. This also closes two variants found while reproducing: a forged commit-graph and a tampered commit object in the shared object directory, neither of which GIT_NO_REPLACE_OBJECTS stops. - The negative controls are now unit tests that run the task's evaluate.py on local merge scenarios (22 tests): the previous controls, both replacement cases (loose and packed), grafts, inherited GIT_GRAFT_FILE, forged commit-graph, tampered commits, and the accepted states. Oracle 60/60 on Daytona with the new verifier; the four history-forging controls score 0 on a real task image (Git 2.39.5). No parity run used any of these mechanisms, so the parity results are unchanged.
…ew of them tests/evaluate.py of all 60 tasks is updated from the adapter (harbor-framework/adapters#78): replacement objects are disabled for every verifier Git command, and the tree and the history are taken from commit objects whose content hashes to their id, so refs/replace, grafts, a forged commit-graph or a tampered commit object cannot make a branch pass whose commits do not record the merge. No other task file changes; the directory equals a fresh adapter run. Digests in dataset.toml refreshed with harbor sync. Oracle 60/60 with no exceptions on Daytona on this exact directory.
The verifier copied packed-refs into its clean GIT_DIR, so refs/replace entries written by the agent were honored: a branch with the wrong tree passed behind a replacement that points to a correct merge commit, and an ordinary commit without the incoming parent passed when a replacement supplied the parent (review on harbor-framework/adapters#78). - GIT_NO_REPLACE_OBJECTS=1 for every verifier Git command; no GIT_* variable is inherited; only the id of the graded branch is taken over from the agent's refs. - The tree and the history no longer come from Git's view: the head commit and its ancestors are read with cat-file, used only if their content hashes to their id, and the tree id and parents are taken from that content. This also closes two variants found while reproducing: a forged commit-graph and a tampered commit object in the shared object directory, neither of which GIT_NO_REPLACE_OBJECTS stops. - The negative controls are now unit tests that run the task's evaluate.py on local merge scenarios (22 tests): the previous controls, both replacement cases (loose and packed), grafts, inherited GIT_GRAFT_FILE, forged commit-graph, tampered commits, and the accepted states. Oracle 60/60 on Daytona with the new verifier; the four history-forging controls score 0 on a real task image (Git 2.39.5). No parity run used any of these mechanisms, so the parity results are unchanged.
|
hey @audreina17 , Thanks, I reproduced both cases and fixed them in f2a91fe.
|
harborframework/parity-experiments is over the Hub file-count limit and refuses uploads, so the artifacts for the parity PR (discussion 281) are published in the same layout at https://huggingface.co/datasets/yanggwendy/gitgoodbench-parity until they can be pushed to that PR. README and the parity notes point there; parity_pr itself is unchanged.
The parity gateway neither bills nor meters, so parity_costs was null. The 360 parity trajectories record the token usage of every model call: 294.9M prompt tokens (278.8M from the prompt cache) and 7.5M completion tokens over 7,754 calls. Priced at DeepSeek's public list prices for DeepSeek-V4.1-Flash (read on 2026-11-15) by each call's time of day this is $12.98, within $7.75 (all off-peak) to $15.49 (all peak); the notes give the basis and what is not included.
|
/review-adapter |
|
Adapter review of commit 729d3b4 (applies only to this revision). GitGoodBench adapter review (PR #78)Verdict: changes requested. The adapter is well built, and the parity evidence is unusually thorough. The blockers are two verifier and generation integrity gaps and missing provenance pins for Step 7 and Step 6. None of them is a reproduced fidelity defect.
Provenance
Recomputed statistics (from the arrays and the submitted JSONL)
The ranges overlap, so ADP-PARITY is met. ADP-STATS: the numbers are consistent. Each side has 180 records, and every Harbor record has Acceptance blockers1. The reward file is not cleared before grading (checklist §13d, Step 2 task file reference).
2. Instruction hunks depend on the git configuration of the machine that generates tasks (checklist §1 data integrity, §10).
3. The verifier used in parity differs from the reviewed verifier, and the scoring rule is stricter than upstream.
4. Parity artifacts are not in the official dataset, and the original side has no fork URL (Step 6 / Step 7, ADP-README).
Disclosed limitations (acceptable as documented, but tighten)Model ID.
Harbor runtime was patched locally.
Original-side recoveries.
Asymmetric environments.
Benchmark identity leaks through a ref name (§13b).
Links and registry.
Task schema compatibility is unverified.
Integrity notes (static inspection)
Coverage
|
…g difference - original_parity_repo now points at the fork of the original benchmark that carries the reference harness (branch harbor-parity, pinned by commit id), and the upstream commit is given by its full id. - parity/README.md: the parent requirement of the verifier decided no verdict on either side (Harbor: 0 of 180 runs fail it; original: all 73 solved runs concluded the merge), so both sides measure tree equality. States why the Harbor runs were not re-graded or re-run. - README.md: the adapter PR link points at this pull request.
…ral ref name Verifier - tests/test.sh and evaluate.py remove a reward.txt or reward.json that is already in /logs/verifier before grading; the directory is writable while the agent works. A verifier that cannot reach a verdict, by a VerifierError or by any other exception, exits non-zero and leaves no reward behind. Generator - Every Git command ignores the system and user configuration, the user's attributes file and inherited GIT_* variables, so merge.conflictStyle, rename settings, a merge driver or an attributes file on the generating machine cannot change the conflict hunks quoted in instruction.md. - A replay that disagrees with the dataset is an error instead of a warning: a listed file that is not in conflict, a missing file or a different number of hunks. Conflicted paths the dataset does not list (modify/delete in two Lite tasks) are recorded in task.toml as metadata.unlisted_conflict_files. Task image - The ref that keeps the incoming parent reachable is refs/scenario/incoming instead of refs/gitgoodbench/incoming, so no ref names the benchmark. The parity runs and the reference harness used the old name; parity/README.md records the difference. The 60 regenerated instructions are unchanged and identical to the prompts of the reference harness. Oracle 60/60 on Daytona on the regenerated tasks; negative controls re-run, with two new ones for a planted reward.
…ecord unlisted conflicts Regenerated with the adapter at harbor-framework/adapters#78 (ae17ad7): - tests/test.sh and tests/evaluate.py remove a reward that is already in /logs/verifier before grading, and a verifier that cannot reach a verdict leaves none behind. - environment/setup_scenario.py keeps the incoming parent reachable as refs/scenario/incoming, so no ref in the task repository names the benchmark. - task.toml records conflicted paths that the dataset does not list (metadata.unlisted_conflict_files; non-empty for two tasks). instruction.md, the scenario and verifier configuration and the oracle scripts are unchanged; one oracle bundle is repacked with the same content. Digests refreshed with harbor sync. Oracle 60/60 on Daytona on this directory.
…inal-side records - parity_experiment.json, adapter_metadata.json, README: the model is given by its dated id, deepseek-v4-1-flash-260910. Both sides request it under the gateway's name, deepseek-v4.1-flash, and every response of the 360 runs reports the dated id. - parity/README.md, job file: the parity runs used Harbor at 357c5e74020fc0890d69fb3a7db610896b9ce57d with litellm pinned to 1.91.1 in the mini-swe-agent install command; the one-line change is spelled out. Upstream fixed the install in harbor#3867 (first released in 0.26.0), which installs the newest litellm instead. - README: the tasks need Harbor 0.21.0 or newer, the first release that reads every field of task.toml (checked by loading a generated task.toml with the task model of 0.20.0, 0.21.0, 0.24.0 and 0.26.0). - parity/results: the three original-side records that were replaced by a re-run after the laptop slept are kept in a separate file, marked superseded. All three were unsolved before and after, so the results do not depend on which ones are counted.
|
/review-adapter |
|
hey @XiangningLin , thanks for running the review. I went through all of it. The changes are in cf5550c, ae17ad7 and fbf3a8a, and the dataset PR (harbor-framework/harbor-datasets#277) is regenerated to match. 1. Reward file
2. Generation
3. Verifier at parity time and the parent requirement
4. Fork and parity artifacts
Smaller points
Checks
Could you run |
|
At fbf3a8a, all 46 tests in the adapter’s offline test suite passed. A correct merge passed our controls, and the verifier rejected both cases from the earlier review: wrong file contents and missing merge history. It also rejected the forged Git data in our additional controls. We’ve since checked the saved results and run traces in the parity follow-up. I’d keep the existing parity, so you can skip the proposed six-task spot check. For future runs, could you save the final repository snapshots alongside the traces? A pinned copy in your Hugging Face repo would work while the shared repo is at its file limit. |
|
Thanks @YanggWendy, we’ve verified your fixes at fbf3a8a. I’d keep the existing parity results. We checked the saved grades and agent traces from the 360 trials, and the fix preserves the original grading requirements. Our controls show that the verifier now rejects incorrect file contents and incomplete merge histories. We found no sign in the traces that the historical scores depended on the behavior we fixed. All 60 verifiers in dataset #277 match the reviewed code too, so thanks for keeping that up to date. Since the final repository snapshots weren’t saved, we can’t put those exact branches through the updated verifier. Could you keep that detail in the README and save the snapshots alongside the traces for future runs? The existing evidence is enough for my review, so you can skip the extra six-task run. |
crystalxyz
left a comment
There was a problem hiding this comment.
Hi, the parity result looks very promising! I have some minor comments about tightening the readmes and docs (mainly remove comments about outdated runs and 2077ai's api key details since they are not relevant), and also some small questions. Maybe you can update the readmes and we could get it merged!
- README overview: sample counts per split in one table (Lite 120 = 60 merge + 60 file_commit_chain, full 900 = 450 + 450) and a clearer note on what is not adapted. The LLM judge only concerns the file_commit_chain scenarios; the merge tasks are scored by exact match, which the oracle table now says. - Remove the results and discussion of the earlier, non-aligned runs from both READMEs and from the notes in parity_experiment.json and adapter_metadata.json. - Remove details about the API endpoint used for parity (why Codex could not be used, endpoint URL); the commands take any OpenAI-compatible endpoint. - parity/README.md: the Harbor version of the parity runs in two sentences instead of the install-pin walkthrough; the original-side command is the one the parity runs used (--hide-ground-truth). - Acknowledgement section in the format of the other adapters.
Update the adapter README.
Update the adapter README and parity/README.md.
50766d4 to
69bef88
Compare
Update the adapter README.
|
On October 19, Harbor updated its new-task template to use a separate verifier by default. I noticed the tasks generated by this adapter still run the grader in the agent’s workspace. Could you switch them to a separate verifier and rerun the oracle on the latest stable Harbor release? Harbor #3712 If you find the full oracle run to be too costly time-wise or compute-wise, maybe you can start with rerunning one representative task? For that task, try the reference solution first, then with a submission you know is wrong. Once you are done, could you please share the task ID and both scores so we can check that the new verifier can grade submissions as expected? If you’ve already run parity or in the middle of running parity, could you keep the original submissions, agent logs, and grading results, preferably in your Hugging Face fork? If only the grading environment changes and those files contain everything the verifier needs, we may be able to regrade the saved submissions without running the agents again. |
|
@crystalxyz @audreina17 I'd like to check the scope of this PR with you before I change anything. Right now it only covers merge on Lite, 60 tasks. There are two other task types, which brings Lite to 180 tasks, and the full dataset has 1,350. About the two other task types. Interactive rebase gives the agent a series of commits that are committed but not pushed yet, and asks it to clean up the history. It can squash, drop, reword and reorder commits. Iterative committing is the opposite: it gives the agent a pile of uncommitted changes and asks it to split them into a series of small, logically complete commits. Neither has a single right answer, so the original benchmark uses an LLM judge. It compares the agent's history with the original author's history, asks twice with the order swapped, and the task only counts as solved if the judge picks the agent's history both times. I didn't do them before because of the oracle. The oracle can only reproduce the original author's history, so under this rule the best it can get is a tie, which scores 0. I asked the first author and he agreed that a tie can count as solved (comment). I plan to apply that to the oracle only: if the oracle's history is the same as the original, it passes, so the oracle can reach 100%. This is similar to I'll switch the verifier to separate mode. After that I'll rerun everything, both oracle and parity, including the 60 merge tasks I already did. I also plan to run the oracle on the full dataset. What do you think? If this sounds OK, I'll do all of it and ask you for review. Can I run parity on Lite only? I'll run the oracle on everything. |
The verifier runs in a separate container built from tests/Dockerfile and receives the .git directory of the agent's repository as an artifact. It also checks that the merge is concluded, as the original does with git status. The image keeps the history before the merge parents in an object store next to the repository, and its build compares the conflict hunks with the ones quoted in the instruction. The generator relabels longer conflict markers and skips five samples of the full dataset.
Oracle on Harbor 0.27.0: 60/60 on Lite and 445/445 on the full split.
Generated by harbor-framework/adapters#78 at 6b067df. The verifier runs in its own container and receives the .git directory of the agent's repository. Oracle 60/60 on Harbor 0.27.0.
…narios Each file_commit_chain sample gives two tasks, scored by the original LLM judge prompt in a separate verifier. ORACLE_MODE=true lets the oracle, which is the original history, pass.
The original harness runs git show in a checkout, where Git maps author names through the repository's .mailmap. The generator and the verifier now read that file together with the .gitattributes files.
|
@audreina17 the adapter now covers all three scenarios, with the oracle rule we agreed on. Scope
Scoring. The two new scenarios use the original judge prompt. The judge is asked twice with the positions swapped, and the agent's history must be preferred both times. Verifier. All tasks use Oracle, Daytona, Harbor 0.27.0,
The oracle also passes on the original side for Lite: 60/60 merge, 59/59 and 59/59 for the two new scenarios. Check against the original setup. For every converted Parity (added on 2026-11-29). Done on all 178 Lite tasks, 3 runs per side, with mini-swe-agent 2.4.6 and
Solve rate in %, mean ± sample SEM. The run ranges overlap overall and in every scenario, and 176 of the 178 tasks differ by at most one run. The PR description and |
3 runs per side with mini-swe-agent 2.4.6 and deepseek-v4-1-flash-261017: original 45.51 ± 1.49, Harbor 44.19 ± 0.99. Adds the result files and the harness patch for the two setup fixes.
…ity analysis The verifiers no longer stop without a reward on an alternates directory, an unreadable index or a tree no checkout can hold; these score 0. The source datasets are pinned, the judge-scored verifier records the model that served the judge, and parity/README.md gains the rerun sensitivity, two environment differences and the order of the runs. 37 new tests.
- README: shorter, same sections; proposed dataset instead of registered; the two deviations from the adapter guide; pinned parity artifacts revision with the final repositories of the Harbor trials - parity/README.md: shorter; judge checks, result under other rerun rules, revision of each experiment, agent and judge model provenance - parity/earlier-merge-experiment.md: the experiment on the 60 merge tasks, moved out of parity/README.md - parity/results/verifier-regrade.json: saved repositories graded again with the current verifier, 534 parity and 1,343 Full oracle trials with the same verdict - parity_experiment.json, adapter_metadata.json: shorter notes - The original-side command needs --sample-ids to leave out the excluded sample
…rding - Reproduction: harness image built on ubuntu:24.04, the 119 sample ids generated from the pinned dataset, Harbor 0.27.0; what to change for a new run - Verifier, ground truth, judge model and negative controls described by what the tests and runs show - Earlier merge experiment: the check of its verdicts is a scan of the saved files, not a regrade
|
Thanks for taking the time to discuss the tie case with the benchmark’s first author. For rebase and iterative committing, the reference solution reproduces the original commit history, so a tie is exactly what I’d expect when the judge compares that history with itself. Counting an exact match as a pass for the oracle makes sense to me. The parity results across all 178 Lite tasks look good to me too. When we tried |
|
Before we merge, could we also run parity on 100–150 harder tasks from Full? I’d suggest 120 tasks labeled |
|
@audreina17 here is the sample I propose for the run on harder Full tasks. Nothing has been run yet. Sample. 120 tasks from
Task idsMerge (40):
Reserves, in order, per sample type and language: Settings. As in the Lite run: mini-swe-agent 2.4.6 with litellm 1.111.0, The original side is set up to match the Harbor environment more closely than in the Lite run: the same base image and tools, the same resource limits, and the repositories on a Linux filesystem. This is meant to remove the two differences the README lists under "Parity environment". I will list the exact setup and every difference from the Lite run with the results. The adapter and its verifier are unchanged. If a task cannot be set up. Before any agent run, both sides set up all 120 tasks without an agent. A task that fails on a side is replaced by the first reserve of its sample type and language, and I will report it. Is this sample fine with you, or would you like a different split? |
|
Thanks @YanggWendy for sharing the seed, task IDs, and reserves in your sampling plan. I repeated the draw and got the same sample. The 120 tasks look good to me. Please go ahead with the run. Could you include both Apache Groovy tasks from |
|
The scenario table made it easy to understand what the agent does in each task. I have two small suggestions for the README.
|
Adapter for GitGoodBench (Lindenbauer et al., REALM @ ACL 2025; paper, repository). Details are in
src/gitgoodbench/README.mdandsrc/gitgoodbench/parity/README.md.Scope
--split full)The proposed dataset is GitGoodBench Lite, 178 tasks (harbor-datasets#277). Full, 1,343 tasks, can be generated and passes the oracle; it has no parity run and is not part of the proposed dataset. Requested tags:
v1.0andlite.Seven samples are not converted (
EXCLUDED_SAMPLESinadapter.py). Afile_commit_chainsample gives two tasks, so Lite has 178 of the 180 scenarios of the paper and Full 1,343 of 1,350.coil-kt-coil-file-commit-chain-0003.gitattributesmarks every file as text, so binary files show as modified right after a checkout and the original harness cannot start the rebaseelastic-elasticsearch-hadoop-file-commit-chain-0001alluxio-alluxio-merge-0000pinterest-teletraan-merge-0003spring-projects-spring-security-merge-0036apache-sedona-merge-0000microsoft-olive-merge-0000Oracle
Daytona, Harbor 0.27.0,
ORACLE_MODE=true:The oracle of the judge-scored tasks is the original history, which the judge can only call a tie. The first author agreed that a tie may count as solved (comment), so
ORACLE_MODE=trueaccepts exactly the original commits. Agent runs do not set it.Parity
The released baseline agent cannot be run, so the original side is a reference harness (YanggWendy/git-good-bench@7ea9315) that runs the same CLI agent in the original scenario container, with the original setup and scoring. Both sides: mini-swe-agent 2.4.6 with
deepseek-v4.1-flash, served asdeepseek-v4-1-flash-261017, 3 runs over all 178 tasks. The judge is requested under the same name.Solve rate in %. The run ranges overlap overall and in every scenario, and 176 of the 178 tasks differ by at most one run.
Regrading
The verifier changed once after the parity runs (
6c98599): four states of.gitthat ended without a verdict now score 0. The saved repositories were graded again with it. All 534 Harbor parity trials and all 1,343 Full oracle trials get the same verdict. The Lite oracle above ran on the current task files.Validation
scripts/validate_adapter.py src/gitgoodbench: 31 checks pass, no errors, no warningsuv run --with pytest pytest tests: 119 tests passArtifacts
src/gitgoodbench/parity/results/809622bdatasets/git_good_benchin harbor-datasets comes from an earlier, closed adapter and is not in the registry.