Skip to content

feat(webfetch): name the scorer by the Browser Eval version - #264

Merged
lanyue-llk merged 6 commits into
mainfrom
feat/scorer-version-is-browser-eval-version
Nov 11, 2026
Merged

lanyue-llk merged 6 commits into
mainfrom
feat/scorer-version-is-browser-eval-version

Conversation

@lanyue-llk

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

Copy link
Copy Markdown
Contributor

PR 264

Why

The Web Fetch scoring rules live in Browser Eval, and its data lock picks the dataset commit. But lexbench-webfetch version reported status: unreleased against the dataset's bench-v2.1.0 catalog (old-repository commit 2d2718ea), and nothing said when a scoring change needs a new version.

What

  • One version model. The Browser Eval version names the Web Fetch benchmark edition: data lock plus scoring code. docs/releases.md version table:
    • Fix that cannot change any score → patch.
    • Scoring rule, reference check or acceptance check change (including a bug fix), or a new dataset pin with corrected references → minor.
    • New dataset pin that adds or removes tasks → breaking (minor before 1.0 with the break described, major from 1.0).
  • The dataset keeps its own HF tag for its data; reference data lives there, the code that checks against it lives here. Old bench-v* labels stay as historical provenance.
  • lexbench-webfetch version prints {name, version, status, scoring_source_sha256}. RELEASED_SCORERS in versions.py records the hash each release shipped (v0.4.0: 5c8bfec2…, computed from the tag). Main today prints 0.4.0+unreleased.
  • lexbench-webfetch release --version must equal the installed Browser Eval version, so new sidecars carry bench-vX.Y.Z = Browser Eval version.
  • docs/benchmarks.md edition table and sidecar text follow the same model. Release procedure step 2 adds the RELEASED_SCORERS row.
  • Web Search keeps its own catalog edition for now (stated in the docs).

Checks

  • Tests: released / unreleased output, every installed version has a recorded hash, release sidecar rejects another version.
  • test_release_versions, test_current_scoring_controls, test_release_metadata: 50 passed. make lint-check, make docs-check pass.

The scoring rules ship inside Browser Eval, so lexbench-webfetch version now
prints the Browser Eval version and scoring-source hash instead of the stale
bench-v2.1.0 catalog label from the old repository. The release rules state
that a scoring, reference-check or acceptance-check change is a minor bump.
lanyue-llk added a commit that referenced this pull request Nov 11, 2026

@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 · cfce236

No findings in this review.

Review of #264: the docs described two edition schemes and unreleased scoring
code printed the release label. The Browser Eval version now names the Web Fetch
benchmark edition (data lock plus scoring code); any score-changing change is at
least minor, adding tasks is breaking. RELEASED_SCORERS records the hash v0.4.0
shipped, so changed code prints X.Y.Z+unreleased, and release sidecars must use
the installed Browser Eval version.
lanyue-llk added a commit that referenced this pull request Nov 11, 2026

@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 · 5fd36ac

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

Comment thread src/lexbench_webfetch/cli.py Outdated
Comment on lines +68 to +69
if args.version != version("browser-harness-eval"):
raise ValueError("Release version must be the installed Browser Eval version")

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: This guard checks package metadata rather than the active scorer identity introduced in this PR. After a scoring edit with the package version unchanged, version correctly reports X.Y.Z+unreleased, but release --version X.Y.Z still passes and freezes the modified scorer under the released edition number (no --previous is required). This makes the two commands disagree and allows different scoring rules to reuse a release identity. Use the shared installed_version() result and reject freezing a released sidecar when its status is unreleased; add a CLI regression covering a mismatched released-scoring hash.

The release guard compared package metadata only, so unreleased scoring code
could be frozen under the released version. Use installed_version() and require
status released plus a matching version; regression covers both cases.

@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 · 81771a8

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

Comment thread src/lexbench_webfetch/cli.py Outdated
from .versions import freeze_release
from .versions import freeze_release, installed_version
scorer = installed_version()
if scorer["status"] != "released" or args.version != scorer["version"]:

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: Align the sidecar compatibility checks with the newly enforced software version. The new policy allows task-population changes in a pre-1.0 minor release (for example, 0.4.0 → 0.5.0), but create_release() still rejects any population/input change with the same major number, and compare_releases() rejects that pair too. With this gate, a released 0.5.0 installation cannot freeze such a successor using --previous, nor can the caller choose a separate major benchmark version as before. Update those shared checks to accept documented pre-1.0 breaking minor editions and classify their comparison as separate; add a CLI regression covering a changed population.

Review of #264: create_release and compare_releases still demanded a major
version for a changed task population, contradicting the documented minor
bump before 1.0. Breaking now means major, or minor before 1.0, and
compare-releases returns separate instead of raising. Reword the remaining
docs that described a separate benchmark numbering.

@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 · 922eae3

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

Comment thread src/lexbench_webfetch/versions.py Outdated
if benchmark != previous["benchmark"] or new <= old:
raise ValueError("A successor needs the same benchmark and a newer version")
if new[0] == old[0]:
if _breaking_line(new) == _breaking_line(old):

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: This narrower condition also bypasses the existing scoring-correction change-note requirement for every pre-1.0 minor bump. For example, creating 0.5.0 with a 0.4.0 predecessor and a different scoring_source_sha256 now succeeds without change_note, whereas previously it raised "A scoring correction requires a change note". This affects the project's current 0.x release line and allows correction sidecars without their required explanation. Keep the population compatibility check under _breaking_line(), but enforce the scoring-correction note independently so a valid pre-1.0 minor correction still requires a note; add a 0.x regression case alongside the existing 1.x tests.

Review of #264: the release guard blocked custom --benchmark sidecars (CI
failure in test_review_runtime), and pre-1.0 minor scoring corrections skipped
the change-note rule. The Browser Eval version is now required only for
lexmount-webfetch; a scoring change on the same tasks needs a minor bump and a
note in 0.x too. Two leftover 'major' lines now say breaking.

@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 · 34cb008

No findings in this incremental review.

@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 · 4be5491

No findings in this incremental review.

@lanyue-llk
lanyue-llk merged commit 20dd57e into main Nov 11, 2026
8 checks passed
@lanyue-llk
lanyue-llk deleted the feat/scorer-version-is-browser-eval-version branch November 11, 2026 04:26
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.

1 participant