Skip to content

[Ready for Review] Adapter: gitgoodbench - #78

Open
YanggWendy wants to merge 24 commits into
harbor-framework:mainfrom
YanggWendy:gitgoodbench-adapter
Open

YanggWendy wants to merge 24 commits into
harbor-framework:mainfrom
YanggWendy:gitgoodbench-adapter

Conversation

@YanggWendy

@YanggWendy YanggWendy commented Nov 7, 2026 •

Copy link
Copy Markdown

Adapter for GitGoodBench (Lindenbauer et al., REALM @ ACL 2025; paper, repository). Details are in src/gitgoodbench/README.md and src/gitgoodbench/parity/README.md.

Scope

Scenario Scoring Lite Full (--split full)
Merge conflict resolution Exact match 60 445
Interactive rebase LLM judge 59 449
Iterative committing LLM judge 59 449

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.0 and lite.

Seven samples are not converted (EXCLUDED_SAMPLES in adapter.py). A file_commit_chain sample gives two tasks, so Lite has 178 of the 180 scenarios of the paper and Full 1,343 of 1,350.

Sample Split Reason
coil-kt-coil-file-commit-chain-0003 Lite .gitattributes marks every file as text, so binary files show as modified right after a checkout and the original harness cannot start the rebase
elastic-elasticsearch-hadoop-file-commit-chain-0001 Full The changes are not valid UTF-8, which the original harness cannot read
alluxio-alluxio-merge-0000 Full Git gives 1 conflict hunk, the dataset records 2
pinterest-teletraan-merge-0003 Full Git gives 2 conflict hunks, the dataset records 5
spring-projects-spring-security-merge-0036 Full Git gives 5 conflict hunks, the dataset records 6
apache-sedona-merge-0000 Full The files the dataset lists as conflicted are not in conflict
microsoft-olive-merge-0000 Full The repository is no longer on GitHub

Oracle

Daytona, Harbor 0.27.0, ORACLE_MODE=true:

Split Merge Interactive rebase Iterative committing Total
Lite 60/60 59/59 59/59 178/178
Full 445/445 449/449 449/449 1,343/1,343

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=true accepts 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 as deepseek-v4-1-flash-261017, 3 runs over all 178 tasks. The judge is requested under the same name.

Scenario Tasks Original (mean ± SEM) Harbor (mean ± SEM)
Merge 60 37.22 ± 1.47 38.33 ± 1.92
Interactive rebase 59 54.24 ± 3.39 51.98 ± 0.56
Iterative committing 59 45.20 ± 0.56 42.37 ± 2.94
All 178 45.51 ± 1.49 44.19 ± 0.99

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 .git that 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 warnings
  • uv run --with pytest pytest tests: 119 tests pass
  • On Daytona, ten wrong submissions for one merge task score 0 and its reference solution scores 1

Artifacts

  • Result files: src/gitgoodbench/parity/results/
  • Trajectories, verifier output and the final repository of every Harbor trial: yanggwendy/gitgoodbench-parity at 809622b
  • Shared parity repository: discussion 281, no files yet
  • Related: harbor#3327 is the source of this PR. adapters#20 and harbor#1519 are merge-only adapters without a parity run. datasets/git_good_bench in harbor-datasets comes from an earlier, closed adapter and is not in the registry.

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.
@YanggWendy

Copy link
Copy Markdown
Author

/review-adapter

1 similar comment
@XiangningLin

Copy link
Copy Markdown
Collaborator

/review-adapter

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Structural validation of commit 729d3b4 at 2026-11-16 02:00:37 UTC

Adapter contract v1 (docs/adapters.mdx).

✅ Adapter Validation: gitgoodbench

✅ 31 passed | ❌ 0 errors | ⚠️ 0 warnings

Passed checks (31)
  • ✅ README.md exists
  • ✅ parity_experiment.json exists
  • ✅ adapter_metadata.json exists
  • ✅ src/gitgoodbench/ package exists
  • ✅ src/gitgoodbench/adapter.py exists
  • ✅ src/gitgoodbench/main.py exists
  • ✅ src/gitgoodbench/task-template/ directory exists
  • ✅ src/gitgoodbench/task-template/task.toml exists
  • ✅ src/gitgoodbench/task-template/instruction.md exists
  • ✅ src/gitgoodbench/task-template/environment/Dockerfile exists
  • ✅ src/gitgoodbench/task-template/tests/test.sh exists
  • ✅ src/gitgoodbench/task-template/solution/solve.sh exists
  • ✅ Template [task].name present
  • ✅ Template [task].authors present
  • ✅ parity_experiment.json is valid JSON array
  • ✅ Parity PR links are non-empty with valid URLs
  • ✅ adapter_metadata.json is valid JSON array
  • ✅ README section Overview present
  • ✅ README section What is present
  • ✅ README section Adapter Features present
  • ✅ README section Generated Task Structure present
  • ✅ README section Run Evaluation present
  • ✅ README section Usage present
  • ✅ README section Parity present
  • ✅ README section Notes & Caveats present
  • ✅ README section Installation / Prerequisites present
  • ✅ README section Citation present
  • ✅ README section Authors & Contributions present
  • ✅ Parity table column count correct
  • ✅ test.sh writes to reward path
  • ✅ No canary strings found

…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).
@audreina17

Copy link
Copy Markdown
Collaborator

/review-adapter

@audreina17

audreina17 commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

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.
YanggWendy added a commit to YanggWendy/harbor-datasets that referenced this pull request Nov 12, 2026
…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.
YanggWendy added a commit to YanggWendy/harbor that referenced this pull request Nov 12, 2026
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.
@YanggWendy

YanggWendy commented Nov 12, 2026 •

Copy link
Copy Markdown
Author

hey @audreina17 , Thanks, I reproduced both cases and fixed them in f2a91fe.

  • Replacement objects are disabled for every verifier Git command (GIT_NO_REPLACE_OBJECTS=1). No GIT_* variable is inherited, and only the id of the graded branch is taken over from the agent's refs; packed-refs is no longer copied.
  • While reproducing I found two more ways to get the same effect that GIT_NO_REPLACE_OBJECTS does not stop, because both live in the shared object directory: a forged commit-graph, and a tampered commit object between the head and the base. Git does not re-hash the commits it walks through.
  • So the verifier no longer asks Git for the tree or the ancestry. It reads the head commit and its ancestors with cat-file, uses a commit only if its content hashes to its id, and takes the tree id and the parents from that content.
  • Controls: tests/test_gitgoodbench_verifier.py runs the task's evaluate.py on local merge scenarios (22 tests). It covers your two cases with loose and packed refs, a grafts file, an inherited GIT_GRAFT_FILE, the forged commit-graph, tampered commits, the earlier controls and the accepted states. Against the previous verifier the history-forging cases are accepted, as you saw.
  • End to end on Daytona with a real task image (Git 2.39.5): both replacement cases, the forged commit-graph and the tampered commit score 0 while Git itself reports the ground-truth tree or the incoming parent. The oracle is 60/60 with the new verifier.
  • Parity is unaffected: none of the 180 Harbor runs created a replacement ref, a grafts or shallow file or a commit-graph. The only mentions are read-only inspections such as git replace -l.
  • harbor-datasets#277 carries the new evaluate.py and refreshed digests.

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.
@XiangningLin

Copy link
Copy Markdown
Collaborator

/review-adapter

@github-actions

Copy link
Copy Markdown
Contributor

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.

  • Adapter revision reviewed: 729d3b4351b0fcd703f27e305e561ca24d070f1e
  • Contract: Adapter contract v1, revision 40b140eab2aae7375b2369aeddd2f8b3f872e2da
  • Automation guidance: f2ebf9c297ca57d9b7ce8a046cef4a2e228ca2b2
  • Evidence used: static inspection of reviewed-pr/src/gitgoodbench/, plus the result JSONL and job JSON submitted in parity/results/. Nothing was executed. No links were fetched. Prior review history was not available, so earlier findings could not be re-checked.

Provenance

Item Recorded value Status
Upstream code JetBrains-Research/git-good-bench@b11ae6c (short SHA) plus parity/reference-harness.patch Partially pinned: short SHA only, and no published fork
Dataset HF JetBrains/git_good_bench-lite, split train, merge rows (60) No HF revision pinned
Harbor runtime harbor@357c5e74 plus a local edit pinning litellm in mini_swe_agent.py Not reproducible from the config
Agent mini-swe-agent@2.4.6, litellm 1.91.1 on both sides Pinned
Model deepseek-v4.1-flash (served as deepseek-v4-1-flash-260910) Alias recorded; the dated ID is only in notes
Verifier at parity time Before the 2026-11-11 verifier rewrite Differs from the reviewed code

Recomputed statistics (from the arrays and the submitted JSONL)

Side Runs Solved (from JSONL) Mean Sample SEM Range
Original 36.67, 41.67, 43.33 73/180 (22+25+26) 40.56 2.0031 (exact fractions; 2.0015 from the rounded array) 36.67–43.33
Harbor 40.00, 43.33, 41.67 75/180 (24+26+25) 41.67 0.9623 40.00–43.33

The ranges overlap, so ADP-PARITY is met. ADP-STATS: the numbers are consistent. Each side has 180 records, and every Harbor record has exception: null. The coverage is 60 distinct tasks × 3 repetitions per side.

Acceptance blockers

1. The reward file is not cleared before grading (checklist §13d, Step 2 task file reference).

  • Where: test.sh#L4-L10 and evaluate.py#L308-L327.
  • What happens: reward.txt is written only on the success path. On a VerifierError, or on any uncaught exception, no reward is written. That includes OSError from tempfile.mkdtemp and a malformed ref file the agent wrote into .git.
  • Consequence: if /logs/verifier is writable during the agent phase, a pre-written 1 would survive a crash the agent provokes. Whether that mount is writable is unverified.
  • Fix: add rm -f /logs/verifier/reward.txt at the top of test.sh. Optionally, also catch Exception in main() as an infrastructure error.

2. Instruction hunks depend on the git configuration of the machine that generates tasks (checklist §1 data integrity, §10).

  • Where: adapter.py#L66-L75 and adapter.py#L454-L468.
  • What happens: git merge-tree inherits the generating user's global and system config. Settings such as merge.conflictStyle=zdiff3 or rename settings change the hunks quoted in instruction.md. The task image runs git merge with only the settings from Dockerfile#L9-L13.
  • Mismatches only warn: when hunk counts or file lists don't match, the adapter prints a warning and still generates the task (adapter.py#L476-L502). A divergent instruction is therefore emitted silently.
  • Fix: run generation git with GIT_CONFIG_GLOBAL=/dev/null and GIT_CONFIG_NOSYSTEM=1. Either fail on a count mismatch or record it in metadata.
  • Unverified claim: the README says all 60 instructions are identical to the harness prompts. The emitted instructions aren't in the PR, so this couldn't be checked.

3. The verifier used in parity differs from the reviewed verifier, and the scoring rule is stricter than upstream.

  • Requirement: Step 5 ("same quantity"), and AGENTS.md says not to change scoring logic.
  • Where: evaluate.py#L275-L284 requires both parents to be ancestors. Upstream only diffs against the ground truth. parity/README.md#L140-L152 says the parity runs were graded before the 2026-11-11 rewrite.
  • Evidence offered for equivalence: a trajectory scan only.
  • Fix (smallest validation step):
    • Re-grade the 180 archived Harbor final repository states with the current evaluate.py and report any changed verdicts.
    • Report how many original-side solves would fail the ancestry check. This bounds the effect of the deviation.

4. Parity artifacts are not in the official dataset, and the original side has no fork URL (Step 6 / Step 7, ADP-README).

  • Artifacts: parity_experiment.json#L10 says the artifacts live on a personal HF repo, so parity_pr discussion 281 holds no results yet.
  • Fork URL: original_parity_repo (#L11) is a free-text string ("URL + patch"), not a fork URL.
  • Fix: publish the fork and link it at a pinned full SHA, then push the artifacts to the parity PR.

Disclosed limitations (acceptable as documented, but tighten)

Model ID.

Harbor runtime was patched locally.

Original-side recoveries.

  • Three runs that turned into timeouts because the laptop slept were removed and re-run (parity/README.md#L205-L211). The original attempts are not in the 180-record JSONL.
  • All three were unsolved both before and after, so the recovery policy looks valid. Retain the original records with a label.

Asymmetric environments.

  • Original side: Git 2.43, arm64, reused container. Harbor side: Git 2.39, x86_64.
  • This is disclosed. 52 of 60 tasks have identical outcomes on both sides, and no task differs by more than one run (submitted artifact; not recomputed per task).

Benchmark identity leaks through a ref name (§13b).

  • setup_scenario.py#L22 leaves refs/gitgoodbench/incoming, which git for-each-ref shows to the agent.
  • Rename it to something neutral, for example refs/scenario/incoming. Egress is restricted, so the impact is low.

Links and registry.

  • The README parity paragraph (README.md#L169) links only harbor#3327 as the adapter PR. Add adapters#78.
  • dataset_pr points to harbor-framework/harbor-datasets, but the spec names laude-institute/harbor-datasets. Whether it redirects is unverified.
  • The registry commands in the README target a dataset that is not registered yet (registry_benchmark_size: 0). This is disclosed.

Task schema compatibility is unverified.

  • task.toml#L1-L5 uses schema_version = "1.4" with version under [task], and #L32-L33 uses network_mode/allowed_hosts.
  • I couldn't verify these against Harbor baseline 99218a46. State the minimum Harbor version required.

Integrity notes (static inspection)

  • Ground truth is purged: the merge commit is fetched, the scenario branch is checked out, and unreachable objects are pruned within one RUN layer, with an explicit presence check (setup_scenario.py#L67-L85).
  • No answer files reach the image: solution/ and tests/ are not copied in. scenario.json is deleted from the final filesystem.
  • Verifier isolation looks sound: it uses a clean GIT_DIR, ignores inherited GIT_* variables, and checks commit hashes. Remaining risk: an agent with root could replace git or python3 (disclosed).

Coverage

Dimension Status Evidence Gaps
Harbor standards (ADP-CLI, AUTHORS, SCRIPTS, README, COST) Assessed; minor issues main.py, pyproject.toml, task.toml, README, metadata ADP-CLI, ADP-AUTHORS (names only, no email), ADP-COST ("$13") and all README sections OK; schema version unverified
Upstream fidelity and traceability Assessed; issues found (#3, #4) parity/README, patch, the two JSONL files Upstream full SHA, HF dataset revision, published fork
Generation Assessed; issue found (#2) adapter.py Emitted tasks unavailable; hunk equality unverified
Agent execution Partly assessed (submitted artifacts only) job JSON (180 trials, 0 errors) Runtime behavior unverified
Grading and oracle Assessed; issues found (#1, #3) evaluate.py, solve.sh, oracle result files (60/60 on each side) Oracle evidence predates or postdates verifier changes as noted; not reproduced

…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.
YanggWendy added a commit to YanggWendy/harbor-datasets that referenced this pull request Nov 16, 2026
…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.
@YanggWendy

Copy link
Copy Markdown
Author

/review-adapter

@YanggWendy

Copy link
Copy Markdown
Author

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

  • tests/test.sh and evaluate.py now remove reward.txt and reward.json before grading, and any exception in the verifier ends with a non-zero exit and no reward.
  • Two new Daytona controls plant a reward of 1 while the agent works. With the merge left untouched the result is 0. With Git also removed, so the verifier crashes, the trial ends with a verifier error and no reward.
  • The controls also answer the open question: /logs/verifier is writable during the agent phase on Daytona.

2. Generation

  • Every Git command of the generator ignores the system and user configuration, the user's attributes file and inherited GIT_* variables. The attributes file matters too: conflict-marker-size or merge=union there changes the hunks even with no config file.
  • A different number of hunks, or a listed file that is not in conflict, is now an error.
  • Two Lite tasks (micrometer-metrics-micrometer-merge-0054, mockito-mockito-merge-0002) have one extra modify/delete conflict that the dataset does not list and the original prompt does not mention. It is recorded in task.toml as metadata.unlisted_conflict_files.
  • After regenerating, instruction.md is unchanged for all 60 tasks, and all 60 are identical to the prompts the reference harness wrote in the parity runs, apart from the repository path.

3. Verifier at parity time and the parent requirement

  • The parent requirement was already in the verifier that graded the parity runs. It decided no verdict on either side.
  • Harbor: 0 of 180 runs fail it. All 105 unsolved runs fail the tree comparison, so grading with the original rule gives the same 75/180.
  • Original: the harness does not record the parents of the final commit, so I read it from the trajectories. All 73 solved runs commit while the merge is in progress and none aborts, resets or rewrites it.
  • I could not re-grade the 180 final states. The sandboxes are deleted and the states were not archived. I did not re-run either: the two verifier versions differ only in how they read the commits, and no run touched what that affects (trajectory scan). The table is in parity/README.md under Scoring.

4. Fork and parity artifacts

Smaller points

  • Model: recorded as deepseek-v4-1-flash-260910. Both sides request the gateway's name deepseek-v4.1-flash, and every response of the 360 runs reports the dated id.
  • Harbor runtime: the full commit and the one-line litellm pin are written out in parity/README.md. The upstream fix (harbor#3867) is first released in 0.26.0.
  • Minimum Harbor version: 0.21.0, checked by loading a generated task.toml with releases 0.20.0, 0.21.0, 0.24.0 and 0.26.0.
  • Original-side recoveries: the three replaced records are kept in parity/results/mswea-deepseek-v4.1-flash-aligned-original-side-superseded.jsonl.
  • Ref name: the Harbor tasks now use refs/scenario/incoming. This is a change after the parity runs, which used refs/gitgoodbench/incoming on both sides, and the reference harness keeps that name. parity/README.md records the difference.
  • README adapter PR link points at this PR.
  • dataset_pr: laude-institute/harbor-datasets redirects to harbor-framework/harbor-datasets, so it is the same repository.

Checks

  • 46 unit tests, validator 31 passed with 0 errors and 0 warnings.
  • Oracle 60/60 on Daytona on the regenerated dataset directory. One trial was re-run after its sandbox did not start within the build timeout.
  • 6 negative controls on Daytona, all as expected.

Could you run /review-adapter again when you have a moment? My own comment does not trigger the workflow because my association with this repository is still NONE.

@audreina17

audreina17 commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

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.

@audreina17

audreina17 commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

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 crystalxyz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

Comment thread src/gitgoodbench/parity/README.md Resolved
Comment thread src/gitgoodbench/parity/README.md Resolved
Comment thread src/gitgoodbench/README.md Resolved
Comment thread src/gitgoodbench/README.md Resolved
Comment thread src/gitgoodbench/README.md Resolved
Comment thread src/gitgoodbench/README.md Resolved
- 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.
Update the adapter README.
Comment thread src/gitgoodbench/README.md Resolved
Comment thread src/gitgoodbench/adapter_metadata.json Resolved
Comment thread src/gitgoodbench/README.md Resolved
Comment thread src/gitgoodbench/README.md Resolved
Comment thread src/gitgoodbench/parity/README.md Resolved
Comment thread src/gitgoodbench/parity_experiment.json Resolved
@audreina17

Copy link
Copy Markdown
Collaborator

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.

@YanggWendy

Copy link
Copy Markdown
Author

@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 ORACLE_MODE in clbench. Agent scoring stays the same as in the paper: the judge is called twice and the agent has to win both times, so the scores stay comparable with the paper.

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.
YanggWendy added a commit to YanggWendy/harbor-datasets that referenced this pull request Nov 23, 2026
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.
@YanggWendy

YanggWendy commented Nov 24, 2026 •

Copy link
Copy Markdown
Author

@audreina17 the adapter now covers all three scenarios, with the oracle rule we agreed on.

Scope

  • Lite, the proposed dataset: 178 tasks (60 merge, 59 interactive rebase, 59 iterative committing)
  • Full, --split full: 1,343 tasks, generated and oracle-checked only

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. ORACLE_MODE=true counts a history made of exactly the original commits as solved without asking the judge. Agent runs do not set it.

Verifier. All tasks use environment_mode = "separate". The verifier gets the agent's .git directory as an artifact, which Harbor saves in the trial directory.

Oracle, Daytona, Harbor 0.27.0, ORACLE_MODE=true

Split Merge Interactive rebase Iterative committing Total
Lite 60/60 59/59 59/59 178/178
Full 445/445 449/449 449/449 1,343/1,343

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 file_commit_chain sample (59 in Lite, 449 in Full) I ran the setup commands of the original harness in a Linux container. The patch files and the commits quoted in the instruction are byte for byte the same.

Parity (added on 2026-11-29). Done on all 178 Lite tasks, 3 runs per side, with mini-swe-agent 2.4.6 and deepseek-v4.1-flash, served as deepseek-v4-1-flash-261017. The judge is requested under the same name.

Scenario Tasks Original Harbor
Merge 60 37.22 ± 1.47 38.33 ± 1.92
Interactive rebase 59 54.24 ± 3.39 51.98 ± 0.56
Iterative committing 59 45.20 ± 0.56 42.37 ± 2.94
All 178 45.51 ± 1.49 44.19 ± 0.99

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 parity/README.md have the details and the deviations from the guide. Trajectories and the final repository of every Harbor trial are in yanggwendy/gitgoodbench-parity at revision 809622b.

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
@audreina17

Copy link
Copy Markdown
Collaborator

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 harbor trials regrade locally on the saved Mosaic rebase trial (jakewharton-mosaic-file-commit-c__EqPpuSc), Harbor stopped because it couldn’t find artifacts/manifest.json. Could you package the saved Harbor trials so someone can download one, unpack it, and point harbor trials regrade directly at the trial directory? The manifest needs to be there alongside the saved .git snapshot, at the path the manifest lists. If it’s easier to keep the current archive layout, a short unpacking script that produces that directory would work too. The Mosaic trial would be a good one to check from a fresh download.

@audreina17

Copy link
Copy Markdown
Collaborator

Before we merge, could we also run parity on 100–150 harder tasks from Full? I’d suggest 120 tasks labeled hard upstream, roughly 40 per scenario. It would be good to spread them across repositories and languages and skip commit ranges already covered by Lite. Could you share the seed and task IDs before starting so we can agree on the sample? Using those same tasks and the Lite run settings on both sides would let us see whether the results still line up on harder cases. A small table with the solve rate and SEM for each scenario would be enough.

@YanggWendy

Copy link
Copy Markdown
Author

@audreina17 here is the sample I propose for the run on harder Full tasks. Nothing has been run yet.

Sample. 120 tasks from JetBrains/git_good_bench at revision 09ea69b, all from samples labelled hard: 40 merge, 40 interactive rebase, 40 iterative committing.

  • Seed: 20261130.
  • Pool: the 325 hard samples of Full, without the 3 the adapter excludes and without 2 whose commits Lite covers. kotlin_dokka_merge_0006 has the merge commit of the Lite task kotlin_dokka_merge_0003, and autonomousapps_dependency_analysis_gradle_plugin_file_commit_chain_0000 is on a file that a Lite chain of the same repository uses. That leaves 150 merge and 170 file_commit_chain samples.
  • Draw: 40 merge samples and 40 file_commit_chain samples. Per sample type 13 Java, 14 Kotlin and 13 Python, one sample per repository, so 40 repositories each. As in Lite, a file_commit_chain sample gives two tasks on the same commits, one interactive rebase and one iterative committing.
  • Order of the draw: merge first, then file_commit_chain; languages in alphabetical order; the sorted ids of a language are shuffled with random.Random(20261130), one generator for the whole draw, and taken in that order, skipping a repository already taken for that sample type. The next 3 ids of each language are reserves.
Task ids

Merge (40):

adap-flower-merge-0000
airbnb-showkase-merge-0001
aniyomiorg-aniyomi-merge-0000
apache-cloudstack-merge-0085
apache-iotdb-merge-0018
apache-pinot-merge-0001
apache-rocketmq-spring-merge-0004
archivebox-archivebox-merge-0000
aws-aws-sdk-pandas-merge-0004
aws-sagemaker-python-sdk-merge-0000
bridgecrewio-checkov-merge-0014
burhanrashid52-photoeditor-merge-0001
chat2db-chat2db-merge-0000
duckduckgo-android-merge-0002
element-hq-element-android-merge-0029
evant-kotlin-inject-merge-0000
fabricmc-fabric-merge-0000
getsentry-sentry-java-merge-0000
gitlab4j-gitlab4j-api-merge-0003
infinispan-infinispan-merge-0001
jetbrains-compose-multiplatform-merge-0008
jetbrains-ideavim-merge-0008
kotlin-kotlinx-coroutines-merge-0002
linkedin-ambry-merge-0001
microsoft-deepspeed-merge-0050
nekomangaorg-neko-merge-0000
openapitools-openapi-generator-merge-0000
opensearch-project-opensearch-merge-0002
pedrosg94-rootencoder-merge-0001
pyro-ppl-pyro-merge-0034
robusta-dev-robusta-merge-0007
sodadata-soda-core-merge-0000
spongepowered-spongeapi-merge-0003
spring-projects-spring-data-redis-merge-0000
stripe-stripe-android-merge-0040
subzeroid-instagrapi-merge-0000
tiny-pilot-tinypilot-merge-0000
toblerity-fiona-merge-0007
vocodedev-vocode-python-merge-0007
wikimedia-apps-android-wikipedia-merge-0012

file_commit_chain (40 samples; each is run as <id>-rebase and <id>-chunk):

648540858-wvp-gb28181-pro-file-commit-chain-0000
alteryx-featuretools-file-commit-chain-0000
apache-groovy-file-commit-chain-0000
apache-incubator-kie-optaplanner-file-commit-chain-0004
appintro-appintro-file-commit-chain-0001
apple-coremltools-file-commit-chain-0001
aws-aws-sdk-java-v2-file-commit-chain-0000
cashapp-redwood-file-commit-chain-0000
chrisbanes-tivi-file-commit-chain-0000
detekt-detekt-file-commit-chain-0000
facebook-litho-file-commit-chain-0133
fasterxml-jackson-module-kotlin-file-commit-chain-0000
fate-grand-automata-fga-file-commit-chain-0000
feast-dev-feast-file-commit-chain-0021
gnembon-fabric-carpet-file-commit-chain-0002
googleapis-google-api-java-client-file-commit-chain-0000
javalin-javalin-file-commit-chain-0000
kotlin-kotlinx-coroutines-file-commit-chain-0002
kotlin-kotlinx-datetime-file-commit-chain-0000
kotlin-kotlinx-html-file-commit-chain-0001
mitogen-hq-mitogen-file-commit-chain-0000
mockk-mockk-file-commit-chain-0000
modin-project-modin-file-commit-chain-0001
movingpandas-movingpandas-file-commit-chain-0000
mrousavy-react-native-blurhash-file-commit-chain-0000
netbox-community-netbox-file-commit-chain-0002
oss-review-toolkit-ort-file-commit-chain-0214
prestodb-presto-file-commit-chain-0035
prometheus-client-java-file-commit-chain-0000
pycord-development-pycord-file-commit-chain-0058
skelsec-pypykatz-file-commit-chain-0002
spongepowered-spongeapi-file-commit-chain-0000
spring-projects-spring-framework-file-commit-chain-0019
stackstorm-st2-file-commit-chain-0000
stripe-stripe-android-file-commit-chain-0013
thingsboard-thingsboard-file-commit-chain-0001
thingsboard-thingsboard-gateway-file-commit-chain-0001
tmux-python-tmuxp-file-commit-chain-0001
vocodedev-vocode-python-file-commit-chain-0014
xerial-snappy-java-file-commit-chain-0001

Reserves, in order, per sample type and language:

merge/java: alibaba-spring-cloud-alibaba-merge-0001, mekanism-mekanism-merge-0002, spring-cloud-spring-cloud-netflix-merge-0002
merge/kotlin: netflix-dgs-framework-merge-0000, jetbrains-exposed-merge-0003, kotlin-dokka-merge-0008
merge/python: explosion-spacy-merge-0002, tinygrad-tinygrad-merge-0001, argilla-io-argilla-merge-0010
file_commit_chain/java: graphhopper-graphhopper-file-commit-chain-0016, apache-incubator-streampark-file-commit-chain-0001, spring-cloud-spring-cloud-netflix-file-commit-chain-0000
file_commit_chain/kotlin: google-ksp-file-commit-chain-0015, getsentry-sentry-java-file-commit-chain-0000, corda-corda-file-commit-chain-0001
file_commit_chain/python: kubeflow-pipelines-file-commit-chain-0020, pypa-setuptools-file-commit-chain-0001, django-django-file-commit-chain-0078

Settings. As in the Lite run: mini-swe-agent 2.4.6 with litellm 1.111.0, deepseek-v4.1-flash for the agent and the judge, 30 minute agent limit, Harbor 0.27.0 on Daytona, 3 runs per side. Order: a check on 9 tasks, one full run on each side, then two more.

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?

@audreina17

Copy link
Copy Markdown
Collaborator

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 apache-groovy-file-commit-chain-0000 in the 9-task pilot? The rebase and iterative committing prompts are both over 128 KB. My concern is that if either harness passes the prompt as a single command-line argument, the task could build fine but hit the OS limit before the agent even starts. That would make an otherwise solvable task impossible to complete on that side. Could you check that the agent receives the full prompt on both sides? If only one side has trouble, it would be worth checking how that harness passes the prompt before switching to a reserve.

@audreina17

Copy link
Copy Markdown
Collaborator

The scenario table made it easy to understand what the agent does in each task. I have two small suggestions for the README.

  1. Could you add an asterisk to the judging rule below the table and put the explanation in a footnote or in the Oracle Verification section? Something like “For rebase and iterative committing, the oracle reproduces the original commits. Comparing that history with itself would give a tie, so oracle mode accepts an exact match without calling the judge.” That would explain the 100% oracle score while keeping the overview short.
  2. Could you start the usage section with one local example that someone can run before the dataset is published? The existing --task-ids spulec-freezegun-merge-0000 example would work well. It would help to show the directory to start in and the oracle command for that same task right below it. I’d keep the result tables in the main README and move the longer commands for reproducing the parity experiment to parity/README.md.

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.

4 participants