Repository navigation
refactor(cleanup): finish review leftovers from #92 and #117 - #128
Merged
Merged
Conversation
- Rename retired BROWSER_USE_EVAL_* run.sh variables to TRAJECTORY_REPLAY_*, shared browser images/containers/labels to the track-neutral lex-browser-eval prefix, and public WebArena docstrings to Trajectory Replay. - Use WEBARENA_VERIFIED_VERSION in the WebArena image-lock check. - Delete the superseded public_webarena/build_public_suite.py generator and the unreferenced tasks.v2/v3 suites. - Bind --dataset and --expected-dataset-sha256 in the WebMainBench reproduction commands; make SOURCE/SCORER optional in webmainbench-score and forward DATASET_SHA256 and REVISION. - Select Web Fetch publication behavior through cards/metadata.json instead of track-name branches. Co-Authored-By: Claude Opus 5.5 <[email protected]>
lanyue-llk
commented
Oct 30, 2026
lanyue-llk
left a comment
Contributor
Author
There was a problem hiding this comment.
Independent review, round 1
Reviewed head 4c4d27a3 against main 8b8aa30f. I found no P0, P1 or P2 defects. There are three P3 notes below.
What I verified
- #92 inventory. I ran
git grepon the PR head for every item listed in #92: thebrowser_use/report.pyhelpers,AstraResponsesModel,_normalized_reasoning_effort,template_transfer,admission.py,_translate_visible_attributes,tasks.v2/v3,build_public_suite,BROWSER_USE_EVAL_*,lex-browser-use-eval,lex.browser-use-evaland "browser use evaluation". None of them remain.- The only
"1.2.3"literal left in code is theWEBARENA_VERIFIED_VERSIONdefinition. The other hits are hash-bound evaluation/research JSON and test fixtures, and those should stay as they are. - The renamed image names, container names and labels are consistent across every producer and consumer:
environments/browser.py, both runners,webarena_replay.py, diagnostics, the Dockerfiles,run.shand the tests. - No frozen evidence or report check reads the old
lex.browser-use-eval.*build-source label keys.
- The only
- #117 reproduction command.
webmainbench_runneraccepts--datasetand--expected-dataset-sha256, andload_selected_idschecks the manifest parent hash against the value passed in. The emittedsource_dataset_sha256is therefore the right value.webmainbench_scoringaccepts--expected-dataset-sha256and--revision, and both--datasetand--scorer-repoare optional there.- The two changed WebMainBench golden routes match what the PR description explains.
- Makefile. The
$(if ...)forwarding is correct. LeavingSOURCEandSCORERunset falls through to the pinned corpus and the pinned scorer. - publication.py.
- No
track == "webfetch"branches remain. _derived_fieldrejects any reference that is outsideharness.*or is missing a function name.- Tracks without the new keys fall through to the previous paths unchanged.
- No
- Mutation check. I removed
derived_fieldsandorder_configurations_by_subsetsfromcards/metadata.json. Two tests intests/benchmarks/test_dataset_discovery.pythen fail, so the existing tests do enforce the derived-field projection. - Local runs.
- Both ruff gates passed.
pytest tests/test_golden_reports.py tests/benchmarks tests/trajectory_replay/test_run_entry.py tests/trajectory_replay/public_webarena/test_runner.py -n 2: 11384 passed.
- CI on
4c4d27a3. All checks passed, including "Tests and static checks" and "Rendered reference and report checks".
Findings
- P3, test coverage.
src/harness/benchmarks/publication.py:495- Problem: no test fails when
order_configurations_by_subsetsis removed. Onlyderived_fieldsis guarded by the mutation check above. - Fix: add a small assertion that the webfetch viewer configurations follow the order of
metadata["subsets"].
- Problem: no test fails when
- P3, docs.
src/harness/web_fetch/WEBMAINBENCH.md:36- Problem: the guide describes the
SOURCEoverride forwebmainbench-run. It does not say thatwebmainbench-scorenow treatsSOURCE/SCORERas optional, or that it acceptsDATASET_SHA256andREVISION. - Fix: add one sentence so corrected-edition scoring through
makecan be found.
- Problem: the guide describes the
- P3, retired-name residue outside the #92 list.
src/harness/trajectory_replay/public_webarena/report.py:2068-2070- Problem: the report writer still globs and deletes
browser-use-evaluation-*.{md,html,json}files. This is cleanup for outputs under the retired name. - Fix: it is harmless, so it may stay. You could drop it in a follow-up if no supported output directory still holds those files.
- Problem: the report writer still globs and deletes
No blocking issues. The "Closes #92" and "Closes #117" claims hold for every item listed in those issues.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
|
Review round 1 follow-up: Fixed
Disputed / not changed
Tests: ruff gates pass; |
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.
Issues
Closes #92
Closes #117
#121 already removed the dead code from #92. I checked each remaining #92 item against
mainwithgit grep.AstraResponsesModel,_normalized_reasoning_effort, the orphan runner comment,template_transfer.py,admission.py,_translate_visible_attributes, the repeatedmessages = report_method_catalog(...)lines and the stalecli.py --suitedefault no longer exist onmain. This PR handles what was left.Summary
Retired names (#92)
examples/trajectory_replay/run.sh, its README, the rendered reproduction steps insrc/harness/trajectory_replay/report.pyandtests/trajectory_replay/test_run_entry.py,BROWSER_USE_EVAL_*is nowTRAJECTORY_REPLAY_*. There is no alias.lex-browser-use-eval-*/lex.browser-use-eval.*to the track-neutrallex-browser-eval-*/lex.browser-eval.*. This coversenvironments/browser.py, both replay runners,webarena_replay.py, public diagnostics, the public Dockerfiles,run.shand the tests, all changed in one commit.runner,suite,config,metrics,evaluators) and the config error message now say Trajectory Replay instead of "browser use evaluation".src/harness/environments/webarena/config.pyusesWEBARENA_VERIFIED_VERSIONinstead of repeating"1.2.3".examples/trajectory_replay/public_webarena/tasks.v2.jsonandtasks.v3.json. Nothing references them now that thecli.pydefault is gone.#117
Deleted
examples/trajectory_replay/public_webarena/build_public_suite.py. I ran it into a scratch directory and it reproduces the curatedtasks.v4.jsonthat feat(benchmarks): version inputs on Hugging Face and unify evaluation code #81 removed, byte for byte (sha25620dc81a7…). It is not the publictasks.v4.json, which is a different file. No entry point or test uses the generator.The WebMainBench reproduction commands in
src/harness/web_fetch/report.pynow pass--dataset <WebMainBench_545.jsonl> --expected-dataset-sha256 <source_dataset_sha256>, using the parent hash the report was built from, to both the runner and the scorer.The
make webmainbench-scoretarget:SOURCEandSCORERare now optional. Left unset, the script uses its pinned corrected corpus and its pinned scorer.DATASET_SHA256andREVISIONvariables are forwarded as--expected-dataset-sha256and--revision.src/harness/benchmarks/publication.pyno longer branches onself.track == "webfetch". Each track'scards/metadata.jsonentry now declares:definition_registry: "suites", for the suite-registry dataset format.derived_fields(benchmark_category→harness.web_fetch.models:report_family). Onlyharness.*module:functionreferences are accepted.order_configurations_by_subsets.I also converted the third
webfetchbranch, indatasets(), so publication has no Web Fetch-specific code paths left. Theheadless-browserbranches have a different input contract and are not changed here.Golden snapshot change:
tests/golden/webmainbench-sample.jsonchanges two routes,reproduce/index.htmlanden/reproduce/index.html. In both, the reproduction command now includes--datasetand--expected-dataset-sha256. No other route changed.Not changed on purpose: the
browser-use-evalpip extra inpyproject.toml/uv.lock. It installs dependencies for the current autonomous Browser Use track, which is not a retired name, and renaming it would mean regenerating the lockfile.Test plan
ruff check --config 'include=["*.py"]' --select F,TID252 . && ruff check: passed.pytest tests/benchmarks tests/test_golden_reports.py tests/trajectory_replay tests/environments -n 2: 13438 passed. The only failure was the expected WebMainBench golden diff, which I regenerated withUPDATE_GOLDEN=1. All 10 golden tests now pass.pytest tests -k "webmainbench or makefile or publication or browser_use or naming or package" -n 2: 1037 passed, 1 failed. The failure istest_optional_reports.py::test_default_rescore_rebuilds_local_report_without_publication, which runs in a subprocess that imports the shared venv's editable install from another checkout (browser-eval-refactor/src) instead of this tree. It fails with "Historical benchmark source is not recorded in the dataset lock" and is unrelated to this change. CI covers it.test_derived_viewer_fields_only_resolve_named_harness_functions. The existingtest_dataset_discoverystill checks thebenchmark_categorypartitions that are now selected through metadata.scripts/check_track_naming.py: passed.make -n webmainbench-scorewith and withoutSOURCE/DATASET_SHA256/REVISIONprints the expected argument lists.git grep -iE 'BROWSER_USE_EVAL|lex-browser-use-eval|lex\.browser-use-eval|build_public_suite|tasks\.v[23]\.json'returns nothing.🤖 Generated with Claude Code