Skip to content

refactor(browser-use): read participants and counts from the registry and evidence - #199

Merged
lanyue-llk merged 12 commits into
mainfrom
refactor/browser-use-participant-registry
Nov 3, 2026
Merged

lanyue-llk merged 12 commits into
mainfrom
refactor/browser-use-participant-registry

Conversation

@lanyue-llk

@lanyue-llk lanyue-llk commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

What, why and how of this PR

Issues

Closes #195

Part of #97 (this PR covers the Browser Use items only).

Summary

  • Registry value instead of globals. report.py no longer has ENGINE_LABELS, MODEL_LABELS or BASELINE_ENGINE, and no global mutation. A frozen Participants value is built from the report profile and passed to the functions that need it. report_check.py uses the same constructor, so its duplicate engine validation is gone.
  • Rows must state their model. _attempt_id, _row_model and _logical_results guessed a model from the global when a row had none. Evidence bundles already stamp every row, so the fallback only ever served tests. It is removed, and a row with no model now raises. _logical_results also no longer writes to its input rows.
  • Replay bridge counts are derived, not pinned. The 180/90/90/54/30/60/36 literals are replaced by checks against the selection and the bridge's bound inputs:
    • every browser's task count equals the selection size
    • logical_results equals tasks times browsers
    • only the reviewed browser may have failures, and the review covers exactly those failures
    • the expert and historical provenance counts match source_contract_counts
    • the result browsers equal methods[*].engine in the hash-verified trajectory profile, and each has integer counts with 0 <= passes <= tasks
  • Bridge engine names come from the frozen file. The lex_browser_use_trajectory_replay_bridge/1 schema has field names that contain an engine (chromium_trajectory_provenance, moli_failure_review). The bridge is hash-bound, so those names stay. The code now reads the engine from the <engine>_trajectory_provenance and <engine>_failure_review keys rather than from literals.
  • Runner order comes from the browser image registry. The runner has no report profile, so _engine_order reads ENGINE_IMAGES, the same registry that starts the containers. Order rotates by task, so every browser takes every position, and is unchanged for the current two browsers. The run manifest's engine_order label for new runs now reads rotating by task; frozen manifests are untouched.
  • One more literal than the issue listed. The reproduce page's "Chromium 与 Moli 串行" row is now generated from registered browser IDs, with a pattern translation replacing the exact-string entry. It uses IDs rather than labels because a label can carry a version, and using labels would change the published bytes. The next row keeps "两个浏览器并行" for two browsers and says "多个浏览器并行" for any other count.
  • Result-link translation. The English pattern for <model> · <browser> 结果 no longer lists the current browsers.

Rendered output

The current four-configuration cohort renders the same bytes. The only snapshot change is data/interpretation-evidence.json in tests/golden/browser-use-pass.json and browser-use-fail.json. Those fixtures have one model and two browsers, so the common-success claim now reads 2 种配置最终共同成功任务的性能与资源 P50 instead of the wrong 四配置…. Its basis and every other route are unchanged, and a two-model, two-browser build keeps the 四配置… text.

Test plan

  • Lint gate: both ruff commands pass.
  • Targeted tests: pytest tests/browser_use tests/test_golden_reports.py: 345 passed on the current head. pytest tests/browser_use tests/test_golden_reports.py tests/test_release_check_base.py: 396 passed before the last fix. This includes all golden route hashes.
  • New tests:
    • An end-to-end report with three browsers and two models, followed by a one-browser, one-model build in the same process. This shows no state carries over between builds.
    • A five-task, three-browser synthetic replay bridge with tamper controls for counts, out-of-bounds passes and browsers missing from or absent in the bound profile, plus a wrong-selection-size control.
    • Invalid-profile rejection for Participants.from_profile.
    • _engine_order with one, two and three registered browsers, read from the registry.
    • A row with no model raises, and _logical_results leaves its input rows unchanged.
  • Existing bound bridge: research/browser-use-trajectory-replay-bridge.json still loads and verifies, with no evidence or profile changes.
  • Full local suite (before the review fixes): 85 failed, 19759 passed, 60 skipped. None of the failures are in tests/browser_use, the golden tests or tests/test_release_check_base.py. I did not compare them one by one against a run on main, so CI is the gate for the full suite.
  • Local setup difference: the local sandbox refused PYTHONPATH on interpreter commands, so these runs used pytest -o "pythonpath=src .". That does not reach subprocesses, which is a likely cause of many of the local failures, such as CLI and quickstart tests.
  • Not run: a rebuild from private measured evidence, or the full visual release check.
  • CI: results are on this PR.

@lexmount-ocr lexmount-ocr Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Review complete · e8802ee

This review found 2 issue(s), including 2 blocking issue(s).

Comment on lines +2061 to +2063
failures = {
engine: int(value["tasks"]) - int(value["passes"]) for engine, value in measured.items()
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

bug · medium
P2 — Validate pass-count bounds before deriving failures. Replacing the fixed pass counts now allows a negative pass count for the reviewed browser: the existing synthetic bridge with failures=6 has five tasks, passes=-1, and six unique reviewed results, and satisfies the subsequent checks. It would publish -1/5 as a valid control result. Require integer counts with 0 <= passes <= tasks (without silently truncating fractional values), and add a rejection test for this case. This is a localized evidence-validation regression.

task_count < 1
or replay_engine not in measured
or reviewed_engine not in measured
or int(result.get("logical_results") or 0) != task_count * len(measured)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

bug · medium
P2 — Validate the replay browser population against the bound trajectory profile before deriving this total. measured is extracted from the same results being checked, and _replay_results silently drops entries missing tasks or passes. For a three-browser bridge, removing the third browser (neither the provenance nor reviewed browser) and reducing logical_results from 15 to 10 passes all these checks, even if the bound profile still declares three methods. This allows an incomplete control comparison to be rendered as valid. Read the already hash-verified trajectory profile's methods[*].engine, require the result engine set to match it, and reject incomplete entries. Add a negative control that removes the third browser while adjusting the aggregate total.

@lanyue-llk lanyue-llk left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Independent review, round 1

Reviewed head e8802ee6 against base f3201951. No approval or change request is implied. There are six findings: four P2 and two P3.

P2: Replay bridge accepts a negative or impossible pass count

src/harness/browser_use/report.py:2061 computes failures = tasks - passes without checking bounds.

I reproduced this with the PR's own _synthetic_bridge(tmp_path, failures=6). It gives {"tasks": 5, "passes": -1} and six reviewed results, and _load_trajectory_replay_bridge accepts it. _trajectory_replay_control then renders -1/5. The removed literals made this impossible, so this is a validation regression. The bridge is hash-bound, so an author would have to bind the bad file, but this check exists to catch exactly that.

Fix: require integer counts with 0 <= passes <= tasks, and add this case to the tamper controls. The real bridge (90/90 and 54/90) already satisfies this.

P2: Replay browser population is derived from the values being checked

src/harness/browser_use/report.py:1962 (_replay_results) and the check at :2068 read the browser set from effective_results, then compare logical_results to task_count * len(measured).

Both of these pass on the three-browser synthetic bridge:

  • Remove third and set logical_results to 10.
  • Delete third.passes and set logical_results to 10. The incomplete entry is silently dropped by the "tasks" in value and "passes" in value filter.

So the PR's "every browser's task count equals the selection size" only holds for browsers that remain in the file. The old literals pinned the population. The bridge already hash-verifies trajectory_profile, and its methods[*].engine lists chromium and moli for the current cohort.

Fix: require the result engines to equal that bound method set, reject any non-scalar effective_results entry that lacks tasks or passes, and add a negative control for each case.

P2: English pages leave result links untranslated for any browser outside the current cohort

src/harness/browser_use/report_i18n.py:360 still has the pattern (.+?) · (Chromium|Moli 1\.1\.3) 结果.

I built the PR's fixture in English with alpha/beta/gamma, then compared Chinese text in en/ pages with a chromium/moli build. The only new untranslated text is on en/datasets/44.html: model-a · Alpha 结果, model-a · Beta 结果 and model-a · Gamma 结果. A relabelled Moli version hits the same gap. This is a remaining participant literal that blocks the size-independent behaviour #195 asks for, and AGENTS.md requires report-authored English interface text to be localized. The new end-to-end test only checks the reproduce page in English, so it misses this.

Fix: generalize the pattern to (.+?) · (.+?) 结果, keep the current English output, and assert the dataset link in the three-browser test.

P2: Reversal does not balance call order beyond two browsers

src/harness/browser_use/runner.py:532 reverses the order on odd tasks, so three browsers alternate abc and cba. b is never first and is always second. The docstring only promises that no browser always runs first, and tests/browser_use/test_runner.py:1503 pins this result. Since this PR exists to make the runner size-independent, the first run with a third browser would carry a systematic position difference.

Fix: rotate instead with offset = task_index % len(engines) and engines[offset:] + engines[:offset]. Two browsers still get (chromium, moli) then (moli, chromium), so the current cohort is unchanged. Three browsers then take each position equally often. Update the test to match.

P3: The neighbouring reproduce row still states a browser count

src/harness/browser_use/report.py:3568 keeps 一套站点环境,两个浏览器并行 directly below the row this PR made dynamic. A three-browser or one-browser report would still say "two browsers". The PR body lists the serial row as the one extra literal, but not this one.

Fix: use count-independent wording, or generate it so the current cohort keeps its bytes. If it stays deliberately, say so in the PR.

P3: Two stated behaviour changes have no direct test

The PR says a row with no model now raises and that _logical_results no longer writes to its input. No test under tests/browser_use/ asserts either: does not identify has no match there, and there is no input-unchanged assertion.

Fix: add one small test for _attempt_id/_logical_results covering both.

Verified with no defect

  • Globals: ENGINE_LABELS, MODEL_LABELS, BASELINE_ENGINE and the _configure_* functions are gone from harness/browser_use, with no remaining global. The one remaining ENGINE_LABELS is in trajectory_replay/public_webarena/report.py, outside this scope.
  • Removed model fallback: every _attempt_id, _row_model and _logical_results call in report.py and report_check.py receives rows stamped by _load_evidence_bundles or derived from them. Review rows are stamped separately. Removing the fallback does not affect production paths.
  • Frozen bridge: research/browser-use-trajectory-replay-bridge.json loads with the real 90-task selection through the new validation. No evidence, profile or bridge file changes.
  • Golden snapshots: tests/golden/ is unchanged and the route hashes pass.
  • Local runs: both ruff gates pass. tests/browser_use, tests/test_golden_reports.py and tests/test_release_check_base.py give 388 passed.
  • Runner order for the current cohort: DEFAULT_BROWSER_IMAGES is ordered chromium, moli, so calls keep the old order.
  • Issue scope: apart from the findings above, labels, baseline, cardinalities, runner order and a different-size test are all present, so Closes #195 is reasonable once they are resolved.

Not verified

I did not rebuild from private measured evidence, run the visual release check, or run the release check (report_check.check) end to end on a three-browser report.

CI at e8802ee6

"Tests and static checks", "Installation and packaging" and "Rendered reference and report checks" all pass. ocr-review is failing on two blocking findings. They are the first two above, and I reproduced both independently.

@lanyue-llk

Copy link
Copy Markdown
Contributor Author

Review round 1 fixes, head bdaa2641. All six findings are fixed and none are disputed.

Finding Commit Change
P2 replay counts unbounded 54b81cc Counts must be integers with 0 <= passes <= tasks. Controls: failures=6, passes above tasks, non-integer passes.
P2 replay browsers checked against themselves 5202052 Result browsers must equal methods[*].engine in the hash-verified trajectory profile. Entries without tasks or passes are rejected. Controls: browser removed, passes deleted, browser absent from the profile.
P2 untranslated result link 85d2fd5 Pattern is now (.+?) · (.+?) 结果. The three-browser test asserts the links on en/datasets/44.html.
P2 order not balanced beyond two browsers 7e0b785 _engine_order rotates by task_index % len(engines). Two-browser order is unchanged. New run manifests now record rotating by task; frozen manifests are not touched.
P3 fixed browser count in the reproduce row e106fc7 Two browsers keep the current text, so bytes do not change. Any other count says "多个浏览器并行", with an English entry.
P3 missing tests bdaa264 One test covers the ValueError for a row with no model and an unchanged input after _logical_results.

Lint gate passes. pytest tests/browser_use tests/test_golden_reports.py tests/test_release_check_base.py: 395 passed, with tests/golden/ unchanged.

@lexmount-ocr lexmount-ocr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Review complete · bdaa264

No findings in this review.

@lanyue-llk lanyue-llk left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Independent review, round 2

Reviewed head bdaa2641 against base f3201951, which is still the newest main. No approval or change request is implied. There are two findings, both P3 test gaps. I found no correctness defect and no rule violation.

P3: The per-browser task count check has no working negative control

tests/browser_use/test_report.py:1857, the third.update(tasks=4) tamper case in test_replay_bridge_rejects_inconsistent_derived_counts.

That tamper leaves passes=5, so the bounds check rejects it. It never reaches any(value["tasks"] != task_count ...) at src/harness/browser_use/report.py:2085. When I deleted that condition, all of tests/browser_use/test_report.py and test_runner.py still passed. The check itself works: third.update(tasks=4, passes=4) is rejected with it and loads without it.

Fix: change the tamper to third.update(tasks=4, passes=4), or add it as a further case.

P3: No test shows that run() reads the browser registry

tests/browser_use/test_runner.py:1503 and src/harness/browser_use/runner.py:660.

The test passes tuple(ENGINE_IMAGES) into _engine_order itself, so it covers the rotation but not where the order comes from. When I changed the call in run() to _engine_order(("chromium", "moli"), task_index), which restores the hardcoded order this issue removes, all tests in those files still passed.

Fix: let _engine_order(task_index) read ENGINE_IMAGES itself, and test it with a monkeypatched three-entry registry. The existing run() test stops before the loop, so this is cheaper than extending it.

What I verified

  • Round 1 fixes: all six are present. Reverting the i18n pattern, the pass-count bounds, the profile browser check or the rotation each fails a test. The same goes for the reviewed-browser failure check and the logical_results check.
  • Old globals: ENGINE_LABELS, MODEL_LABELS, BASELINE_ENGINE and _configure_* are gone from the Browser Use track, and report.py has no global statement. public_webarena/report.py keeps its own separate ENGINE_LABELS, which is outside this issue. No browser or model literal remains in report.py or runner.py.
  • Removed model fallback: every non-test caller of _attempt_id and _logical_results gets rows that _load_evidence_bundles has already stamped with a model. _logical_results no longer writes to its input: a row with no model raises, and a row with one is left unchanged.
  • Runner order: the two-browser order matches the removed literal, and ENGINE_IMAGES and ENGINE_PORTS register the same browsers. Nothing reads the old alternating by task label.
  • Replay bridge: the checks reject the tampered cases. The frozen bridge still loads with task_count=90, and its counts match the removed literals (180, 90/90, 54/90, 30, 60, 36).
  • Other participant counts: I built English reports with two browsers and one model, and with three browsers and two models. Both leave the same 157 Chinese strings on English routes, so the larger cohort adds none. The ones I sampled are frozen task names and interface labels such as the 中文 language control; I did not inspect all 157.
  • Reproduce row: using registered IDs rather than labels is a disclosed trade-off that keeps the published bytes, so I am not raising it. The last profile committed to this repository registers chromium then moli, with the label Moli 1.1.3, so the generated text matches the removed literal.
  • Issue scope: every Browser Use item in #195 and in the #97 audit list is handled, so Closes #195 is accurate.
  • Bytes and evidence: tests/golden/, evaluation/ and research/ are untouched by this diff.
  • Local gates: both ruff commands pass. pytest tests/browser_use tests/test_golden_reports.py tests/test_release_check_base.py gives 395 passed.
  • CI on bdaa2641: Tests and static checks, Installation and packaging, Rendered reference and report checks, and Python 3.11 all succeeded.
  • Commits and PR text: no attribution lines, and the PR body has no private data.

Not verified

  • No rebuild from private measured evidence, because no current Browser Use profile or evidence is available in this checkout. Byte stability rests on the golden route hashes.
  • report_check.check was not run end to end on a three-browser report. I only confirmed that it has no browser literals and builds its registry through Participants.from_profile.

@lanyue-llk

Copy link
Copy Markdown
Contributor Author

Review round 2 fixes:

  • c659dff7: added a third.update(tasks=4, passes=4) case, which stays in bounds and reaches the per-browser task count check. Deleting that condition from report.py now fails this case. The original tasks=4 case stays as the bounds control.
  • 671e8ecc: _engine_order(task_index) now reads ENGINE_IMAGES itself, and its test uses monkeypatched three-entry and one-entry registries. Hardcoding the current two browsers inside _engine_order now fails the test. The test covers _engine_order, not the loop in run(), which now passes only the task index.

Nothing disputed. pytest tests/browser_use tests/test_golden_reports.py tests/test_release_check_base.py: 396 passed, with golden route hashes unchanged. Both ruff commands pass.

@lexmount-ocr lexmount-ocr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Re-review complete · 671e8ec

No findings in this incremental review.

@lanyue-llk lanyue-llk left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Independent review, round 3

Reviewed head 671e8ecc against main f3201951. I found no correctness bugs, rule violations or scope gaps. Two tests are missing, both P3. Each one covers a check that replaced a removed literal.

Findings

P3: tests/browser_use/test_report.py:1864 (check at src/harness/browser_use/report.py:2088)

  • Problem: The provenance-split tamper changes expert_repair_spec as well as successful_browser_use_execution, so the expert check rejects it first and the historical count check never runs. This check replaced the literal 60. If I delete it, all tests in test_report.py, test_runner.py, test_report_check.py and test_golden_reports.py still pass. A bridge with only successful_browser_use_execution raised by 1 then loads. With the check in place, that bridge is rejected.
  • Fix: Add a tamper that changes only successful_browser_use_execution, for example b["base_trajectory_provenance"].update(successful_browser_use_execution=4), expecting cardinality.

P3: src/harness/browser_use/report.py:2107

  • Problem: No test covers key[0] != reviewed_engine, the generalized form of the old "moli" literal. If I delete it, the same tests still pass. A re-hashed review file that attributes one result to base then loads under candidate_failure_review. With the condition in place, that file is rejected.
  • Fix: Add a control that rewrites one cause_groups[*].results[*].engine in the synthetic review, updates the bound sha256 and expects responsibility inventory.

What I verified

  • Local gates: Both ruff commands pass. pytest tests/browser_use tests/test_golden_reports.py tests/test_release_check_base.py gives 396 passed. tests/golden/, evaluation/ and research/ have no changes.

  • Real bridge: research/browser-use-trajectory-replay-bridge.json loads through _load_trajectory_replay_bridge with a 90-task count. Its bound trajectory profile declares chromium and moli, and the hash matches.

  • Scope of #195:

    • The label and baseline globals and all global mutation are gone from report.py.
    • report.py no longer has hardcoded browser names or the old count literals.
    • runner.py no longer has hardcoded browser names.
    • The trajectory replay public report has its own ENGINE_LABELS, which is outside this issue.
  • Three-browser build: With no engine labels, I searched all HTML in both languages for fixed browser names and counts. The only matches were dataset task text, the four sites, and "two programmatic evaluators". None of them refer to browsers.

  • Runner order: Two-browser order matches the old code, because DEFAULT_BROWSER_IMAGES lists chromium then moli. Rotation gives each browser every position. Nothing reads the engine_order label except the copy into report-data.json, so resume and frozen manifests are unaffected.

  • Row model: All _logical_results and _attempt_id callers receive rows that _load_evidence_bundles has already stamped, so removing the fallback and the input write changes nothing for real builds.

  • Translation pattern: (.+?) · (.+?) 结果 has one source string, at report.py:2981. It matches no entry in the translation table, and no other pattern targets that text.

  • Mutation runs: Removing or weakening these made tests fail:

    • the non-reviewed failure, logical result, per-browser task, expert and review count checks
    • the duplicate-field guard
    • baseline-first ordering
    • rotation
    • the translation pattern
    • the parallel-browser wording
    • the configuration count

    Removing task_count < 1, replay_engine not in measured or reviewed_engine not in measured made no test fail. I am not raising those: the second is already enforced by _validate_replay_contract_definitions, the third would raise KeyError on the next check instead, and the first has no realistic input.

CI

All checks pass on 671e8ecc: Tests and static checks, Installation and packaging, Rendered reference and report checks, and Python 3.11. The PR is mergeable.

Not run

I did not rebuild from private measured evidence or run the full visual release check.

@lanyue-llk

Copy link
Copy Markdown
Contributor Author

Review round 3: both findings are fixed with test-only changes. No production code changed.

  • Fixed in e3bf9db. test_replay_bridge_rejects_inconsistent_derived_counts has a new historical-total case that changes only successful_browser_use_execution, so the expert check no longer rejects it first. With the historical count check deleted, this case fails.
  • Fixed in 40800c1. test_replay_bridge_rejects_a_review_of_another_browser reattributes one review result to base, updates the bound hash and expects responsibility inventory. With key[0] != reviewed_engine removed, this test fails.

Nothing was disputed.

Lint is clean. tests/browser_use/test_report.py, test_runner.py, test_report_check.py and tests/test_golden_reports.py pass (216 tests), with golden snapshots unchanged.

@lexmount-ocr lexmount-ocr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ℹ️ Review skipped · 40800c1

No reviewable content was selected for this run.

@lanyue-llk lanyue-llk left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Independent review, round 4

Reviewed head 40800c1d against main f3201951.

Finding

P3, src/harness/browser_use/report.py:3659: fixed configuration count in a published claim label

  • Problem: The claim in data/interpretation-evidence.json is still the literal 四配置最终共同成功任务的性能与资源 P50, while its basis rows now come from the registry. I built the PR's three-browser, two-model synthetic report: the file says four configurations above rows for six. This is the same kind of leftover as the reproduce row fixed in round 1, and the home page links this file for download.
  • Fix: Use the approach from that row. Keep the current text when len(participants.models) * len(participants.engines) == 4, so current bytes do not change. Otherwise use a form that states the actual count. Add an assertion to test_report_follows_a_registry_of_another_size_without_module_state.

Verified with no defect

  • Globals: ENGINE_LABELS, MODEL_LABELS, BASELINE_ENGINE and the _configure_* functions have no references left in the Browser Use code. report.py has no global statement and no chromium or moli literal.

  • Scan of the three-browser build: Across its HTML and JSON routes, in both languages, I searched for Chromium, Moli, gpt-5 and fixed browser or configuration counts. Apart from the finding above, the only hit was the frozen text of task #196, which is dataset input.

  • Rows without a model: Every _attempt_id, _row_model and _logical_results caller receives rows stamped by _load_evidence_bundles, in both report.py and report_check.py, so removing the fallback and the write to the input has no effect on real paths.

  • Runner: configured_browser_images() starts from DEFAULT_BROWSER_IMAGES, and _engine_order returns (chromium, moli) then (moli, chromium), so the two-browser order is unchanged. Nothing consumes the engine_order label as a value. The report only copies it from each frozen manifest.

  • Translation: The generalized (.+?) · (.+?) 结果 pattern is applied with fullmatch, after the exact-text lookup. English golden routes are unchanged.

  • Replay bridge: I loaded the real research/browser-use-trajectory-replay-bridge.json through _load_trajectory_replay_bridge with the real 90-task selection. It passes, and its bound profile lists chromium and moli.

  • Mutation checks: I removed each of these in turn:

    • the more-than-one-field check
    • the non-reviewed-failures check
    • the logical_results check
    • the expert count check
    • the failed_results check
    • the verified_results check
    • baseline-first ordering
    • the two-or-many wording

    test_report.py, test_report_check.py and the golden tests fail for each one. Two removals survive, and neither needs a test: replay_engine not in measured is already enforced by _validate_replay_contract_definitions, and task_count < 1 is only a guard against an empty selection.

  • Hash-bound files: The PR does not change tests/golden/, research/ or evaluation/.

Test results

  • Lint gate: both ruff commands pass.
  • Targeted tests: pytest tests/browser_use tests/test_golden_reports.py tests/test_release_check_base.py gives 398 passed. The PR body still says 396, from before the last two test commits.
  • CI on this head: all checks pass, including "Tests and static checks", "Installation and packaging" and "Rendered reference and report checks".
  • Not run: a rebuild from private measured evidence, or the visual release check.

@lanyue-llk

Copy link
Copy Markdown
Contributor Author

Round 4 fixes:

  • Fixed in 6a02367: the common-success claim in data/interpretation-evidence.json now states the actual configuration count. It keeps 四配置… for models times browsers equal to 4 and otherwise reads <n> 种配置…. The three-browser, two-model test now asserts 6 种配置… above six rows, and a new two-model, two-browser test pins the current text.

Snapshot change: the golden fixtures have one model and two browsers, so they carried the same wrong text. data/interpretation-evidence.json changes in browser-use-pass and browser-use-fail to 2 种配置…. I compared the old and new builds: only this claim string differs, and no other route changes.

Nothing disputed.

@lexmount-ocr lexmount-ocr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Re-review complete · 6a02367

No findings in this incremental review.

@lanyue-llk lanyue-llk left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Independent review, round 5

Reviewed head 6a02367f against main f3201951, which is still the newest main. No defects found.

What I verified

  • Module state: ENGINE_LABELS, MODEL_LABELS, BASELINE_ENGINE and the _configure_* functions are gone from harness/browser_use, and no reference remains in src, scripts, tests, docs or .agents. The one remaining ENGINE_LABELS is an unrelated local constant in the public WebArena report. report.py and report_check.py contain no chromium or moli literal.
  • Rows without a model: the only callers of _attempt_id and _logical_results outside report.py are in report_check.py, and they use rows that _load_evidence_bundles has stamped. Removing the fallback and the input mutation therefore breaks no supported path.
  • Runner order: _engine_order gives the same order as the old code for the current two browsers. The engine_order manifest label is only copied into the public environment file, and nothing validates its value.
  • Bound bridge: research/browser-use-trajectory-replay-bridge.json loads through the new checks with task_count=90 and is rejected with task_count=89. The derived 60 and 30 provenance counts match the old literals.
  • Golden change: I built both Browser Use fixtures, put the old 四配置 text back into data/interpretation-evidence.json, and compared all route hashes with the snapshots on f3201951. They all match, so the PR's explanation of the snapshot change is accurate.
  • Current-cohort text: Participants yields Chromium 与 Moli with the Moli 1.1.3 label in place. The English translations of the reproduce rows and the result link come out as expected.
  • Round 4 fix: forcing the claim back to 四配置 for every count makes test_report_follows_a_registry_of_another_size_without_module_state fail.
  • Scope of #195: labels, baseline, order and counts all come from the registry or evidence, and the three-browser, two-model build followed by a one-browser build covers a different participant count. Closes #195 is accurate.
  • Rules: no compatibility aliases or parallel implementations, no evidence or profile changes, and no attribution lines or private data in the diff or commit messages.

Test results

  • Lint gate: both ruff commands pass.
  • Targeted tests: pytest tests/browser_use tests/test_golden_reports.py tests/test_release_check_base.py: 399 passed.
  • CI on this head: Tests and static checks, Installation and packaging, and Rendered reference and report checks all pass.

Noted, not a finding

From reading the code (I did not run this case), a future bridge with no expert-repaired trajectories would be rejected, because source_tasks.get("expert_repair_spec") returns None rather than 0. It fails closed with a clear error, the old literal rejected that bridge too, and the frozen bridge is not affected, so I would not change it here.

Not verified

I did not rebuild from private measured evidence or run the full visual release check. The PR body discloses both. Byte identity for the real cohort therefore rests on the synthetic snapshots and the text checks above.

lanyue-llk added a commit that referenced this pull request Nov 3, 2026
@lanyue-llk
lanyue-llk force-pushed the refactor/browser-use-participant-registry branch from 6a02367 to 72baf14 Compare November 3, 2026 23:26

@lexmount-ocr lexmount-ocr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Review complete · 72baf14

No findings in this review.

@lanyue-llk
lanyue-llk merged commit d894600 into main Nov 3, 2026
7 checks passed
@lanyue-llk
lanyue-llk deleted the refactor/browser-use-participant-registry branch November 3, 2026 23:33
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.

Drive the Browser Use report and runner from the participant registry

1 participant