Repository navigation
feat(webfetch): name the scorer by the Browser Eval version - #264
Conversation
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.
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.
There was a problem hiding this comment.
This review found 1 issue(s), including 1 blocking issue(s).
| if args.version != version("browser-harness-eval"): | ||
| raise ValueError("Release version must be the installed Browser Eval version") |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
This review found 1 issue(s), including 1 blocking issue(s).
| from .versions import freeze_release | ||
| from .versions import freeze_release, installed_version | ||
| scorer = installed_version() | ||
| if scorer["status"] != "released" or args.version != scorer["version"]: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
This review found 1 issue(s), including 1 blocking issue(s).
| 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): |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
✅ Re-review complete · 34cb008
No findings in this incremental review.
There was a problem hiding this comment.
✅ Re-review complete · 4be5491
No findings in this incremental review.
Why
The Web Fetch scoring rules live in Browser Eval, and its data lock picks the dataset commit. But
lexbench-webfetch versionreportedstatus: unreleasedagainst the dataset'sbench-v2.1.0catalog (old-repository commit2d2718ea), and nothing said when a scoring change needs a new version.What
docs/releases.mdversion table:bench-v*labels stay as historical provenance.lexbench-webfetch versionprints{name, version, status, scoring_source_sha256}.RELEASED_SCORERSinversions.pyrecords the hash each release shipped (v0.4.0:5c8bfec2…, computed from the tag). Main today prints0.4.0+unreleased.lexbench-webfetch release --versionmust equal the installed Browser Eval version, so new sidecars carrybench-vX.Y.Z= Browser Eval version.docs/benchmarks.mdedition table and sidecar text follow the same model. Release procedure step 2 adds theRELEASED_SCORERSrow.Checks
test_release_versions,test_current_scoring_controls,test_release_metadata: 50 passed.make lint-check,make docs-checkpass.